Package com.google.crypto.tink.prf
Class HmacPrfKeyManager
- java.lang.Object
-
- com.google.crypto.tink.prf.HmacPrfKeyManager
-
public final class HmacPrfKeyManager extends java.lang.ObjectThis key manager generates newHmacPrfKeykeys and produces new instances ofPrfHmacJce.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplatehmacSha256Template()Returns aKeyTemplatethat generates new instances of HMAC keys with the following parameters: Key size: 32 bytes Hash function: SHA256 Prefix type:KeyTemplate.OutputPrefixType.RAWstatic KeyTemplatehmacSha512Template()Returns aKeyTemplatethat generates new instances of HMAC keys with the following parameters: Key size: 64 bytes Hash function: SHA512 Prefix type:KeyTemplate.OutputPrefixType.RAWstatic voidregister(boolean newKeyAllowed)
-
-
-
Method Detail
-
register
public static void register(boolean newKeyAllowed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
hmacSha256Template
public static final KeyTemplate hmacSha256Template()
Returns aKeyTemplatethat generates new instances of HMAC keys with the following parameters:- Key size: 32 bytes
- Hash function: SHA256
- Prefix type:
KeyTemplate.OutputPrefixType.RAW
-
hmacSha512Template
public static final KeyTemplate hmacSha512Template()
Returns aKeyTemplatethat generates new instances of HMAC keys with the following parameters:- Key size: 64 bytes
- Hash function: SHA512
- Prefix type:
KeyTemplate.OutputPrefixType.RAW
-
-