public final class Ed25519
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PUBLIC_KEY_SIZE |
static int |
SCALAR_SIZE |
static int |
SECRET_KEY_SIZE |
static int |
SEED_SIZE |
static int |
SHARED_SECRET_SIZE |
static int |
SIGNATURE_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
addScalarPublic(byte[] publicKey,
byte[] scalar) |
static byte[] |
addScalarSecret(byte[] secretKey,
byte[] scalar) |
static Pair<byte[],byte[]> |
createKeypair(byte[] seed) |
static byte[] |
createSeed() |
byte[] |
keyExchange(byte[] publicKey,
byte[] secretKey) |
static byte[] |
sign(byte[] message,
byte[] publicKey,
byte[] secretKey) |
static boolean |
verify(byte[] signature,
byte[] message,
byte[] publicKey) |
public static final int SEED_SIZE
public static final int PUBLIC_KEY_SIZE
public static final int SECRET_KEY_SIZE
public static final int SIGNATURE_SIZE
public static final int SCALAR_SIZE
public static final int SHARED_SECRET_SIZE
public static byte[] createSeed()
public static Pair<byte[],byte[]> createKeypair(byte[] seed)
seed - public static byte[] sign(byte[] message,
byte[] publicKey,
byte[] secretKey)
message - publicKey - secretKey - public static boolean verify(byte[] signature,
byte[] message,
byte[] publicKey)
signature - message - publicKey - public static byte[] addScalarPublic(byte[] publicKey,
byte[] scalar)
publicKey - scalar - public static byte[] addScalarSecret(byte[] secretKey,
byte[] scalar)
secretKey - scalar - public byte[] keyExchange(byte[] publicKey,
byte[] secretKey)
publicKey - secretKey -