| Modifier and Type | Class and Description |
|---|---|
| public static class | IntegerPolynomialModBinP.
The field of integers modulo the order of the Curve25519 subgroup |
| public static class | IntegerPolynomialModBinP.
The field of integers modulo the order of the Curve448 subgroup |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final long[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | finalCarryReduceLast(long[] limbs)
Implements abstract sun. Carry out of the last limb and reduce back in. This method will be called as part of the "finalReduce" operation that puts the representation into a fully-reduced form. |
| public IntegerPolynomial. | getElement(byte[] v, int offset, int length, byte highByte)
Overrides sun. Implements sun. Allow more general (and slower) input conversion that takes a large value and reduces it. |
| private void | |
| protected void | mult(long[] a, long[] b, long[] r)
Implements abstract sun. Multiply two IntegerPolynomial representations (a and b) and store the result in an IntegerPolynomial representation (r). |
| private void | |
| protected void | reduce(long[] a)
Implements abstract sun. Reduce an IntegerPolynomial representation (a) and store the result in a. |
| protected void | reduceIn(long[] c, long v, int i)
Implements abstract sun.
|
| protected void | square(long[] a, long[] r)
Implements abstract sun. Multiply an IntegerPolynomial representation (a) with itself and store the result in an IntegerPolynomialRepresentation (r). |
| bitOffset | back to summary |
|---|---|
| private final int bitOffset | |
| limbMask | back to summary |
|---|---|
| private final int limbMask | |
| power | back to summary |
|---|---|
| private final int power | |
| reduceLimbs | back to summary |
|---|---|
| private final long[] reduceLimbs | |
| rightBitOffset | back to summary |
|---|---|
| private final int rightBitOffset | |
| IntegerPolynomialModBinP | back to summary |
|---|---|
| public IntegerPolynomialModBinP(int bitsPerLimb, int numLimbs, int power, BigInteger subtrahend) | |
| carryReduce | back to summary |
|---|---|
| private void carryReduce(long[] c, long[] r) | |
| finalCarryReduceLast | back to summary |
|---|---|
| protected void finalCarryReduceLast(long[] limbs) Implements abstract sun. Doc from sun. Carry out of the last limb and reduce back in. This method will be called as part of the "finalReduce" operation that puts the representation into a fully-reduced form. It is representation- specific, because representations have different amounts of empty space in the high-order limb. Requires that limbs.length=numLimbs.
| |
| getElement | back to summary |
|---|---|
| public IntegerPolynomial. Overrides sun. Implements sun. Allow more general (and slower) input conversion that takes a large value and reduces it.
| |
| modReduceInBits | back to summary |
|---|---|
| private void modReduceInBits(long[] limbs, int index, int bits, long x) | |
| mult | back to summary |
|---|---|
| protected void mult(long[] a, long[] b, long[] r) Implements abstract sun. Doc from sun. Multiply two IntegerPolynomial representations (a and b) and store the result in an IntegerPolynomial representation (r). Requires that a.length == b.length == r.length == numLimbs. It is allowed for a and r to be the same array.
| |
| multOnly | back to summary |
|---|---|
| private void multOnly(long[] a, long[] b, long[] c) Multiply a and b, and store the result in c. Requires that a.length == b.length == numLimbs and c.length >= 2 * numLimbs - 1. It is allowed for a and b to be the same array. | |
| reduce | back to summary |
|---|---|
| protected void reduce(long[] a) Implements abstract sun. Doc from sun. Reduce an IntegerPolynomial representation (a) and store the result in a. Requires that a.length == numLimbs.
| |
| reduceIn | back to summary |
|---|---|
| protected void reduceIn(long[] c, long v, int i) Implements abstract sun. | |
| square | back to summary |
|---|---|
| protected void square(long[] a, long[] r) Implements abstract sun. Doc from sun. Multiply an IntegerPolynomial representation (a) with itself and store the result in an IntegerPolynomialRepresentation (r). Requires that a.length == r.length == numLimbs. It is allowed for a and r to be the same array.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Curve25519OrderField | back to summary |
|---|---|
| public Curve25519OrderField() | |
| Access | Constructor and Description |
|---|---|
| public |
| Curve448OrderField | back to summary |
|---|---|
| public Curve448OrderField() | |