Package org.bouncycastle.crypto.fips
Class FipsSHS.AuthParameters
java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsSHS.AuthParameters
- All Implemented Interfaces:
AuthenticationParameters<FipsSHS.AuthParameters>
,Parameters
- Direct Known Subclasses:
FipsSHS.KMACParameters
- Enclosing class:
- FipsSHS
public static class FipsSHS.AuthParameters
extends FipsParameters
implements AuthenticationParameters<FipsSHS.AuthParameters>
Parameters for HMAC modes.
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the length of the MAC that will be made using these parameters in bits.withMACSize
(int macSizeInBits) Return a new set of parameters specifying a specific mac size.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
-
getMACSizeInBits
public int getMACSizeInBits()Return the length of the MAC that will be made using these parameters in bits.- Specified by:
getMACSizeInBits
in interfaceAuthenticationParameters<FipsSHS.AuthParameters>
- Returns:
- the bit length of the MAC.
-
withMACSize
Return a new set of parameters specifying a specific mac size.- Specified by:
withMACSize
in interfaceAuthenticationParameters<FipsSHS.AuthParameters>
- Parameters:
macSizeInBits
- bit length of the MAC length.- Returns:
- a new set of AuthParameters for the MAC size.
-