Package org.bouncycastle.crypto
Interface SymmetricOperatorFactory<T extends Parameters>
-
- Type Parameters:
T- the parameters type for the operators the factory creates.
- All Known Implementing Classes:
AES.OperatorFactory,ARC4.OperatorFactory,Blowfish.OperatorFactory,Camellia.OperatorFactory,CAST5.OperatorFactory,ChaCha20.OperatorFactory,DES.OperatorFactory,FipsAES.OperatorFactory,FipsSymmetricOperatorFactory,FipsTripleDES.OperatorFactory,GOST28147.OperatorFactory,IDEA.OperatorFactory,RC2.OperatorFactory,SEED.OperatorFactory,Serpent.OperatorFactory,SHACAL2.OperatorFactory,TripleDES.OperatorFactory,Twofish.OperatorFactory
public interface SymmetricOperatorFactory<T extends Parameters>Interface describing an operator factory that creates operators for doing encryption and decryption using symmetric ciphers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputDecryptor<T>createInputDecryptor(SymmetricKey key, T parameter)Return a decryptor that operates on an input stream.OutputDecryptor<T>createOutputDecryptor(SymmetricKey key, T parameter)Return a decryptor that operates on an output stream.OutputEncryptor<T>createOutputEncryptor(SymmetricKey key, T parameter)Return an encryptor that operates on an output stream.
-
-
-
Method Detail
-
createOutputEncryptor
OutputEncryptor<T> createOutputEncryptor(SymmetricKey key, T parameter)
Return an encryptor that operates on an output stream.- Parameters:
key- the key to initialize the encryptor with.parameter- the parameters to use to initialize the encryptor.- Returns:
- an OutputEncryptor
-
createOutputDecryptor
OutputDecryptor<T> createOutputDecryptor(SymmetricKey key, T parameter)
Return a decryptor that operates on an output stream.- Parameters:
key- the key to initialize the encryptor with.parameter- the parameters to use to initialize the encryptor.- Returns:
- an OutputDecryptor.
-
createInputDecryptor
InputDecryptor<T> createInputDecryptor(SymmetricKey key, T parameter)
Return a decryptor that operates on an input stream.- Parameters:
key- the key to initialize the encryptor with.parameter- the parameters to use to initialize the encryptor.- Returns:
- an InputDecryptor.
-
-