Package org.bouncycastle.jce.spec
Class ElGamalParameterSpec
java.lang.Object
org.bouncycastle.jce.spec.ElGamalParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
-
Constructor Details
-
ElGamalParameterSpec
Constructs a parameter set for Diffie-Hellman, using a prime moduluspand a base generatorg.- Parameters:
p- the prime modulusg- the base generator
-
-
Method Details
-
getP
Returns the prime modulusp.- Returns:
- the prime modulus
p
-
getG
Returns the base generatorg.- Returns:
- the base generator
g
-