Package org.bouncycastle.crypto.fips
Class FipsSHS.KMACParameters
java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsSHS.AuthParameters
org.bouncycastle.crypto.fips.FipsSHS.KMACParameters
- All Implemented Interfaces:
AuthenticationParameters<FipsSHS.AuthParameters>
,Parameters
- Enclosing class:
- FipsSHS
Customizable KMAC parameters.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return the customization string for this parameter set.withCustomizationString
(byte[] customizationString) Return a new set of parameters specifying a specific customization string.withMACSize
(int macSizeInBits) Return a new set of parameters specifying a specific mac size.Methods inherited from class org.bouncycastle.crypto.fips.FipsSHS.AuthParameters
getMACSizeInBits
Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
Method Details
-
getCustomizationString
public byte[] getCustomizationString()Return the customization string for this parameter set.- Returns:
- the customization string.
-
withCustomizationString
Return a new set of parameters specifying a specific customization string.- Parameters:
customizationString
- the function name bit string (S).- Returns:
- a new set of KMACParameters including the S value.
-
withMACSize
Return a new set of parameters specifying a specific mac size.- Specified by:
withMACSize
in interfaceAuthenticationParameters<FipsSHS.AuthParameters>
- Overrides:
withMACSize
in classFipsSHS.AuthParameters
- Parameters:
macSizeInBits
- bit length of the MAC length.- Returns:
- a new set of AuthParameters for the MAC size.
-