Package com.google.crypto.tink.aead
Class AesCtrHmacAeadKeyManager
- java.lang.Object
-
- com.google.crypto.tink.aead.AesCtrHmacAeadKeyManager
-
public final class AesCtrHmacAeadKeyManager extends java.lang.ObjectThis key manager generates newAesCtrHmacAeadKeykeys and produces new instances ofEncryptThenAuthenticate.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateaes128CtrHmacSha256Template()static KeyTemplateaes256CtrHmacSha256Template()static voidregister(boolean newKeyAllowed)
-
-
-
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
KeyTemplatethat 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
KeyTemplatethat 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
-
-