Class PolynomialGenerator

java.lang.Object
org.bouncycastle.pqc.math.ntru.polynomial.test.PolynomialGenerator

public class PolynomialGenerator extends Object
  • Constructor Details

    • PolynomialGenerator

      public PolynomialGenerator()
  • Method Details

    • generateRandom

      public static IntegerPolynomial generateRandom(int N, int q)
      Creates a random polynomial with N coefficients between 0 and q-1.
      Parameters:
      N - length of the polynomial
      q - coefficients will all be below this number
      Returns:
      a random polynomial