Package com.google.crypto.tink.aead
Class XChaCha20Poly1305KeyManager
- java.lang.Object
-
- com.google.crypto.tink.aead.XChaCha20Poly1305KeyManager
-
public final class XChaCha20Poly1305KeyManager extends java.lang.ObjectThis instance ofKeyManagergenerates newXChaCha20Poly1305keys and produces new instances ofXChaCha20Poly1305.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplaterawXChaCha20Poly1305Template()static voidregister(boolean newKeyAllowed)static KeyTemplatexChaCha20Poly1305Template()
-
-
-
Method Detail
-
register
public static void register(boolean newKeyAllowed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
xChaCha20Poly1305Template
public static final KeyTemplate xChaCha20Poly1305Template()
- Returns:
- a
KeyTemplatethat generates new instances of XChaCha20Poly1305 keys.
-
rawXChaCha20Poly1305Template
public static final KeyTemplate rawXChaCha20Poly1305Template()
- Returns:
- a
KeyTemplatethat generates new instances of XChaCha20Poly1305 keys. Keys generated from this template create ciphertexts compatible with libsodium and other libraries.
-
-