Crate ring_lwe

Source

Structs§

Parameters
Ring-LWE parameters

Functions§

gen_binary_poly
Multiply a polynomial by a scalar
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