Methods
# static Batching(polyModulusDegree, bitSize) → {Modulus}
Creates a prime number PlainModulus for use as plainPlainModulus encryption
parameter that supports batching with a given polyPlainModulusDegree.
Parameters:
Name | Type | Description |
---|---|---|
polyModulusDegree |
number
|
The degree of the polynomial modulus |
bitSize |
number
|
The bit-size of the desired prime number |
A PlainModulus containing the prime number
# static BatchingVector(polyPlainModulusDegree, bitSizes) → {Vector}
Creates several prime number PlainModulus elements that can be used as
plainPlainModulus encryption parameters, each supporting batching with a given
polyPlainModulusDegree.
Parameters:
Name | Type | Description |
---|---|---|
polyPlainModulusDegree |
Number
|
The degree of the polynomial modulus |
bitSizes |
Int32Array
|
Int32Array containing values representing bit-sizes of primes |
Vector of Modulus containing prime numbers