| Modifier and Type | Class and Description |
|---|---|
static class |
SealedBox.KeyPair
Helper class to handle KeyPair creation Explicitly named static methods are provided for consistency with EasyBox where they
differentiate normal vs deterministic calls (As noted below, deterministic calls are not meaningful for sealed boxes)
|
static class |
SealedBox.PublicKey
Helper class to manage the public part of a KeyPair A PublicKey is created internally as part of a KeyPair, and provides a
strongly-typed wrapper over the underlying BytesStore
|
static class |
SealedBox.SecretKey
Helper class to manage the secret part of a KeyPair A SecretKey is created internally as part of a KeyPair, and provides a
strongly-typed wrapper over the underlying BytesStore
|
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.bytes.BytesStore |
decrypt(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore ciphertext,
net.openhft.chronicle.bytes.BytesStore publicKey,
net.openhft.chronicle.bytes.BytesStore secretKey)
Underlying decrypt call taking explicit BytesStores Where possible the strongly-typed versions above should be preferred
|
static net.openhft.chronicle.bytes.BytesStore |
decrypt(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore ciphertext,
SealedBox.PublicKey publicKey,
SealedBox.SecretKey secretKey)
As above, but result BytesStore is passed in first arg
|
static net.openhft.chronicle.bytes.BytesStore |
decrypt(net.openhft.chronicle.bytes.BytesStore ciphertext,
SealedBox.PublicKey publicKey,
SealedBox.SecretKey secretKey)
Decrypt a message given own (receiver's) public and secret keys
|
static net.openhft.chronicle.bytes.BytesStore |
encrypt(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
net.openhft.chronicle.bytes.BytesStore publicKey)
Underlying encrypt call taking explicit BytesStores Where possible the strongly-typed versions above should be preferred
|
static net.openhft.chronicle.bytes.BytesStore |
encrypt(net.openhft.chronicle.bytes.BytesStore result,
net.openhft.chronicle.bytes.BytesStore message,
SealedBox.PublicKey publicKey)
As above, but result BytesStore is passed in first arg
|
static net.openhft.chronicle.bytes.BytesStore |
encrypt(net.openhft.chronicle.bytes.BytesStore message,
SealedBox.PublicKey publicKey)
Anonymously encrypt a message given a receivers public key
|
static SealedBox |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SealedBox[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static SealedBox[] values()
for (SealedBox c : SealedBox.values()) System.out.println(c);
public static SealedBox valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NotNull
public static net.openhft.chronicle.bytes.BytesStore encrypt(@NotNull
net.openhft.chronicle.bytes.BytesStore message,
@NotNull
SealedBox.PublicKey publicKey)
message - - the cleartext messagepublicKey - - the recipients public key@NotNull
public static net.openhft.chronicle.bytes.BytesStore encrypt(@Nullable
net.openhft.chronicle.bytes.BytesStore result,
@NotNull
net.openhft.chronicle.bytes.BytesStore message,
@NotNull
SealedBox.PublicKey publicKey)
result - - the ByteStore for the ciphertext result remaining params as above@NotNull
public static net.openhft.chronicle.bytes.BytesStore encrypt(@Nullable
net.openhft.chronicle.bytes.BytesStore result,
@NotNull
net.openhft.chronicle.bytes.BytesStore message,
@NotNull
net.openhft.chronicle.bytes.BytesStore publicKey)
@NotNull
public static net.openhft.chronicle.bytes.BytesStore decrypt(@NotNull
net.openhft.chronicle.bytes.BytesStore ciphertext,
@NotNull
SealedBox.PublicKey publicKey,
@NotNull
SealedBox.SecretKey secretKey)
ciphertext - - the encrypted messagepublicKey - - receiver's public keysecretKey - - receiver's private key@NotNull
public static net.openhft.chronicle.bytes.BytesStore decrypt(@Nullable
net.openhft.chronicle.bytes.BytesStore result,
@NotNull
net.openhft.chronicle.bytes.BytesStore ciphertext,
@NotNull
SealedBox.PublicKey publicKey,
@NotNull
SealedBox.SecretKey secretKey)
result - - the BytesStore for the cleartext result remaining params as above@NotNull
public static net.openhft.chronicle.bytes.BytesStore decrypt(@Nullable
net.openhft.chronicle.bytes.BytesStore result,
@NotNull
net.openhft.chronicle.bytes.BytesStore ciphertext,
@NotNull
net.openhft.chronicle.bytes.BytesStore publicKey,
@NotNull
net.openhft.chronicle.bytes.BytesStore secretKey)
Copyright © 2019. All rights reserved.