T
- the parameters type associated with the final implementation of this factory.public abstract class FipsMACOperatorFactory<T extends AuthenticationParameters> extends java.lang.Object implements MACOperatorFactory<T>
Modifier and Type | Method and Description |
---|---|
protected abstract int |
calculateMACSize(T parameters) |
protected abstract org.bouncycastle.crypto.internal.Mac |
createMAC(SymmetricKey key,
T parameters) |
FipsOutputMACCalculator<T> |
createOutputMACCalculator(SymmetricKey key,
T parameters)
Create a MAC calculator which provides an OutputStream to write data to.
|
public final FipsOutputMACCalculator<T> createOutputMACCalculator(SymmetricKey key, T parameters)
MACOperatorFactory
createOutputMACCalculator
in interface MACOperatorFactory<T extends AuthenticationParameters>
key
- the key to use to initialise the MAC.parameters
- any additional parameters.protected abstract int calculateMACSize(T parameters)
protected abstract org.bouncycastle.crypto.internal.Mac createMAC(SymmetricKey key, T parameters)