Package org.bouncycastle.crypto.fips
Class FipsTripleDES.OperatorFactory
java.lang.Object
org.bouncycastle.crypto.fips.FipsSymmetricOperatorFactory<FipsTripleDES.Parameters>
org.bouncycastle.crypto.fips.FipsTripleDES.OperatorFactory
- All Implemented Interfaces:
SymmetricOperatorFactory<FipsTripleDES.Parameters>
- Enclosing class:
- FipsTripleDES
public static final class FipsTripleDES.OperatorFactory
extends FipsSymmetricOperatorFactory<FipsTripleDES.Parameters>
Factory for basic Triple-DES encryption/decryption operators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInputDecryptor
(SymmetricKey key, FipsTripleDES.Parameters parameters) Return a decryptor that operates on an input stream.createOutputDecryptor
(SymmetricKey key, FipsTripleDES.Parameters parameters) Return a decryptor that operates on an output stream.createOutputEncryptor
(SymmetricKey key, FipsTripleDES.Parameters parameters) Return an encryptor that operates on an output stream.
-
Constructor Details
-
OperatorFactory
public OperatorFactory()
-
-
Method Details
-
createOutputEncryptor
public FipsOutputEncryptor<FipsTripleDES.Parameters> createOutputEncryptor(SymmetricKey key, FipsTripleDES.Parameters parameters) Description copied from interface:SymmetricOperatorFactory
Return an encryptor that operates on an output stream.- Specified by:
createOutputEncryptor
in interfaceSymmetricOperatorFactory<FipsTripleDES.Parameters>
- Specified by:
createOutputEncryptor
in classFipsSymmetricOperatorFactory<FipsTripleDES.Parameters>
- Parameters:
key
- the key to initialize the encryptor with.parameters
- the parameters to use to initialize the encryptor.- Returns:
- an OutputEncryptor
-
createOutputDecryptor
public FipsOutputDecryptor<FipsTripleDES.Parameters> createOutputDecryptor(SymmetricKey key, FipsTripleDES.Parameters parameters) Description copied from interface:SymmetricOperatorFactory
Return a decryptor that operates on an output stream.- Specified by:
createOutputDecryptor
in interfaceSymmetricOperatorFactory<FipsTripleDES.Parameters>
- Specified by:
createOutputDecryptor
in classFipsSymmetricOperatorFactory<FipsTripleDES.Parameters>
- Parameters:
key
- the key to initialize the encryptor with.parameters
- the parameters to use to initialize the encryptor.- Returns:
- an OutputDecryptor.
-
createInputDecryptor
public FipsInputDecryptor<FipsTripleDES.Parameters> createInputDecryptor(SymmetricKey key, FipsTripleDES.Parameters parameters) Description copied from interface:SymmetricOperatorFactory
Return a decryptor that operates on an input stream.- Specified by:
createInputDecryptor
in interfaceSymmetricOperatorFactory<FipsTripleDES.Parameters>
- Specified by:
createInputDecryptor
in classFipsSymmetricOperatorFactory<FipsTripleDES.Parameters>
- Parameters:
key
- the key to initialize the encryptor with.parameters
- the parameters to use to initialize the encryptor.- Returns:
- an InputDecryptor.
-