| Package | Description |
|---|---|
| net.openhft.chronicle.salt |
| Modifier and Type | Method and Description |
|---|---|
static EasyBox.Nonce |
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 |
EasyBox.Nonce.deterministic(net.openhft.chronicle.bytes.BytesStore store,
net.openhft.chronicle.bytes.BytesStore seed) |
static EasyBox.Nonce |
EasyBox.Nonce.deterministic(net.openhft.chronicle.bytes.BytesStore store,
long id) |
static EasyBox.Nonce |
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 |
EasyBox.Nonce.generate()
Generate random nonce.
|
static EasyBox.Nonce |
EasyBox.Nonce.generate(net.openhft.chronicle.bytes.BytesStore store) |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.bytes.BytesStore |
EasyBox.decrypt(@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
EasyBox.Nonce nonce,
EasyBox.PublicKey publicKey,
EasyBox.SecretKey secretKey)
As above, but result BytesStore is passed in first arg
|
static @NotNull net.openhft.chronicle.bytes.BytesStore |
EasyBox.decrypt(@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
EasyBox.Nonce nonce,
EasyBox.PublicKey publicKey,
EasyBox.SecretKey secretKey)
Decrypt a message given a nonce, sender's public key, and receiver's private key
|
static net.openhft.chronicle.bytes.BytesStore |
EasyBox.decryptShared(@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
EasyBox.Nonce nonce,
EasyBox.SharedKey sharedKey)
As above, but result BytesStore is passed in first arg
|
static net.openhft.chronicle.bytes.BytesStore |
EasyBox.decryptShared(@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
EasyBox.Nonce nonce,
EasyBox.SharedKey sharedKey)
Decrypt a message given a nonce and a *shared* secret key The shared key should be precalculated using KeyPair.precalc Using a shared
key can substantially improve performance when the same sender/receiver exchange many messages
|
static net.openhft.chronicle.bytes.BytesStore |
EasyBox.encrypt(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
EasyBox.Nonce nonce,
EasyBox.PublicKey publicKey,
EasyBox.SecretKey secretKey)
As above, but result BytesStore is passed in first arg
|
static net.openhft.chronicle.bytes.BytesStore |
EasyBox.encrypt(net.openhft.chronicle.bytes.BytesStore message,
EasyBox.Nonce nonce,
EasyBox.PublicKey publicKey,
EasyBox.SecretKey secretKey)
Encrypt a message given a nonce, receivers public key, and own private key
|
static net.openhft.chronicle.bytes.BytesStore |
EasyBox.encryptShared(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
EasyBox.Nonce nonce,
EasyBox.SharedKey sharedKey)
As above, but result BytesStore is passed in first arg
|
static net.openhft.chronicle.bytes.BytesStore |
EasyBox.encryptShared(net.openhft.chronicle.bytes.BytesStore message,
EasyBox.Nonce nonce,
EasyBox.SharedKey sharedKey)
Encrypt a message given a nonce and a *shared* secret key The shared key should be precalculated using KeyPair.precalc Using a shared
key can substantially improve performance when the same sender/receiver exchange many messages
|
Copyright © 2023. All rights reserved.