Class AesGcmHkdfStreamingKeyManager
- java.lang.Object
-
- com.google.crypto.tink.streamingaead.AesGcmHkdfStreamingKeyManager
-
public final class AesGcmHkdfStreamingKeyManager extends java.lang.ObjectThis key manager generates newAesGcmHkdfStreamingKeykeys and produces new instances ofAesGcmHkdfStreaming.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateaes128GcmHkdf1MBTemplate()static KeyTemplateaes128GcmHkdf4KBTemplate()static KeyTemplateaes256GcmHkdf1MBTemplate()static KeyTemplateaes256GcmHkdf4KBTemplate()static voidregister(boolean newKeyAllowed)
-
-
-
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
KeyTemplatethat 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
KeyTemplatethat 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
KeyTemplatethat 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
KeyTemplatethat 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
-
-