public static class EasyBox.SharedKey extends Object
| Modifier and Type | Field and Description |
|---|---|
net.openhft.chronicle.bytes.BytesStore |
store |
| Modifier and Type | Method and Description |
|---|---|
long |
address() |
static EasyBox.SharedKey |
precalc(EasyBox.KeyPair alice,
EasyBox.KeyPair bob) |
static 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
|
void |
wipe()
safely wipe the memory backing this key when finished
|
public static EasyBox.SharedKey precalc(EasyBox.PublicKey publicKey, EasyBox.SecretKey secretKey)
publicKey - - the remote side's public keysecretKey - - own secret keypublic static EasyBox.SharedKey precalc(EasyBox.KeyPair alice, EasyBox.KeyPair bob)
public long address()
public void wipe()
Copyright © 2023. All rights reserved.