Top Description Constructors Methods
org.bouncycastle.crypto.fips

public abstract Class FipsMACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>>

extends Object
implements MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>>
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.MACOperatorFactory
Known Direct Subclasses
org.bouncycastle.crypto.fips.FipsSHS.MACOperatorFactory, org.bouncycastle.crypto.fips.FipsTripleDES.MACOperatorFactory, org.bouncycastle.crypto.fips.FipsAES.MACOperatorFactory
Type Parameters
<T>
the parameters type associated with the final implementation of this factory.
Imports
org.bouncycastle.crypto.AuthenticationParameters, .MACOperatorFactory, .SymmetricKey, org.bouncycastle.crypto.internal.Mac, org.bouncycastle.crypto.internal.io.MacOutputStream

Base class for the approved mode MACOperatorFactory implementations.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected abstract int
calculateMACSize(T parameters)

protected abstract Mac
createMAC(SymmetricKey key, T parameters)

public final FipsOutputMACCalculator<T>
createOutputMACCalculator(SymmetricKey
the key to use to initialise the MAC.
key
,
final T
any additional parameters.
parameters
)

Implements org.bouncycastle.crypto.MACOperatorFactory.createOutputMACCalculator.

Create a MAC calculator which provides an OutputStream to write data to.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FipsMACOperatorFactoryback to summary
pack-priv FipsMACOperatorFactory()

Method Detail

calculateMACSizeback to summary
protected abstract int calculateMACSize(T parameters)
createMACback to summary
protected abstract Mac createMAC(SymmetricKey key, T parameters)
createOutputMACCalculatorback to summary
public final FipsOutputMACCalculator<T> createOutputMACCalculator(SymmetricKey key, final T parameters)

Implements org.bouncycastle.crypto.MACOperatorFactory.createOutputMACCalculator.

Doc from org.bouncycastle.crypto.MACOperatorFactory.createOutputMACCalculator.

Create a MAC calculator which provides an OutputStream to write data to.

Parameters
key:SymmetricKey

the key to use to initialise the MAC.

parameters:T

any additional parameters.

Returns:FipsOutputMACCalculator<T>

a MAC calculator.