Class AesCtrHmacAeadKeyManager

    • Method Detail

      • register

        public static void register​(boolean newKeyAllowed)
                             throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • aes128CtrHmacSha256Template

        public static final KeyTemplate aes128CtrHmacSha256Template()
        Returns:
        a KeyTemplate that generates new instances of AES-CTR-HMAC-AEAD keys with the following parameters:
        • AES key size: 16 bytes
        • AES CTR IV size: 16 byte
        • HMAC key size: 32 bytes
        • HMAC tag size: 16 bytes
        • HMAC hash function: SHA256
      • aes256CtrHmacSha256Template

        public static final KeyTemplate aes256CtrHmacSha256Template()
        Returns:
        a KeyTemplate that generates new instances of AES-CTR-HMAC-AEAD keys with the following parameters:
        • AES key size: 32 bytes
        • AES CTR IV size: 16 byte
        • HMAC key size: 32 bytes
        • HMAC tag size: 32 bytes
        • HMAC hash function: SHA256