public enum SealedBox extends Enum<SealedBox>
| 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 @NotNull 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)
Underlying decrypt call taking explicit BytesStores Where possible the strongly-typed versions above should be preferred
|
static @NotNull 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)
As above, but result BytesStore is passed in first arg
|
static @NotNull net.openhft.chronicle.bytes.BytesStore |
decrypt(@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
@NotNull SealedBox.PublicKey publicKey,
@NotNull SealedBox.SecretKey secretKey)
Decrypt a message given own (receiver's) public and secret keys
|
static @NotNull 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)
Underlying encrypt call taking explicit BytesStores Where possible the strongly-typed versions above should be preferred
|
static @NotNull net.openhft.chronicle.bytes.BytesStore |
encrypt(@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull net.openhft.chronicle.bytes.BytesStore message,
@NotNull SealedBox.PublicKey publicKey)
As above, but result BytesStore is passed in first arg
|
static @NotNull net.openhft.chronicle.bytes.BytesStore |
encrypt(@NotNull net.openhft.chronicle.bytes.BytesStore message,
@NotNull SealedBox.PublicKey publicKey)
Anonymously encrypt a message given a receivers public key
|
static SealedBox |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@NotNull
public static @NotNull net.openhft.chronicle.bytes.BytesStore encrypt(@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore message,
@NotNull
@NotNull SealedBox.PublicKey publicKey)
message - - the cleartext messagepublicKey - - the recipients public key@NotNull
public static @NotNull net.openhft.chronicle.bytes.BytesStore encrypt(@Nullable
@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore message,
@NotNull
@NotNull SealedBox.PublicKey publicKey)
result - - the ByteStore for the ciphertext resultmessage - - the cleartext messagepublicKey - - the recipients public key@NotNull
public static @NotNull net.openhft.chronicle.bytes.BytesStore encrypt(@Nullable
@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore message,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore publicKey)
result - - the ByteStore for the ciphertext resultmessage - - the cleartext messagepublicKey - - the recipients public key@NotNull
public static @NotNull net.openhft.chronicle.bytes.BytesStore decrypt(@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
@NotNull
@NotNull SealedBox.PublicKey publicKey,
@NotNull
@NotNull SealedBox.SecretKey secretKey)
ciphertext - - the encrypted messagepublicKey - - receiver's public keysecretKey - - receiver's private key@NotNull
public static @NotNull net.openhft.chronicle.bytes.BytesStore decrypt(@Nullable
@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
@NotNull
@NotNull SealedBox.PublicKey publicKey,
@NotNull
@NotNull SealedBox.SecretKey secretKey)
result - - the BytesStore for the cleartext resultciphertext - - the encrypted messagepublicKey - - receiver's public keysecretKey - - receiver's private key@NotNull
public static @NotNull net.openhft.chronicle.bytes.BytesStore decrypt(@Nullable
@Nullable net.openhft.chronicle.bytes.BytesStore result,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore ciphertext,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore publicKey,
@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore secretKey)
result - - the BytesStore for the cleartext resultciphertext - - the encrypted messagepublicKey - - receiver's public keysecretKey - - receiver's private keyCopyright © 2023. All rights reserved.