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