| Package | Description |
|---|---|
| net.openhft.chronicle.salt |
| Modifier and Type | Method and Description |
|---|---|
static EasyBox.SharedKey |
EasyBox.SharedKey.precalc(EasyBox.KeyPair alice,
EasyBox.KeyPair bob) |
static EasyBox.SharedKey |
EasyBox.SharedKey.precalc(EasyBox.PublicKey publicKey,
EasyBox.SecretKey secretKey)
Precalculate the shared secret key given the public and private part of separate keys This can be used to substantially improve
performance when a given sender/receiver exchange multiple messages NOTE: intentionally takes distinct public and private keys
rather than a single KeyPair instance as the key components will normally be complementary parts from two different KeyPairs
|
| Modifier and Type | Method and Description |
|---|---|
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.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.