Package org.bouncycastle.crypto.general
Class RSA.OperatorFactory
java.lang.Object
org.bouncycastle.crypto.general.RSA.OperatorFactory
- All Implemented Interfaces:
AsymmetricOperatorFactory<RSA.Parameters>
- Enclosing class:
RSA
Factory for creating non-FIPS encryption/decryption operators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBlockDecryptor(AsymmetricKey key, RSA.Parameters parameters) Create a block decryptor for the passed in key and parameter set.createBlockEncryptor(AsymmetricKey key, RSA.Parameters parameters) Create a block encryptor for the passed in key and parameter set.protected org.bouncycastle.crypto.internal.AsymmetricBlockCiphercreateCipher(boolean forEncryption, AsymmetricKey key, RSA.Parameters parameters, SecureRandom random) protected static booleanisRawEngine(org.bouncycastle.crypto.internal.AsymmetricBlockCipher engine)
-
Constructor Details
-
OperatorFactory
public OperatorFactory()
-
-
Method Details
-
createBlockDecryptor
public SingleBlockDecryptor<RSA.Parameters> createBlockDecryptor(AsymmetricKey key, RSA.Parameters parameters) Description copied from interface:AsymmetricOperatorFactoryCreate a block decryptor for the passed in key and parameter set.- Parameters:
key- the key to be used in the decryptor.parameters- the parameter set for the decryptor.- Returns:
- an initialised block decryptor for the passed in arguments.
-
createCipher
protected org.bouncycastle.crypto.internal.AsymmetricBlockCipher createCipher(boolean forEncryption, AsymmetricKey key, RSA.Parameters parameters, SecureRandom random) -
createBlockEncryptor
public SingleBlockEncryptorUsingSecureRandom<RSA.Parameters> createBlockEncryptor(AsymmetricKey key, RSA.Parameters parameters) Description copied from interface:AsymmetricOperatorFactoryCreate a block encryptor for the passed in key and parameter set.- Specified by:
createBlockEncryptorin interfaceAsymmetricOperatorFactory<T extends Parameters>- Parameters:
key- the key to be used in the encryptor.parameters- the parameter set for the encryptor.- Returns:
- an initialised block encryptor for the passed in arguments.
-
isRawEngine
protected static boolean isRawEngine(org.bouncycastle.crypto.internal.AsymmetricBlockCipher engine)
-