public enum SHA2 extends Enum<SHA2>
| Modifier and Type | Class and Description |
|---|---|
static class |
SHA2.MultiPartSHA256
Wrapper for SHA-256 signing multi-part messages composed of a sequence of arbitrarily-sized chunks
|
static class |
SHA2.MultiPartSHA512
Wrapper for SHA-512 signing multi-part messages composed of a sequence of arbitrarily-sized chunks
|
| Modifier and Type | Method and Description |
|---|---|
static void |
appendSha256(net.openhft.chronicle.bytes.Bytes<?> hash256,
net.openhft.chronicle.bytes.BytesStore<?,?> message)
Append the sha256 hash of a message to a given Bytes handle
|
static void |
appendSha512(net.openhft.chronicle.bytes.Bytes<?> hash512,
net.openhft.chronicle.bytes.BytesStore<?,?> message)
Append the sha512 hash of a message to a given Bytes handle
|
static net.openhft.chronicle.bytes.BytesStore |
sha256(net.openhft.chronicle.bytes.BytesStore message)
Generate sha256 hash for a given message
|
static net.openhft.chronicle.bytes.BytesStore |
sha256(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message)
Generate hash for a given message
|
static net.openhft.chronicle.bytes.BytesStore |
sha512(net.openhft.chronicle.bytes.BytesStore message)
Generate sha512 hash for a given message
|
static net.openhft.chronicle.bytes.BytesStore |
sha512(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message)
Generate sha512 hash for a given message
|
static SHA2 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SHA2[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static SHA2[] values()
for (SHA2 c : SHA2.values()) System.out.println(c);
public static SHA2 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.BytesStore sha256(net.openhft.chronicle.bytes.BytesStore message)
message - - the message to hashpublic static net.openhft.chronicle.bytes.BytesStore sha256(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message)
result - - the BytesStore to hold the resultmessage - - the message to hashpublic static void appendSha256(net.openhft.chronicle.bytes.Bytes<?> hash256,
net.openhft.chronicle.bytes.BytesStore<?,?> message)
hash256 - - the Bytes handle onto which the sha256 hash is appendedmessage - - the message to hashpublic static net.openhft.chronicle.bytes.BytesStore sha512(net.openhft.chronicle.bytes.BytesStore message)
message - - the message to hashpublic static net.openhft.chronicle.bytes.BytesStore sha512(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message)
result - - the BytesStore to hold the resultmessage - - the message to hashpublic static void appendSha512(net.openhft.chronicle.bytes.Bytes<?> hash512,
net.openhft.chronicle.bytes.BytesStore<?,?> message)
hash512 - - the Bytes handle onto which the sha512 hash is appendedmessage - - the message to hashCopyright © 2023. All rights reserved.