| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private ElGamalKeyParameters | |
| private static final BigInteger | |
| private SecureRandom | |
| private static final BigInteger | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: maximum size for an input block.Implements org. |
| public int | Returns: maximum size for an output block.Implements org. |
| public void | init(boolean
true if we are encrypting, false otherwise. forEncryption, CipherParameters the necessary ElGamal key parameters. param)Implements org. |
| public byte[] | Returns: the result of the ElGamal process.the input array. in, int the offset into the input buffer where the data starts. inOff, int the length of the data to be processed. inLen)Implements org. |
| bitSize | back to summary |
|---|---|
| private int bitSize | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| key | back to summary |
|---|---|
| private ElGamalKeyParameters key | |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| TWO | back to summary |
|---|---|
| private static final BigInteger TWO | |
| ZERO | back to summary |
|---|---|
| private static final BigInteger ZERO | |
| ElGamalEngine | back to summary |
|---|---|
| pack-priv ElGamalEngine() | |
| getInputBlockSize | back to summary |
|---|---|
| public int getInputBlockSize() Implements org. 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.
| |
| getOutputBlockSize | back to summary |
|---|---|
| public int getOutputBlockSize() Implements org. 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.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters param) Implements org. initialise the ElGamal engine.
| |
| processBlock | back to summary |
|---|---|
| public byte[] processBlock(byte[] in, int inOff, int inLen) Implements org. Process a single block using the basic ElGamal algorithm.
| |