Package org.bouncycastle.crypto.fips
Class FipsMACOperatorFactory<T extends AuthenticationParameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsMACOperatorFactory<T>
- Type Parameters:
T- the parameters type associated with the final implementation of this factory.
- All Implemented Interfaces:
MACOperatorFactory<T>
- Direct Known Subclasses:
FipsAES.MACOperatorFactory,FipsSHS.MACOperatorFactory,FipsTripleDES.MACOperatorFactory
public abstract class FipsMACOperatorFactory<T extends AuthenticationParameters>
extends Object
implements MACOperatorFactory<T>
Base class for the approved mode MACOperatorFactory implementations.
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intcalculateMACSize(T parameters) protected abstract org.bouncycastle.crypto.internal.MaccreateMAC(SymmetricKey key, T parameters) final FipsOutputMACCalculator<T> createOutputMACCalculator(SymmetricKey key, T parameters) Create a MAC calculator which provides an OutputStream to write data to.
-
Method Details
-
createOutputMACCalculator
Description copied from interface:MACOperatorFactoryCreate a MAC calculator which provides an OutputStream to write data to.- Specified by:
createOutputMACCalculatorin interfaceMACOperatorFactory<T extends AuthenticationParameters>- Parameters:
key- the key to use to initialise the MAC.parameters- any additional parameters.- Returns:
- a MAC calculator.
-
calculateMACSize
-
createMAC
-