java.lang.Object | |
↳ | org.bouncycastle.crypto.engines.ElGamalEngine |
this does your basic ElGamal algorithm.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the maximum size for an input block to this engine.
| |||||||||||
Return the maximum size for an output block to this engine.
| |||||||||||
initialise the ElGamal engine.
| |||||||||||
Process a single block using the basic ElGamal algorithm.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.AsymmetricBlockCipher
|
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.
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.
initialise the ElGamal engine.
forEncryption | true if we are encrypting, false otherwise. |
---|---|
param | the necessary ElGamal key parameters. |
Process a single block using the basic ElGamal algorithm.
in | 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. |
---|