Class AesCtrHmacStreamingKeyManager


  • public final class AesCtrHmacStreamingKeyManager
    extends java.lang.Object
    This key manager generates new AesCtrHmacStreamingKey keys and produces new instances of AesCtrHmacStreaming.
    • Method Detail

      • register

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

        public static final KeyTemplate aes128CtrHmacSha2564KBTemplate()
        Returns:
        a KeyTemplate that generates new instances of AesCtrHmacStreaming keys with the following parameters:
        • Size of the main key: 16 bytes
        • HKDF algo: HMAC-SHA256
        • Size of AES-CTR derived keys: 16 bytes
        • Tag algo: HMAC-SHA256
        • Tag size: 32 bytes
        • Ciphertext segment size: 4096
      • aes128CtrHmacSha2561MBTemplate

        public static final KeyTemplate aes128CtrHmacSha2561MBTemplate()
        Returns:
        a KeyTemplate that generates new instances of AesCtrHmacStreaming keys with the following parameters:
        • Size of the main key: 16 bytes
        • HKDF algo: HMAC-SHA256
        • Size of AES-CTR derived keys: 16 bytes
        • Tag algo: HMAC-SHA256
        • Tag size: 32 bytes
        • Ciphertext segment size: 1MB
      • aes256CtrHmacSha2564KBTemplate

        public static final KeyTemplate aes256CtrHmacSha2564KBTemplate()
        Returns:
        a KeyTemplate that generates new instances of AesCtrHmacStreaming keys with the following parameters:
        • Size of the main key: 32 bytes
        • HKDF algo: HMAC-SHA256
        • Size of AES-CTR derived keys: 32 bytes
        • Tag algo: HMAC-SHA256
        • Tag size: 32 bytes
        • Ciphertext segment size: 4096
      • aes256CtrHmacSha2561MBTemplate

        public static final KeyTemplate aes256CtrHmacSha2561MBTemplate()
        Returns:
        a KeyTemplate that generates new instances of AesCtrHmacStreaming keys with the following parameters:
        • Size of the main key: 32 bytes
        • HKDF algo: HMAC-SHA256
        • Size of AES-CTR derived keys: 32 bytes
        • Tag algo: HMAC-SHA256
        • Tag size: 32 bytes
        • Ciphertext segment size: 1MB