AlgorithmParameterSpec
public class ElGamalParameterSpec extends Object implements AlgorithmParameterSpec
Constructor | Description |
---|---|
ElGamalParameterSpec(BigInteger p,
BigInteger g) |
Constructs a parameter set for Diffie-Hellman, using a prime modulus
p and a base generator g . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
BigInteger |
getG() |
Returns the base generator
g . |
BigInteger |
getP() |
Returns the prime modulus
p . |
int |
hashCode() |
public ElGamalParameterSpec(BigInteger p, BigInteger g)
p
and a base generator g
.p
- the prime modulusg
- the base generatorpublic BigInteger getP()
p
.p
public BigInteger getG()
g
.g