| Modifier and Type | Field and Description |
|---|---|
| private final SmallValue | |
| private final ImmutableIntegerModuloP | |
| private final IntegerFieldModuloP | |
| private final ImmutableIntegerModuloP | |
| private final XECParameters | |
| private final ImmutableIntegerModuloP |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public BigInteger | |
| private static void | |
| private ImmutableIntegerModuloP | |
| private ImmutableIntegerModuloP | |
| public byte[] | Returns: the encoded productan encoded scalar k, BigInteger the u-coordinate of a point as a BigInteger u)Multiply an encoded scalar with a point as a BigInteger and return an encoded point. |
| public byte[] | Returns: the encoded productan encoded scalar k, byte[] an encoded point u)Multiply an encoded scalar with an encoded point and return an encoded point. |
| public byte[] | |
| private static IntegerFieldModuloP | |
| public XECParameters | |
| private static byte | Returns: the number, in range [1,8], of bits kept in the highest bytean array containing an encoded integer arr, int the number of bits to keep bits)Mask off the high order bits of an encoded integer in an array. |
| private IntegerModuloP | |
| private static void | pruneK(byte[]
an encoded scalar value k, int the number of bits in the scalar bits, int the base-2 logarithm of the cofactor logCofactor)Prune an encoded scalar value by modifying it in place. |
| private void |
| a24 | back to summary |
|---|---|
| private final SmallValue a24 | |
| basePoint | back to summary |
|---|---|
| private final ImmutableIntegerModuloP basePoint | |
| field | back to summary |
|---|---|
| private final IntegerFieldModuloP field | |
| one | back to summary |
|---|---|
| private final ImmutableIntegerModuloP one | |
| params | back to summary |
|---|---|
| private final XECParameters params | |
| zero | back to summary |
|---|---|
| private final ImmutableIntegerModuloP zero | |
| XECOperations | back to summary |
|---|---|
| public XECOperations(XECParameters c) | |
| bitAt | back to summary |
|---|---|
| private int bitAt(byte[] arr, int index) | |
| computePublic | back to summary |
|---|---|
| public BigInteger computePublic(byte[] k) Compute a public key from an encoded private key. This method will modify the supplied array in order to prune it. | |
| cswap | back to summary |
|---|---|
| private static void cswap(int swap, MutableIntegerModuloP x1, MutableIntegerModuloP x2) | |
| decodeU | back to summary |
|---|---|
| private ImmutableIntegerModuloP decodeU(byte[] u, int bits) Return the field element corresponding to an encoded u-coordinate. This method prunes u by modifying it in place. | |
| decodeU | back to summary |
|---|---|
| private ImmutableIntegerModuloP decodeU(byte[] u) | |
| encodedPointMultiply | back to summary |
|---|---|
| public byte[] encodedPointMultiply(byte[] k, BigInteger u) Multiply an encoded scalar with a point as a BigInteger and return an encoded point. The array k holding the scalar will be pruned by modifying it in place.
| |
| encodedPointMultiply | back to summary |
|---|---|
| public byte[] encodedPointMultiply(byte[] k, byte[] u) Multiply an encoded scalar with an encoded point and return an encoded point. The array k holding the scalar will be pruned by modifying it in place.
| |
| generatePrivate | back to summary |
|---|---|
| public byte[] generatePrivate(SecureRandom random) | |
| getIntegerFieldModulo | back to summary |
|---|---|
| private static IntegerFieldModuloP getIntegerFieldModulo(BigInteger p) | |
| getParameters | back to summary |
|---|---|
| public XECParameters getParameters() | |
| maskHighOrder | back to summary |
|---|---|
| private static byte maskHighOrder(byte[] arr, int bits) Mask off the high order bits of an encoded integer in an array. The array is modified in place.
| |
| pointMultiply | back to summary |
|---|---|
| private IntegerModuloP pointMultiply(byte[] k, ImmutableIntegerModuloP u) | |
| pruneK | back to summary |
|---|---|
| private static void pruneK(byte[] k, int bits, int logCofactor) Prune an encoded scalar value by modifying it in place. The extra high-order bits are masked off, the highest valid bit is set, and the number is rounded down to a multiple of the cofactor.
| |
| pruneK | back to summary |
|---|---|
| private void pruneK(byte[] k) | |