org.gudy.bouncycastle.jce.spec
Class ElGamalParameterSpec
java.lang.Object
org.gudy.bouncycastle.jce.spec.ElGamalParameterSpec
- All Implemented Interfaces:
- AlgorithmParameterSpec
public class ElGamalParameterSpec
- extends Object
- implements AlgorithmParameterSpec
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 modulusg
- the base generator
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