java.lang.Object | |
↳ | org.bouncycastle.crypto.engines.RSAEngine |
this does your basic RSA algorithm.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the maximum size for an input block to this engine.
| |||||||||||
Return the maximum size for an output block to this engine.
| |||||||||||
initialise the RSA engine.
| |||||||||||
Process a single block using the basic RSA algorithm.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.AsymmetricBlockCipher
|
Return the maximum size for an input block to this engine. For RSA this is always one byte less than the key size on encryption, and the same length as the key size on decryption.
Return the maximum size for an output block to this engine. For RSA this is always one byte less than the key size on decryption, and the same length as the key size on encryption.
initialise the RSA engine.
forEncryption | true if we are encrypting, false otherwise. |
---|---|
param | the necessary RSA key parameters. |
Process a single block using the basic RSA algorithm.
in | the input array. |
---|---|
inOff | the offset into the input buffer where the data starts. |
inLen | the length of the data to be processed. |
DataLengthException | the input block is too large. |
---|