Package com.google.crypto.tink.mac
Class AesCmacKeyManager
- java.lang.Object
-
- com.google.crypto.tink.mac.AesCmacKeyManager
-
public final class AesCmacKeyManager extends java.lang.ObjectThis key manager generates newAesCmacKeykeys and produces new instances ofAesCmac.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateaes256CmacTemplate()static KeyTemplaterawAes256CmacTemplate()static voidregister(boolean newKeyAllowed)
-
-
-
Method Detail
-
register
public static void register(boolean newKeyAllowed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
aes256CmacTemplate
public static final KeyTemplate aes256CmacTemplate()
- Returns:
- A
KeyTemplatethat generates new instances of AES-CMAC keys with the following parameters:- Key size: 32 bytes
- Tag size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.TINK
-
rawAes256CmacTemplate
public static final KeyTemplate rawAes256CmacTemplate()
- Returns:
- A
KeyTemplatethat generates new instances of AES-CMAC keys with the following parameters:- Key size: 32 bytes
- Tag size: 16 bytes
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix)
-
-