Class ElGamalKeyPairGenerator
java.lang.Object
org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
a ElGamal key pair generator.
This generates keys consistent for use with ElGamal as described in page 164 of "Handbook of Applied Cryptography".
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturn an AsymmetricCipherKeyPair containing the generated keys.void
init
(KeyGenerationParameters param) intialise the key pair generator.
-
Constructor Details
-
ElGamalKeyPairGenerator
public ElGamalKeyPairGenerator()
-
-
Method Details
-
init
Description copied from interface:AsymmetricCipherKeyPairGenerator
intialise the key pair generator.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- the parameters the key pair is to be initialised with.
-
generateKeyPair
Description copied from interface:AsymmetricCipherKeyPairGenerator
return an AsymmetricCipherKeyPair containing the generated keys.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-