Package org.bouncycastle.crypto.general
Class SecureHash.MACOperatorFactory
java.lang.Object
org.bouncycastle.crypto.general.SecureHash.MACOperatorFactory
- All Implemented Interfaces:
MACOperatorFactory<SecureHash.AuthParameters>
- Enclosing class:
- SecureHash
Factory for producing HMAC calculators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
calculateMACSize
(SecureHash.AuthParameters parameters) protected org.bouncycastle.crypto.internal.Mac
createMAC
(SymmetricKey key, SecureHash.AuthParameters parameters) createOutputMACCalculator
(SymmetricKey key, SecureHash.AuthParameters parameters) Create a MAC calculator which provides an OutputStream to write data to.
-
Constructor Details
-
MACOperatorFactory
public MACOperatorFactory()
-
-
Method Details
-
calculateMACSize
-
createMAC
protected org.bouncycastle.crypto.internal.Mac createMAC(SymmetricKey key, SecureHash.AuthParameters parameters) -
createOutputMACCalculator
public final OutputMACCalculator<SecureHash.AuthParameters> createOutputMACCalculator(SymmetricKey key, SecureHash.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.
-