Package org.bouncycastle.crypto
Interface AsymmetricOperatorFactory<T extends Parameters>
- Type Parameters:
T
- the type for the parameters for the operator made by this factory.
- All Known Implementing Classes:
ElGamal.OperatorFactory
,RSA.OperatorFactory
public interface AsymmetricOperatorFactory<T extends Parameters>
Interface describing a factory that creates encryptors and decryptors based on public key cryptography.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBlockDecryptor
(AsymmetricKey key, T parameter) Create a block decryptor for the passed in key and parameter set.createBlockEncryptor
(AsymmetricKey key, T parameter) Create a block encryptor for the passed in key and parameter set.
-
Method Details
-
createBlockEncryptor
Create a block encryptor for the passed in key and parameter set.- Parameters:
key
- the key to be used in the encryptor.parameter
- the parameter set for the encryptor.- Returns:
- an initialised block encryptor for the passed in arguments.
-
createBlockDecryptor
Create a block decryptor for the passed in key and parameter set.- Parameters:
key
- the key to be used in the decryptor.parameter
- the parameter set for the decryptor.- Returns:
- an initialised block decryptor for the passed in arguments.
-