| java.lang.Object org.bouncycastle.crypto.engines.RSABlindingEngine
RSABlindingEngine | public class RSABlindingEngine implements AsymmetricBlockCipher(Code) | | 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.
|
Method Summary | |
public int | getInputBlockSize() Return the maximum size for an input block to this engine. | public int | getOutputBlockSize() Return the maximum size for an output block to this engine. | public void | init(boolean forEncryption, CipherParameters param) Initialise the blinding engine. | public byte[] | processBlock(byte[] in, int inOff, int inLen) Process a single block using the RSA blinding algorithm.
Parameters: in - the input array. Parameters: inOff - the offset into the input buffer where the data starts. Parameters: inLen - the length of the data to be processed. |
getInputBlockSize | public int getInputBlockSize()(Code) | | 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.
maximum size for an input block. |
getOutputBlockSize | public int getOutputBlockSize()(Code) | | 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.
maximum size for an output block. |
init | public void init(boolean forEncryption, CipherParameters param)(Code) | | Initialise the blinding engine.
Parameters: forEncryption - true if we are encrypting (blinding), false otherwise. Parameters: param - the necessary RSA key parameters. |
processBlock | public byte[] processBlock(byte[] in, int inOff, int inLen)(Code) | | Process a single block using the RSA blinding algorithm.
Parameters: in - the input array. Parameters: inOff - the offset into the input buffer where the data starts. Parameters: inLen - the length of the data to be processed. the result of the RSA process. throws: DataLengthException - the input block is too large. |
|
|