Class ChaCha20Poly1305KeyManager


  • public final class ChaCha20Poly1305KeyManager
    extends java.lang.Object
    This instance of KeyManager generates new ChaCha20Poly1305 keys and produces new instances of ChaCha20Poly1305.
    • 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 KeyTemplate that generates new instances of ChaCha20Poly1305 keys.
      • rawChaCha20Poly1305Template

        public static final KeyTemplate rawChaCha20Poly1305Template()
        Returns:
        a KeyTemplate that generates new instances of ChaCha20Poly1305 keys. Keys generated from this template create ciphertexts compatible with libsodium and other libraries.