Package | Description |
---|---|
org.bouncycastle.pqc.math.ntru.polynomial |
Modifier and Type | Method and Description |
---|---|
static SparseTernaryPolynomial |
SparseTernaryPolynomial.fromBinary(InputStream is,
int N,
int numOnes,
int numNegOnes)
Decodes a byte array encoded with
toBinary() to a ploynomial. |
static SparseTernaryPolynomial |
SparseTernaryPolynomial.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. |
Constructor and Description |
---|
ProductFormPolynomial(SparseTernaryPolynomial f1,
SparseTernaryPolynomial f2,
SparseTernaryPolynomial f3) |
Copyright © 2017 BouncyCastle.org. All rights reserved.