Package org.bouncycastle.crypto.general
Class GOST28147.MACOperatorFactory
java.lang.Object
org.bouncycastle.crypto.general.GOST28147.MACOperatorFactory
- All Implemented Interfaces:
MACOperatorFactory<GOST28147.AuthParameters>
- Enclosing class:
- GOST28147
Factory for producing GOST28147 MAC calculators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
calculateMACSize
(GOST28147.AuthParameters parameters) protected org.bouncycastle.crypto.internal.Mac
createMAC
(SymmetricKey key, GOST28147.AuthParameters parameters) createOutputMACCalculator
(SymmetricKey key, GOST28147.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, GOST28147.AuthParameters parameters) -
calculateMACSize
-
createOutputMACCalculator
public final OutputMACCalculator<GOST28147.AuthParameters> createOutputMACCalculator(SymmetricKey key, GOST28147.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.
-