public class ElGamalKeyPairGenerator extends Object implements AsymmetricCipherKeyPairGenerator
This generates keys consistent for use with ElGamal as described in page 164 of "Handbook of Applied Cryptography".
| Constructor and Description |
|---|
ElGamalKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
AsymmetricCipherKeyPair |
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
|
void |
init(KeyGenerationParameters param)
intialise the key pair generator.
|
public void init(KeyGenerationParameters param)
AsymmetricCipherKeyPairGeneratorinit in interface AsymmetricCipherKeyPairGeneratorparam - the parameters the key pair is to be initialised with.public AsymmetricCipherKeyPair generateKeyPair()
AsymmetricCipherKeyPairGeneratorgenerateKeyPair in interface AsymmetricCipherKeyPairGeneratorCopyright © 2015. All rights reserved.