public static final class RC2.OperatorFactory
extends java.lang.Object
Constructor and Description |
---|
OperatorFactory() |
Modifier and Type | Method and Description |
---|---|
protected org.bouncycastle.crypto.internal.BufferedBlockCipher |
createCipher(boolean forEncryption,
SymmetricKey key,
RC2.Parameters parameters,
java.security.SecureRandom random) |
InputDecryptor<T> |
createInputDecryptor(SymmetricKey key,
T parameters)
Return a decryptor that operates on an input stream.
|
OutputDecryptor<T> |
createOutputDecryptor(SymmetricKey key,
T parameters)
Return a decryptor that operates on an output stream.
|
OutputEncryptor<T> |
createOutputEncryptor(SymmetricKey key,
T parameters)
Return an encryptor that operates on an output stream.
|
protected org.bouncycastle.crypto.internal.BufferedBlockCipher createCipher(boolean forEncryption, SymmetricKey key, RC2.Parameters parameters, java.security.SecureRandom random)
public final OutputEncryptor<T> createOutputEncryptor(SymmetricKey key, T parameters)
SymmetricOperatorFactory
createOutputEncryptor
in interface SymmetricOperatorFactory<T extends Parameters>
key
- the key to initialize the encryptor with.parameters
- the parameters to use to initialize the encryptor.public OutputDecryptor<T> createOutputDecryptor(SymmetricKey key, T parameters)
SymmetricOperatorFactory
createOutputDecryptor
in interface SymmetricOperatorFactory<T extends Parameters>
key
- the key to initialize the encryptor with.parameters
- the parameters to use to initialize the encryptor.public final InputDecryptor<T> createInputDecryptor(SymmetricKey key, T parameters)
SymmetricOperatorFactory
createInputDecryptor
in interface SymmetricOperatorFactory<T extends Parameters>
key
- the key to initialize the encryptor with.parameters
- the parameters to use to initialize the encryptor.