Package org.bouncycastle.crypto.general
Class Serpent.MACOperatorFactory
- java.lang.Object
-
- org.bouncycastle.crypto.general.Serpent.MACOperatorFactory
-
- All Implemented Interfaces:
MACOperatorFactory<Serpent.AuthParameters>
- Enclosing class:
- Serpent
public static final class Serpent.MACOperatorFactory extends java.lang.ObjectFactory for producing Serpent MAC calculators.
-
-
Constructor Summary
Constructors Constructor Description MACOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcalculateMACSize(Serpent.AuthParameters parameters)protected MaccreateMAC(SymmetricKey key, Serpent.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, Serpent.AuthParameters parameters)
-
calculateMACSize
protected int calculateMACSize(Serpent.AuthParameters parameters)
-
createOutputMACCalculator
public final OutputMACCalculator<T> createOutputMACCalculator(SymmetricKey key, T parameters)
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.
-
-