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