org.bouncycastle.crypto.engines
public class ElGamalEngine extends Object implements AsymmetricBlockCipher
Method Summary | |
---|---|
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 ElGamal engine.
|
byte[] | processBlock(byte[] in, int inOff, int inLen)
Process a single block using the basic ElGamal algorithm.
|
Returns: maximum size for an input block.
Returns: maximum size for an output block.
Parameters: forEncryption true if we are encrypting, false otherwise. param the necessary ElGamal key parameters.
Parameters: in the input array. inOff the offset into the input buffer where the data starts. inLen the length of the data to be processed.
Returns: the result of the ElGamal process.
Throws: DataLengthException the input block is too large.