Package | Description |
---|---|
org.spongycastle.math.ntru.polynomial |
Modifier and Type | Field and Description |
---|---|
private SparseTernaryPolynomial |
ProductFormPolynomial.f1 |
private SparseTernaryPolynomial |
ProductFormPolynomial.f2 |
private SparseTernaryPolynomial |
ProductFormPolynomial.f3 |
Modifier and Type | Method and Description |
---|---|
static SparseTernaryPolynomial |
SparseTernaryPolynomial.fromBinary(java.io.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,
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. |
Constructor and Description |
---|
ProductFormPolynomial(SparseTernaryPolynomial f1,
SparseTernaryPolynomial f2,
SparseTernaryPolynomial f3) |