class RSACoreEngine
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
forEncryption |
private RSAKeyParameters |
key |
Constructor and Description |
---|
RSACoreEngine() |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
convertInput(byte[] in,
int inOff,
int inLen) |
byte[] |
convertOutput(java.math.BigInteger result) |
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 RSA engine.
|
java.math.BigInteger |
processBlock(java.math.BigInteger input) |
private RSAKeyParameters key
private boolean forEncryption
public void init(boolean forEncryption, CipherParameters param)
forEncryption
- true if we are encrypting, false otherwise.param
- the necessary RSA key parameters.public int getInputBlockSize()
public int getOutputBlockSize()
public java.math.BigInteger convertInput(byte[] in, int inOff, int inLen)
public byte[] convertOutput(java.math.BigInteger result)
public java.math.BigInteger processBlock(java.math.BigInteger input)