Package org.bouncycastle.jce.spec
Class ElGamalParameterSpec
- java.lang.Object
-
- org.bouncycastle.jce.spec.ElGamalParameterSpec
-
- All Implemented Interfaces:
AlgorithmParameterSpec
public class ElGamalParameterSpec extends Object implements AlgorithmParameterSpec
-
-
Constructor Summary
Constructors Constructor Description ElGamalParameterSpec(BigInteger p, BigInteger g)
Constructs a parameter set for Diffie-Hellman, using a prime modulusp
and a base generatorg
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
getG()
Returns the base generatorg
.BigInteger
getP()
Returns the prime modulusp
.
-
-
-
Constructor Detail
-
ElGamalParameterSpec
public ElGamalParameterSpec(BigInteger p, BigInteger g)
Constructs a parameter set for Diffie-Hellman, using a prime modulusp
and a base generatorg
.- Parameters:
p
- the prime modulusg
- the base generator
-
-
Method Detail
-
getP
public BigInteger getP()
Returns the prime modulusp
.- Returns:
- the prime modulus
p
-
getG
public BigInteger getG()
Returns the base generatorg
.- Returns:
- the base generator
g
-
-