AsymmetricBlockCipherpublic class RSABlindingEngine extends java.lang.Object implements AsymmetricBlockCipher
| Constructor | Description |
|---|---|
RSABlindingEngine() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getInputBlockSize() |
Return the maximum size for an input block to this engine.
|
int |
getOutputBlockSize() |
Return the maximum size for an output block to this engine.
|
void |
init(boolean forEncryption,
CipherParameters param) |
Initialise the blinding engine.
|
byte[] |
processBlock(byte[] in,
int inOff,
int inLen) |
Process a single block using the RSA blinding algorithm.
|
public void init(boolean forEncryption,
CipherParameters param)
init in interface AsymmetricBlockCipherforEncryption - true if we are encrypting (blinding), false otherwise.param - the necessary RSA key parameters.public int getInputBlockSize()
getInputBlockSize in interface AsymmetricBlockCipherpublic int getOutputBlockSize()
getOutputBlockSize in interface AsymmetricBlockCipherpublic byte[] processBlock(byte[] in,
int inOff,
int inLen)
processBlock in interface AsymmetricBlockCipherin - 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.