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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SingleBlockDecryptor<T>
createBlockDecryptor(AsymmetricKey key, T parameter)
Create a block decryptor for the passed in key and parameter set.SingleBlockEncryptor<T>
createBlockEncryptor(AsymmetricKey key, T parameter)
Create a block encryptor for the passed in key and parameter set.
-
-
-
Method Detail
-
createBlockEncryptor
SingleBlockEncryptor<T> createBlockEncryptor(AsymmetricKey key, T parameter)
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
SingleBlockDecryptor<T> createBlockDecryptor(AsymmetricKey key, T parameter)
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.
-
-