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 |
Vector containing Modulus primes
# 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 |
Vector containing Modulus primes
# 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 |
Maximum bit count
number