public final class ChaCha20Poly1305KeyManager extends Object
KeyManager generates new ChaCha20Poly1305 keys and produces new
instances of ChaCha20Poly1305.| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
chaCha20Poly1305Template() |
static KeyTemplate |
rawChaCha20Poly1305Template() |
static void |
register(boolean newKeyAllowed) |
public static void register(boolean newKeyAllowed)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static final KeyTemplate chaCha20Poly1305Template()
KeyTemplate that generates new instances of ChaCha20Poly1305 keys.public static final KeyTemplate rawChaCha20Poly1305Template()
KeyTemplate that generates new instances of ChaCha20Poly1305 keys. Keys
generated from this template create ciphertexts compatible with libsodium and other
libraries.