Bouncy Castle Cryptography 1.51

org.bouncycastle.pqc.math.ntru.polynomial.test
Class PolynomialGenerator

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

public class PolynomialGenerator
extends java.lang.Object


Constructor Summary
PolynomialGenerator()
           
 
Method Summary
static IntegerPolynomial generateRandom(int N, int q)
          Creates a random polynomial with N coefficients between 0 and q-1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolynomialGenerator

public PolynomialGenerator()
Method Detail

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

Bouncy Castle Cryptography 1.51