org.bouncycastle.crypto.generators

Class ElGamalKeyPairGenerator

Implemented Interfaces:
AsymmetricCipherKeyPairGenerator

public class ElGamalKeyPairGenerator
extends java.lang.Object
implements AsymmetricCipherKeyPairGenerator

a ElGamal key pair generator.

This generates keys consistent for use with ElGamal as described in page 164 of "Handbook of Applied Cryptography".

Method Summary

AsymmetricCipherKeyPair
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
void
init(KeyGenerationParameters param)
intialise the key pair generator.

Method Details

generateKeyPair

public AsymmetricCipherKeyPair generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
Specified by:
generateKeyPair in interface AsymmetricCipherKeyPairGenerator
Returns:
an AsymmetricCipherKeyPair containing the generated keys.

init

public void init(KeyGenerationParameters param)
intialise the key pair generator.
Specified by:
init in interface AsymmetricCipherKeyPairGenerator
Parameters:
param - the parameters the key pair is to be initialised with.