public static final class Serpent.MACOperatorFactory
extends java.lang.Object
Constructor and Description |
---|
MACOperatorFactory() |
Modifier and Type | Method and Description |
---|---|
protected int |
calculateMACSize(Serpent.AuthParameters parameters) |
protected org.bouncycastle.crypto.internal.Mac |
createMAC(SymmetricKey key,
Serpent.AuthParameters parameters) |
OutputMACCalculator<T> |
createOutputMACCalculator(SymmetricKey key,
T parameters)
Create a MAC calculator which provides an OutputStream to write data to.
|
protected org.bouncycastle.crypto.internal.Mac createMAC(SymmetricKey key, Serpent.AuthParameters parameters)
protected int calculateMACSize(Serpent.AuthParameters parameters)
public final OutputMACCalculator<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.