Package org.bouncycastle.pqc.legacy.math.ntru.polynomial
package org.bouncycastle.pqc.legacy.math.ntru.polynomial
-
ClassDescriptionA polynomial with
BigDecimal
coefficients.A polynomial withBigInteger
coefficients.
Some methods (likeadd
) change the polynomial, others (likemult
) do not but return the result as a new polynomial.ATernaryPolynomial
with a "high" number of nonzero coefficients.A polynomial withint
coefficients.
Some methods (likeadd
) change the polynomial, others (likemult
) do not but return the result as a new polynomial.A polynomial class that combines two coefficients into onelong
value for faster multiplication in 64 bit environments.
Coefficients can be between 0 and 2047 and are stored in pairs in the bits 0..10 and 24..34 of along
number.A polynomial class that combines five coefficients into onelong
value for faster multiplication by a ternary polynomial.
Coefficients can be between 0 and 2047 and are stored in bits 0..11, 12..23, ..., 48..59 of along
number.A resultant modulo aBigInteger
A polynomial of the formf1*f2+f3
, wheref1,f2,f3
are very sparsely populated ternary polynomials.Contains a resultant and a polynomialrho
such thatres = rho*this + t*(x^n-1) for some integer t
.ATernaryPolynomial
with a "low" number of nonzero coefficients.A polynomial whose coefficients are all equal to -1, 0, or 1