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 Constructor Description OperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FipsInputDecryptor<FipsTripleDES.Parameters>createInputDecryptor(SymmetricKey key, FipsTripleDES.Parameters parameters)Return a decryptor that operates on an input stream.FipsOutputDecryptor<FipsTripleDES.Parameters>createOutputDecryptor(SymmetricKey key, FipsTripleDES.Parameters parameters)Return a decryptor that operates on an output stream.FipsOutputEncryptor<FipsTripleDES.Parameters>createOutputEncryptor(SymmetricKey key, FipsTripleDES.Parameters parameters)Return an encryptor that operates on an output stream.
-
-
-
Method Detail
-
createOutputEncryptor
public FipsOutputEncryptor<FipsTripleDES.Parameters> createOutputEncryptor(SymmetricKey key, FipsTripleDES.Parameters parameters)
Description copied from interface:SymmetricOperatorFactoryReturn an encryptor that operates on an output stream.- Specified by:
createOutputEncryptorin interfaceSymmetricOperatorFactory<FipsTripleDES.Parameters>- Specified by:
createOutputEncryptorin 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:SymmetricOperatorFactoryReturn a decryptor that operates on an output stream.- Specified by:
createOutputDecryptorin interfaceSymmetricOperatorFactory<FipsTripleDES.Parameters>- Specified by:
createOutputDecryptorin 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:SymmetricOperatorFactoryReturn a decryptor that operates on an input stream.- Specified by:
createInputDecryptorin interfaceSymmetricOperatorFactory<FipsTripleDES.Parameters>- Specified by:
createInputDecryptorin classFipsSymmetricOperatorFactory<FipsTripleDES.Parameters>- Parameters:
key- the key to initialize the encryptor with.parameters- the parameters to use to initialize the encryptor.- Returns:
- an InputDecryptor.
-
-