Package org.bouncycastle.crypto.general
Class SHACAL2.MACOperatorFactory
- java.lang.Object
-
- org.bouncycastle.crypto.general.SHACAL2.MACOperatorFactory
-
- All Implemented Interfaces:
MACOperatorFactory<SHACAL2.AuthParameters>
- Enclosing class:
- SHACAL2
public static final class SHACAL2.MACOperatorFactory extends java.lang.Object
Factory for producing SHACAL-2 MAC calculators.
-
-
Constructor Summary
Constructors Constructor Description MACOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calculateMACSize(SHACAL2.AuthParameters parameters)
protected Mac
createMAC(SymmetricKey key, SHACAL2.AuthParameters parameters)
OutputMACCalculator<T>
createOutputMACCalculator(SymmetricKey key, T parameters)
Create a MAC calculator which provides an OutputStream to write data to.
-
-
-
Method Detail
-
createMAC
protected Mac createMAC(SymmetricKey key, SHACAL2.AuthParameters parameters)
-
calculateMACSize
protected int calculateMACSize(SHACAL2.AuthParameters parameters)
-
createOutputMACCalculator
public final OutputMACCalculator<T> createOutputMACCalculator(SymmetricKey key, T 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.
-
-