public class

ElGamalKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator
java.lang.Object
   ↳ org.bouncycastle.crypto.generators.ElGamalKeyPairGenerator

Class Overview

a ElGamal key pair generator.

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

Summary

Public Constructors
ElGamalKeyPairGenerator()
Public Methods
AsymmetricCipherKeyPair generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
void init(KeyGenerationParameters param)
intialise the key pair generator.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator

Public Constructors

public ElGamalKeyPairGenerator ()

Public Methods

public AsymmetricCipherKeyPair generateKeyPair ()

return an AsymmetricCipherKeyPair containing the generated keys.

Returns
  • an AsymmetricCipherKeyPair containing the generated keys.

public void init (KeyGenerationParameters param)

intialise the key pair generator.

Parameters
param the parameters the key pair is to be initialised with.