Package | Description |
---|---|
org.bouncycastle.pqc.crypto.ntru | |
org.bouncycastle.pqc.math.ntru.polynomial | |
org.bouncycastle.pqc.math.ntru.util |
Modifier and Type | Method and Description |
---|---|
protected IntegerPolynomial |
NTRUEngine.encrypt(IntegerPolynomial m,
TernaryPolynomial r,
IntegerPolynomial pubKey) |
Modifier and Type | Class and Description |
---|---|
class |
DenseTernaryPolynomial
A
TernaryPolynomial with a "high" number of nonzero coefficients. |
class |
SparseTernaryPolynomial
A
TernaryPolynomial with a "low" number of nonzero coefficients. |
Modifier and Type | Method and Description |
---|---|
LongPolynomial5 |
LongPolynomial5.mult(TernaryPolynomial poly2)
Multiplies the polynomial with a
TernaryPolynomial , taking the indices mod N and the values mod 2048. |
Modifier and Type | Method and Description |
---|---|
static TernaryPolynomial |
Util.generateRandomTernary(int N,
int numOnes,
int numNegOnes,
boolean sparse,
SecureRandom random)
Generates a "sparse" or "dense" polynomial containing numOnes ints equal to 1,
numNegOnes int equal to -1, and the rest equal to 0.
|
Copyright © 2018 BouncyCastle.org. All rights reserved.