Class AesCtrHmacStreamingKeyManager
- java.lang.Object
-
- com.google.crypto.tink.streamingaead.AesCtrHmacStreamingKeyManager
-
public final class AesCtrHmacStreamingKeyManager extends java.lang.ObjectThis key manager generates newAesCtrHmacStreamingKeykeys and produces new instances ofAesCtrHmacStreaming.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateaes128CtrHmacSha2561MBTemplate()static KeyTemplateaes128CtrHmacSha2564KBTemplate()static KeyTemplateaes256CtrHmacSha2561MBTemplate()static KeyTemplateaes256CtrHmacSha2564KBTemplate()static voidregister(boolean newKeyAllowed)
-
-
-
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
KeyTemplatethat 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
KeyTemplatethat 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
KeyTemplatethat 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
KeyTemplatethat 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
-
-