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: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
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
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.
-