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 TypeMethodDescriptionint
Return 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
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 Details
-
AuthParameters
public AuthParameters() -
AuthParameters
-
-
Method Details
-
getMACSizeInBits
public int getMACSizeInBits()Description copied from interface:AuthenticationParameters
Return the size of the MAC these parameters are for.- Specified by:
getMACSizeInBits
in interfaceAuthenticationParameters<SipHash.AuthParameters>
- Returns:
- the MAC size in bits.
-
withMACSize
Description copied from interface:AuthenticationParameters
Create a parameter set with the specified MAC size associated with it.- Specified by:
withMACSize
in interfaceAuthenticationParameters<SipHash.AuthParameters>
- Parameters:
macSizeInBits
- bit length of the MAC length.- Returns:
- the new parameter set.
-