| Modifier and Type | Field and Description |
|---|---|
| private final EdDSAParameters |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static EdECPoint | |
| public EdECPoint | |
| public <T extends Throwable> AffinePoint | |
| public <T extends Throwable> AffinePoint | |
| private static byte[] | |
| private static byte[] | |
| public byte[] | |
| public EdDSAParameters | |
| private static int | Returns: the number, in range [0,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 static void | prune(byte[]
an encoded scalar value k, int the number of bits in the scalar bits, int the base-2 logarithm of the co-factor logCofactor)Prune an encoded scalar value by modifying it in place. |
| pack-priv void | |
| public byte[] | |
| public boolean | verify(EdDSAParameterSpec sigParams, AffinePoint affineA, byte[] publicKey, byte[] message, byte[] signature)
|
| public boolean |
| params | back to summary |
|---|---|
| private final EdDSAParameters params | |
| EdDSAOperations | back to summary |
|---|---|
| public EdDSAOperations(EdDSAParameters params) throws NoSuchAlgorithmException | |
| asEdECPoint | back to summary |
|---|---|
| private static EdECPoint asEdECPoint(AffinePoint p) | |
| computePublic | back to summary |
|---|---|
| public EdECPoint computePublic(byte[] privateKey) | |
| decodeAffinePoint | back to summary |
|---|---|
| public <T extends Throwable> AffinePoint decodeAffinePoint(Function<String, T> exception, byte[] arr) throws Function:T | |
| decodeAffinePoint | back to summary |
|---|---|
| public <T extends Throwable> AffinePoint decodeAffinePoint(Function<String, T> exception, EdECPoint point) throws Function:T | |
| encode | back to summary |
|---|---|
| private static byte[] encode(int length, Point p) | |
| encode | back to summary |
|---|---|
| private static byte[] encode(int length, AffinePoint p) | |
| generatePrivate | back to summary |
|---|---|
| public byte[] generatePrivate(SecureRandom random) | |
| getParameters | back to summary |
|---|---|
| public EdDSAParameters getParameters() | |
| maskHighOrder | back to summary |
|---|---|
| private static int maskHighOrder(byte[] arr, int bits) Mask off the high order bits of an encoded integer in an array. The array is modified in place.
| |
| prune | back to summary |
|---|---|
| private static void prune(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 it set, and the number is rounded down to a multiple of the co-factor.
| |
| prune | back to summary |
|---|---|
| pack-priv void prune(byte[] arr) | |
| sign | back to summary |
|---|---|
| public byte[] sign(EdDSAParameterSpec sigParams, byte[] privateKey, byte[] message) | |
| verify | back to summary |
|---|---|
| public boolean verify(EdDSAParameterSpec sigParams, AffinePoint affineA, byte[] publicKey, byte[] message, byte[] signature) throws SignatureException | |
| verify | back to summary |
|---|---|
| public boolean verify(EdDSAParameterSpec sigParams, byte[] publicKey, byte[] message, byte[] signature) throws InvalidKeyException, SignatureException | |