Package org.bouncycastle.pqc.legacy.math.ntru.polynomial
package org.bouncycastle.pqc.legacy.math.ntru.polynomial
-
ClassDescriptionA polynomial with
BigDecimalcoefficients.A polynomial withBigIntegercoefficients.
Some methods (likeadd) change the polynomial, others (likemult) do not but return the result as a new polynomial.ATernaryPolynomialwith a "high" number of nonzero coefficients.A polynomial withintcoefficients.
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 onelongvalue 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 alongnumber.A polynomial class that combines five coefficients into onelongvalue 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 alongnumber.A resultant modulo aBigIntegerA polynomial of the formf1*f2+f3, wheref1,f2,f3are very sparsely populated ternary polynomials.Contains a resultant and a polynomialrhosuch thatres = rho*this + t*(x^n-1) for some integer t.ATernaryPolynomialwith a "low" number of nonzero coefficients.A polynomial whose coefficients are all equal to -1, 0, or 1