Package org.bouncycastle.crypto.general
Class SipHash.AuthParameters
- java.lang.Object
-
- org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
-
- org.bouncycastle.crypto.general.SipHash.AuthParameters
-
- All Implemented Interfaces:
AuthenticationParameters<SipHash.AuthParameters>,Parameters
- Enclosing class:
- SipHash
public static final class SipHash.AuthParameters extends GeneralParameters<GeneralAlgorithm> implements AuthenticationParameters<SipHash.AuthParameters>
Parameters for SipHash MAC modes.
-
-
Constructor Summary
Constructors Constructor Description AuthParameters()AuthParameters(GeneralAlgorithm algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMACSizeInBits()Return the size of the MAC these parameters are for.SipHash.AuthParameterswithMACSize(int macSizeInBits)Create a parameter set with the specified MAC size associated with it.-
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
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
-
-
-
-
Constructor Detail
-
AuthParameters
public AuthParameters()
-
AuthParameters
public AuthParameters(GeneralAlgorithm algorithm)
-
-
Method Detail
-
getMACSizeInBits
public int getMACSizeInBits()
Description copied from interface:AuthenticationParametersReturn the size of the MAC these parameters are for.- Specified by:
getMACSizeInBitsin interfaceAuthenticationParameters<SipHash.AuthParameters>- Returns:
- the MAC size in bits.
-
withMACSize
public SipHash.AuthParameters withMACSize(int macSizeInBits)
Description copied from interface:AuthenticationParametersCreate a parameter set with the specified MAC size associated with it.- Specified by:
withMACSizein interfaceAuthenticationParameters<SipHash.AuthParameters>- Parameters:
macSizeInBits- bit length of the MAC length.- Returns:
- the new parameter set.
-
-