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 -
Method Summary
Modifier and TypeMethodDescriptionintReturn the size of the MAC these parameters are for.withMACSize(int macSizeInBits) Create a parameter set with the specified MAC size associated with it.Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithmMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
Constructor Details
-
AuthParameters
public AuthParameters() -
AuthParameters
-
-
Method Details
-
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
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.
-