| Modifier and Type | Field and Description |
|---|---|
| private static final VarHandle | |
| private static final int | |
| private static final BigInteger | |
| protected static final int | |
| public static final IntegerPolynomial1305 | |
| private static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | carryReduce(long[] r, long c0, long c1, long c2, long c3, long c4, long c5, long c6, long c7, long c8)
|
| protected long | |
| protected void | encode(ByteBuffer buf, int length, byte highByte, long[] result)
Overrides sun. This version of encode takes a ByteBuffer that is properly ordered, and may extract larger values (e.g. long) from the ByteBuffer for better performance. |
| protected void | |
| protected void | encode(byte[] v, int offset, int length, byte highByte, long[] result)
Overrides sun.
|
| 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. |
| protected final void | |
| protected 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). |
| protected void | postEncodeCarry(long[] v)
Overrides sun.
|
| protected void | reduce(long[] limbs)
Implements abstract sun. Reduce an IntegerPolynomial representation (a) and store the result in a. |
| protected void | reduceIn(long[] limbs, long x, int index)
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). |
| AS_LONG_LE | back to summary |
|---|---|
| private static final VarHandle AS_LONG_LE | |
| BITS_PER_LIMB | back to summary |
|---|---|
| private static final int BITS_PER_LIMB | |
| MODULUS | back to summary |
|---|---|
| private static final BigInteger MODULUS | |
| NUM_LIMBS | back to summary |
|---|---|
| protected static final int NUM_LIMBS | |
| ONE | back to summary |
|---|---|
| public static final IntegerPolynomial1305 ONE | |
| POWER | back to summary |
|---|---|
| private static final int POWER | |
| SUBTRAHEND | back to summary |
|---|---|
| protected static final int SUBTRAHEND | |
| IntegerPolynomial1305 | back to summary |
|---|---|
| private IntegerPolynomial1305() | |
| carryReduce | back to summary |
|---|---|
| private void carryReduce(long[] r, long c0, long c1, long c2, long c3, long c4, long c5, long c6, long c7, long c8) | |
| carryValue | back to summary |
|---|---|
| protected long carryValue(long x) Overrides sun.
| |
| encode | back to summary |
|---|---|
| protected void encode(ByteBuffer buf, int length, byte highByte, long[] result) Overrides sun. Doc from sun. This version of encode takes a ByteBuffer that is properly ordered, and may extract larger values (e.g. long) from the ByteBuffer for better performance. The implementation below only extracts bytes from the buffer, but this method may be overridden in field-specific implementations.
| |
| encode | back to summary |
|---|---|
| protected void encode(long high, long low, byte highByte, long[] result) | |
| encode | back to summary |
|---|---|
| protected void encode(byte[] v, int offset, int length, byte highByte, long[] result) Overrides sun. | |
| 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.
| |
| modReduce | back to summary |
|---|---|
| protected final void modReduce(long[] limbs, int start, int end) | |
| modReduce | back to summary |
|---|---|
| protected void modReduce(long[] limbs) | |
| 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. | |
| postEncodeCarry | back to summary |
|---|---|
| protected void postEncodeCarry(long[] v) Overrides sun.
| |
| reduce | back to summary |
|---|---|
| protected void reduce(long[] limbs) 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[] limbs, long x, int index) 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.
| |