Package org.bouncycastle.crypto.fips
Class FipsSymmetricOperatorFactory<T extends Parameters>
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsSymmetricOperatorFactory<T>
-
- Type Parameters:
T
- the parameters type associated with the final implementation of this factory.
- All Implemented Interfaces:
SymmetricOperatorFactory<T>
- Direct Known Subclasses:
FipsAES.OperatorFactory
,FipsTripleDES.OperatorFactory
public abstract class FipsSymmetricOperatorFactory<T extends Parameters> extends java.lang.Object implements SymmetricOperatorFactory<T>
Base class for the approved mode SymmetricOperatorFactory implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract FipsInputDecryptor<T>
createInputDecryptor(SymmetricKey key, T parameter)
Return a decryptor that operates on an input stream.abstract FipsOutputDecryptor<T>
createOutputDecryptor(SymmetricKey key, T parameter)
Return a decryptor that operates on an output stream.abstract FipsOutputEncryptor<T>
createOutputEncryptor(SymmetricKey key, T parameter)
Return an encryptor that operates on an output stream.
-
-
-
Method Detail
-
createOutputEncryptor
public abstract FipsOutputEncryptor<T> createOutputEncryptor(SymmetricKey key, T parameter)
Description copied from interface:SymmetricOperatorFactory
Return an encryptor that operates on an output stream.- Specified by:
createOutputEncryptor
in interfaceSymmetricOperatorFactory<T extends Parameters>
- Parameters:
key
- the key to initialize the encryptor with.parameter
- the parameters to use to initialize the encryptor.- Returns:
- an OutputEncryptor
-
createOutputDecryptor
public abstract FipsOutputDecryptor<T> createOutputDecryptor(SymmetricKey key, T parameter)
Description copied from interface:SymmetricOperatorFactory
Return a decryptor that operates on an output stream.- Specified by:
createOutputDecryptor
in interfaceSymmetricOperatorFactory<T extends Parameters>
- Parameters:
key
- the key to initialize the encryptor with.parameter
- the parameters to use to initialize the encryptor.- Returns:
- an OutputDecryptor.
-
createInputDecryptor
public abstract FipsInputDecryptor<T> createInputDecryptor(SymmetricKey key, T parameter)
Description copied from interface:SymmetricOperatorFactory
Return a decryptor that operates on an input stream.- Specified by:
createInputDecryptor
in interfaceSymmetricOperatorFactory<T extends Parameters>
- Parameters:
key
- the key to initialize the encryptor with.parameter
- the parameters to use to initialize the encryptor.- Returns:
- an InputDecryptor.
-
-