Package com.google.crypto.tink.aead
Class AesEaxKeyManager
- java.lang.Object
-
- com.google.crypto.tink.aead.AesEaxKeyManager
-
public final class AesEaxKeyManager extends java.lang.ObjectThis key manager generates newAesEaxKeykeys and produces new instances ofAesEaxJce.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateaes128EaxTemplate()static KeyTemplateaes256EaxTemplate()static KeyTemplaterawAes128EaxTemplate()static KeyTemplaterawAes256EaxTemplate()static voidregister(boolean newKeyAllowed)
-
-
-
Method Detail
-
register
public static void register(boolean newKeyAllowed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
aes128EaxTemplate
public static final KeyTemplate aes128EaxTemplate()
- Returns:
- a
KeyTemplatethat generates new instances of AES-EAX with the following parameters:- Key size: 16 bytes
- IV size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.TINK
-
rawAes128EaxTemplate
public static final KeyTemplate rawAes128EaxTemplate()
- Returns:
- a
KeyTemplatethat generates new instances of AES-EAX with the following parameters:- Key size: 16 bytes
- IV size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix)
-
aes256EaxTemplate
public static final KeyTemplate aes256EaxTemplate()
- Returns:
- a
KeyTemplatethat generates new instances of AES-EAX with the following parameters:- Key size: 32 bytes
- IV size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.TINK
-
rawAes256EaxTemplate
public static final KeyTemplate rawAes256EaxTemplate()
- Returns:
- a
KeyTemplatethat generates new instances of AES-EAX with the following parameters:- Key size: 32 bytes
- IV size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix)
-
-