Package org.bouncycastle.crypto.general
Class SipHash.MACOperatorFactory
java.lang.Object
org.bouncycastle.crypto.general.SipHash.MACOperatorFactory
- All Implemented Interfaces:
MACOperatorFactory<SipHash.AuthParameters>
- Enclosing class:
- SipHash
Factory for producing SipHash MAC calculators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
calculateMACSize
(SipHash.AuthParameters parameters) protected org.bouncycastle.crypto.internal.Mac
createMAC
(SymmetricKey key, SipHash.AuthParameters parameters) createOutputMACCalculator
(SymmetricKey key, SipHash.AuthParameters parameters) Create a MAC calculator which provides an OutputStream to write data to.
-
Constructor Details
-
MACOperatorFactory
public MACOperatorFactory()
-
-
Method Details
-
createMAC
protected org.bouncycastle.crypto.internal.Mac createMAC(SymmetricKey key, SipHash.AuthParameters parameters) -
calculateMACSize
-
createOutputMACCalculator
public final OutputMACCalculator<SipHash.AuthParameters> createOutputMACCalculator(SymmetricKey key, SipHash.AuthParameters parameters) Description copied from interface:MACOperatorFactory
Create a MAC calculator which provides an OutputStream to write data to.- Specified by:
createOutputMACCalculator
in interfaceMACOperatorFactory<T extends AuthenticationParameters>
- Parameters:
key
- the key to use to initialise the MAC.parameters
- any additional parameters.- Returns:
- a MAC calculator.
-