This generates keys consistent for use with ElGamal as described in page 164 of "Handbook of Applied Cryptography".
| Modifier and Type | Field and Description |
|---|---|
| private ElGamalKeyGenerationParameters |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AsymmetricCipherKeyPair | generateKeyPair()
Implements org. return an AsymmetricCipherKeyPair containing the generated keys. |
| public void | init(KeyGenerationParameters
the parameters the key pair is to be initialised with. param)Implements org. intialise the key pair generator. |
| param | back to summary |
|---|---|
| private ElGamalKeyGenerationParameters param | |
| ElGamalKeyPairGenerator | back to summary |
|---|---|
| public ElGamalKeyPairGenerator() | |
| generateKeyPair | back to summary |
|---|---|
| public AsymmetricCipherKeyPair generateKeyPair() Implements org. Doc from org. return an AsymmetricCipherKeyPair containing the generated keys.
| |
| init | back to summary |
|---|---|
| public void init(KeyGenerationParameters param) Implements org. Doc from org. intialise the key pair generator.
| |