Interface

CoeffModulus

CoeffModulus

Methods

# static BFVDefault(polyModulusDegree, securityLevelopt) → {Vector}

Returns a default vector of primes for the BFV CoeffModulus parameter
Parameters:
Name Type Attributes Default Description
polyModulusDegree number Degree of the polynomial modulus
securityLevel SecurityLevel <optional>
SecurityLevel.tc128 Security Level

View Source coeff-modulus.ts, line 27

Vector containing Modulus primes
Vector

# static Create(polyModulusDegree, bitSizes) → {Vector}

Creates a vector of primes for a given polyModulusDegree and bitSizes
Parameters:
Name Type Description
polyModulusDegree number Degree of the polynomial modulus
bitSizes Int32Array Int32Array containing values representing bit-sizes of primes

View Source coeff-modulus.ts, line 48

Vector containing Modulus primes
Vector

# static MaxBitCount(polyModulusDegree, securityLevelopt) → {number}

Returns the Maximum Bit Count for the specified polyModulusDegree and securityLevel
Parameters:
Name Type Attributes Default Description
polyModulusDegree number Degree of the polynomial modulus
securityLevel SecurityLevel <optional>
SecurityLevel.tc128 Security Level

View Source coeff-modulus.ts, line 15

Maximum bit count
number