Uses of Class
org.bouncycastle.pqc.math.ntru.polynomial.SparseTernaryPolynomial
-
Packages that use SparseTernaryPolynomial Package Description org.bouncycastle.pqc.math.ntru.polynomial -
-
Uses of SparseTernaryPolynomial in org.bouncycastle.pqc.math.ntru.polynomial
Methods in org.bouncycastle.pqc.math.ntru.polynomial that return SparseTernaryPolynomial Modifier and Type Method Description static SparseTernaryPolynomial
SparseTernaryPolynomial. fromBinary(InputStream is, int N, int numOnes, int numNegOnes)
Decodes a byte array encoded withtoBinary()
to a ploynomial.static SparseTernaryPolynomial
SparseTernaryPolynomial. generateRandom(int N, int numOnes, int numNegOnes, SecureRandom random)
Generates a random polynomial withnumOnes
coefficients equal to 1,numNegOnes
coefficients equal to -1, and the rest equal to 0.Constructors in org.bouncycastle.pqc.math.ntru.polynomial with parameters of type SparseTernaryPolynomial Constructor Description ProductFormPolynomial(SparseTernaryPolynomial f1, SparseTernaryPolynomial f2, SparseTernaryPolynomial f3)
-