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 Object
implements SymmetricOperatorFactory<T>
Base class for the approved mode SymmetricOperatorFactory implementations.
-
Method Summary
Modifier and TypeMethodDescriptionabstract 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 Details
-
createOutputEncryptor
Description copied from interface:SymmetricOperatorFactoryReturn an encryptor that operates on an output stream.- Specified by:
createOutputEncryptorin 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
Description copied from interface:SymmetricOperatorFactoryReturn a decryptor that operates on an output stream.- Specified by:
createOutputDecryptorin 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
Description copied from interface:SymmetricOperatorFactoryReturn a decryptor that operates on an input stream.- Specified by:
createInputDecryptorin 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.
-