Uses of Class
org.bouncycastle.pqc.legacy.math.ntru.polynomial.DenseTernaryPolynomial
Packages that use DenseTernaryPolynomial
-
Uses of DenseTernaryPolynomial in org.bouncycastle.pqc.legacy.math.ntru.polynomial
Methods in org.bouncycastle.pqc.legacy.math.ntru.polynomial that return DenseTernaryPolynomialModifier and TypeMethodDescriptionstatic DenseTernaryPolynomialDenseTernaryPolynomial.generateRandom(int N, int numOnes, int numNegOnes, SecureRandom random) Generates a random polynomial withnumOnescoefficients equal to 1,numNegOnescoefficients equal to -1, and the rest equal to 0.static DenseTernaryPolynomialDenseTernaryPolynomial.generateRandom(int N, SecureRandom random) Generates a polynomial with coefficients randomly selected from{-1, 0, 1}.