public class IntegerPolynomialModBinP extends IntegerPolynomial
| Modifier and Type | Class and Description |
|---|---|
static class |
IntegerPolynomialModBinP.Curve25519OrderField
The field of integers modulo the order of the Curve25519 subgroup
|
static class |
IntegerPolynomialModBinP.Curve448OrderField
The field of integers modulo the order of the Curve448 subgroup
|
IntegerPolynomial.MutableElementbitsPerLimb, numLimbs, TWO| Constructor and Description |
|---|
IntegerPolynomialModBinP(int bitsPerLimb,
int numLimbs,
int power,
java.math.BigInteger subtrahend) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalCarryReduceLast(long[] limbs)
Carry out of the last limb and reduce back in.
|
com.tencent.kona.sun.security.util.math.intpoly.IntegerPolynomial.ImmutableElement |
getElement(byte[] v,
int offset,
int length,
byte highByte)
Allow more general (and slower) input conversion that takes a large
value and reduces it.
|
protected void |
mult(long[] a,
long[] b,
long[] r)
Multiply two IntegerPolynomial representations (a and b) and store the
result in an IntegerPolynomial representation (r).
|
protected void |
reduce(long[] a)
Reduce an IntegerPolynomial representation (a) and store the result
in a.
|
protected void |
reduceIn(long[] c,
long v,
int i) |
protected void |
square(long[] a,
long[] r)
Multiply an IntegerPolynomial representation (a) with itself and store
the result in an IntegerPolynomialRepresentation (r).
|
addLimbs, addLimbsModPowerTwo, carry, carry, carryOut, carryValue, conditionalAssign, conditionalSwap, decode, encode, encode, encodeSmall, evaluate, finalReduce, get0, get1, getElement, getMaxAdds, getNumLimbs, getSize, getSmallValue, limbsToByteArray, multByInt, postEncodeCarry, setLimbsValuePositiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementpublic IntegerPolynomialModBinP(int bitsPerLimb,
int numLimbs,
int power,
java.math.BigInteger subtrahend)
protected void finalCarryReduceLast(long[] limbs)
IntegerPolynomialfinalCarryReduceLast in class IntegerPolynomialpublic com.tencent.kona.sun.security.util.math.intpoly.IntegerPolynomial.ImmutableElement getElement(byte[] v,
int offset,
int length,
byte highByte)
getElement in interface IntegerFieldModuloPgetElement in class IntegerPolynomialv - an array containing a little-endian unsigned integeroffset - the starting position of the integerlength - the number of bytes to readhighByte - the high-order byte of the numberprotected void mult(long[] a,
long[] b,
long[] r)
IntegerPolynomialmult in class IntegerPolynomialprotected void reduceIn(long[] c,
long v,
int i)
reduceIn in class IntegerPolynomialprotected void reduce(long[] a)
IntegerPolynomialreduce in class IntegerPolynomialprotected void square(long[] a,
long[] r)
IntegerPolynomialsquare in class IntegerPolynomial