org.gudy.bouncycastle.jce.spec
Class ElGamalParameterSpec

java.lang.Object
  extended by org.gudy.bouncycastle.jce.spec.ElGamalParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class ElGamalParameterSpec
extends Object
implements AlgorithmParameterSpec


Constructor Summary
ElGamalParameterSpec(BigInteger p, BigInteger g)
          Constructs a parameter set for Diffie-Hellman, using a prime modulus p and a base generator g.
 
Method Summary
 BigInteger getG()
          Returns the base generator g.
 BigInteger getP()
          Returns the prime modulus p.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElGamalParameterSpec

public ElGamalParameterSpec(BigInteger p,
                            BigInteger g)
Constructs a parameter set for Diffie-Hellman, using a prime modulus p and a base generator g.

Parameters:
p - the prime modulus
g - the base generator
Method Detail

getP

public BigInteger getP()
Returns the prime modulus p.

Returns:
the prime modulus p

getG

public BigInteger getG()
Returns the base generator g.

Returns:
the base generator g