Package | Description |
---|---|
org.spongycastle.math.ntru.polynomial |
Modifier and Type | Method and Description |
---|---|
static DenseTernaryPolynomial |
DenseTernaryPolynomial.generateRandom(int N,
int numOnes,
int numNegOnes,
java.security.SecureRandom random)
Generates a random polynomial with
numOnes coefficients equal to 1,
numNegOnes coefficients equal to -1, and the rest equal to 0. |
static DenseTernaryPolynomial |
DenseTernaryPolynomial.generateRandom(int N,
java.security.SecureRandom random)
Generates a polynomial with coefficients randomly selected from
{-1, 0, 1} . |