Structs§
- Parameters
- Ring-LWE parameters
Functions§
- gen_
binary_ poly - Generate a binary polynomial
- gen_
normal_ poly - Generate a normal polynomial
- gen_
ternary_ poly - Generate a ternary polynomial
- gen_
uniform_ poly - Generate a uniform polynomial
- mod_
coeffs - Take remainder of the coefficients of a polynom by a given modulus
- nearest_
int - nearest integer to the ratio a/b
- polyadd
- Add two polynomials
- polyinv
- Additive inverse of a polynomial
- polymul
- Multiply two polynomials
- polymul_
fast - Multiply two polynomials using fast NTT algorithm
- polyrem
- Polynomial emainder of x modulo f assuming f=x^n+1
- polysub
- Subtract two polynomials