Package | Description |
---|---|
org.spongycastle.math.ntru.polynomial |
Modifier and Type | Method and Description |
---|---|
LongPolynomial2 |
LongPolynomial2.mult(LongPolynomial2 poly2)
Multiplies the polynomial with another, taking the indices mod N and the values mod 2048.
|
private LongPolynomial2 |
LongPolynomial2.multRecursive(LongPolynomial2 poly2)
Karazuba multiplication
|
Modifier and Type | Method and Description |
---|---|
private void |
LongPolynomial2.add(LongPolynomial2 b)
Adds another polynomial which can have a different number of coefficients.
|
LongPolynomial2 |
LongPolynomial2.mult(LongPolynomial2 poly2)
Multiplies the polynomial with another, taking the indices mod N and the values mod 2048.
|
private LongPolynomial2 |
LongPolynomial2.multRecursive(LongPolynomial2 poly2)
Karazuba multiplication
|
private void |
LongPolynomial2.sub(LongPolynomial2 b)
Subtracts another polynomial which can have a different number of coefficients.
|
void |
LongPolynomial2.subAnd(LongPolynomial2 b,
int mask)
Subtracts another polynomial which must have the same number of coefficients,
and applies an AND mask to the upper and lower halves of each coefficients.
|