public enum Ed25519 extends Enum<Ed25519>
| Modifier and Type | Class and Description |
|---|---|
static class |
Ed25519.KeyPair |
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIVATE_KEY_LENGTH |
static int |
PUBLIC_KEY_LENGTH |
static int |
SECRET_KEY_LENGTH |
static int |
SIGNATURE_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.bytes.Bytes<Void> |
allocatePrivateKey() |
static net.openhft.chronicle.bytes.Bytes<Void> |
allocatePublicKey() |
static net.openhft.chronicle.bytes.Bytes<Void> |
allocateSecretKey() |
static net.openhft.chronicle.bytes.Bytes<Void> |
generatePrivateKey() |
static void |
generatePrivateKey(net.openhft.chronicle.bytes.Bytes<?> privateKey) |
static void |
generatePublicAndSecretKey(net.openhft.chronicle.bytes.Bytes<Void> publicKey,
net.openhft.chronicle.bytes.Bytes<Void> secretKey) |
static net.openhft.chronicle.bytes.Bytes<Void> |
generateRandomBytes(int length) |
static void |
privateToPublicAndSecret(net.openhft.chronicle.bytes.Bytes<?> publicKey,
net.openhft.chronicle.bytes.Bytes<?> secretKey,
net.openhft.chronicle.bytes.BytesStore<?,?> privateKey) |
static void |
sign(net.openhft.chronicle.bytes.Bytes<?> signature,
net.openhft.chronicle.bytes.BytesStore<?,?> message,
net.openhft.chronicle.bytes.BytesStore<?,?> secretKey) |
static void |
sign(net.openhft.chronicle.bytes.BytesStore<?,?> sigAndMsg,
long signatureOffset,
long messageOffset,
int messageLength,
net.openhft.chronicle.bytes.BytesStore<?,?> secretKey) |
static void |
sign(net.openhft.chronicle.bytes.BytesStore sigAndMsg,
net.openhft.chronicle.bytes.BytesStore<?,?> secretKey) |
static Ed25519 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ed25519[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static boolean |
verify(net.openhft.chronicle.bytes.BytesStore<?,?> sigAndMsg,
net.openhft.chronicle.bytes.BytesStore<?,?> publicKey) |
static boolean |
verify(net.openhft.chronicle.bytes.BytesStore<?,?> sigAndMsg,
long signatureOffset,
long messageOffset,
int messageLength,
net.openhft.chronicle.bytes.BytesStore<?,?> publicKey) |
public static final int PRIVATE_KEY_LENGTH
public static final int PUBLIC_KEY_LENGTH
public static final int SECRET_KEY_LENGTH
public static final int SIGNATURE_LENGTH
public static Ed25519[] values()
for (Ed25519 c : Ed25519.values()) System.out.println(c);
public static Ed25519 valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static net.openhft.chronicle.bytes.Bytes<Void> allocatePublicKey()
public static net.openhft.chronicle.bytes.Bytes<Void> allocatePrivateKey()
public static net.openhft.chronicle.bytes.Bytes<Void> allocateSecretKey()
public static net.openhft.chronicle.bytes.Bytes<Void> generateRandomBytes(int length)
public static void privateToPublicAndSecret(net.openhft.chronicle.bytes.Bytes<?> publicKey,
net.openhft.chronicle.bytes.Bytes<?> secretKey,
net.openhft.chronicle.bytes.BytesStore<?,?> privateKey)
public static void sign(net.openhft.chronicle.bytes.BytesStore sigAndMsg,
net.openhft.chronicle.bytes.BytesStore<?,?> secretKey)
public static void sign(net.openhft.chronicle.bytes.Bytes<?> signature,
net.openhft.chronicle.bytes.BytesStore<?,?> message,
net.openhft.chronicle.bytes.BytesStore<?,?> secretKey)
public static void sign(net.openhft.chronicle.bytes.BytesStore<?,?> sigAndMsg,
long signatureOffset,
long messageOffset,
int messageLength,
net.openhft.chronicle.bytes.BytesStore<?,?> secretKey)
public static boolean verify(net.openhft.chronicle.bytes.BytesStore<?,?> sigAndMsg,
net.openhft.chronicle.bytes.BytesStore<?,?> publicKey)
public static boolean verify(net.openhft.chronicle.bytes.BytesStore<?,?> sigAndMsg,
long signatureOffset,
long messageOffset,
int messageLength,
net.openhft.chronicle.bytes.BytesStore<?,?> publicKey)
public static void generatePrivateKey(net.openhft.chronicle.bytes.Bytes<?> privateKey)
public static net.openhft.chronicle.bytes.Bytes<Void> generatePrivateKey()
Copyright © 2023. All rights reserved.