public static class EasyBox.Nonce extends Object
| Modifier and Type | Field and Description |
|---|---|
net.openhft.chronicle.bytes.BytesStore |
store |
| Modifier and Type | Method and Description |
|---|---|
long |
address()
Get the address of this nonce (only needed if using the explicit low-level interface)
|
static EasyBox.Nonce |
deterministic(net.openhft.chronicle.bytes.BytesStore seed)
Generate deterministic nonce from BytesStore accessing full 32 seed bytes Optionally pass in the underlying BytesStore, else one
is created
|
static EasyBox.Nonce |
deterministic(net.openhft.chronicle.bytes.BytesStore store,
net.openhft.chronicle.bytes.BytesStore seed) |
static EasyBox.Nonce |
deterministic(net.openhft.chronicle.bytes.BytesStore store,
long id) |
static EasyBox.Nonce |
deterministic(long id)
/** Generate deterministic nonce from simple long id (which only uses 8 out of 32 seed bytes) Optionally pass in the underlying
BytesStore, else one is created
|
static EasyBox.Nonce |
generate()
Generate random nonce.
|
static EasyBox.Nonce |
generate(net.openhft.chronicle.bytes.BytesStore store) |
void |
next()
Refresh this nonce for reuse for another message with the same key pair by incrementing value by 1
|
void |
stir()
Refresh this nonce for reuse for another message with the same key pair by randomising
|
public static EasyBox.Nonce generate()
public static EasyBox.Nonce generate(net.openhft.chronicle.bytes.BytesStore store)
public static EasyBox.Nonce deterministic(long id)
id - - the seed value (2^64 options_public static EasyBox.Nonce deterministic(net.openhft.chronicle.bytes.BytesStore store, long id)
public static EasyBox.Nonce deterministic(net.openhft.chronicle.bytes.BytesStore seed)
seed - - seed bytes, which should be at least 32 bytes longpublic static EasyBox.Nonce deterministic(net.openhft.chronicle.bytes.BytesStore store, net.openhft.chronicle.bytes.BytesStore seed)
public void next()
public void stir()
public long address()
Copyright © 2023. All rights reserved.