Interface

PlainModulus

PlainModulus

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

View Source plain-modulus.ts, line 13

A PlainModulus containing the prime number
Modulus

# 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

View Source plain-modulus.ts, line 33

Vector of Modulus containing prime numbers
Vector