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
public static final class RSA.OperatorFactory extends java.lang.Object
Factory for creating non-FIPS encryption/decryption operators.
-
-
Constructor Summary
Constructors Constructor Description OperatorFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleBlockDecryptor<RSA.Parameters>
createBlockDecryptor(AsymmetricKey key, RSA.Parameters parameters)
Create a block decryptor for the passed in key and parameter set.SingleBlockEncryptorUsingSecureRandom<T>
createBlockEncryptor(AsymmetricKey key, T parameters)
Create a block encryptor for the passed in key and parameter set.protected AsymmetricBlockCipher
createCipher(boolean forEncryption, AsymmetricKey key, RSA.Parameters parameters, java.security.SecureRandom random)
protected static boolean
isRawEngine(AsymmetricBlockCipher engine)
-
-
-
Method Detail
-
createBlockDecryptor
public SingleBlockDecryptor<RSA.Parameters> createBlockDecryptor(AsymmetricKey key, RSA.Parameters parameters)
Description copied from interface:AsymmetricOperatorFactory
Create 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 AsymmetricBlockCipher createCipher(boolean forEncryption, AsymmetricKey key, RSA.Parameters parameters, java.security.SecureRandom random)
-
createBlockEncryptor
public SingleBlockEncryptorUsingSecureRandom<T> createBlockEncryptor(AsymmetricKey key, T parameters)
Description copied from interface:AsymmetricOperatorFactory
Create a block encryptor for the passed in key and parameter set.- Specified by:
createBlockEncryptor
in 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(AsymmetricBlockCipher engine)
-
-