java.lang.Object | |
↳ | org.bouncycastle.crypto.engines.RSABlindingEngine |
This does your basic RSA Chaum's blinding and unblinding as outlined in "Handbook of Applied Cryptography", page 475. You need to use this if you are trying to get another party to generate signatures without them being aware of the message they are signing.
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 blinding engine.
| |||||||||||
Process a single block using the RSA blinding 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 blinding engine.
forEncryption | true if we are encrypting (blinding), false otherwise. |
---|---|
param | the necessary RSA key parameters. |
Process a single block using the RSA blinding 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. |
---|