Package | Description |
---|---|
org.bouncycastle.pqc.math.ntru.polynomial |
Modifier and Type | Method and Description |
---|---|
static DenseTernaryPolynomial |
DenseTernaryPolynomial.generateRandom(int N,
int numOnes,
int numNegOnes,
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,
SecureRandom random)
Generates a polynomial with coefficients randomly selected from
{-1, 0, 1} . |
Copyright © 2017 BouncyCastle.org. All rights reserved.