Class AesGcmHkdfStreamingKeyManager


  • public final class AesGcmHkdfStreamingKeyManager
    extends java.lang.Object
    This key manager generates new AesGcmHkdfStreamingKey keys and produces new instances of AesGcmHkdfStreaming.
    • Method Detail

      • register

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

        public static final KeyTemplate aes128GcmHkdf4KBTemplate()
        Returns:
        a KeyTemplate that generates new instances of AesGcmHkdfStreaming keys with the following parameters:
        • Size of the main key: 16 bytes
        • HKDF algo: HMAC-SHA256
        • Size of AES-GCM derived keys: 16 bytes
        • Ciphertext segment size: 4096 bytes
      • aes128GcmHkdf1MBTemplate

        public static final KeyTemplate aes128GcmHkdf1MBTemplate()
        Returns:
        a KeyTemplate that generates new instances of AesGcmHkdfStreaming keys with the following parameters:
        • Size of the main key: 16 bytes
        • HKDF algo: HMAC-SHA256
        • Size of AES-GCM derived keys: 16 bytes
        • Ciphertext segment size: 1MB
      • aes256GcmHkdf4KBTemplate

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

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