| java.lang.Object org.bouncycastle.crypto.engines.ElGamalEngine
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 ElGamal engine. | public byte[] | processBlock(byte[] in, int inOff, int inLen) Process a single block using the basic ElGamal 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 ElGamal this is always one byte less than the size of P on
encryption, and twice the length as the size of P 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 ElGamal this is always one byte less than the size of P on
decryption, and twice the length as the size of P on encryption.
maximum size for an output block. |
init | public void init(boolean forEncryption, CipherParameters param)(Code) | | initialise the ElGamal engine.
Parameters: forEncryption - true if we are encrypting, false otherwise. Parameters: param - the necessary ElGamal key parameters. |
processBlock | public byte[] processBlock(byte[] in, int inOff, int inLen)(Code) | | Process a single block using the basic ElGamal 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 ElGamal process. exception: DataLengthException - the input block is too large. |
|
|