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 FipsSHS.AuthParameters
getMACSizeInBitsMethods inherited from class FipsParameters
getAlgorithmMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
withMACSizein interfaceAuthenticationParameters<FipsSHS.AuthParameters>- Overrides:
withMACSizein classFipsSHS.AuthParameters- Parameters:
macSizeInBits- bit length of the MAC length.- Returns:
- a new set of AuthParameters for the MAC size.
-