public class ElGamalParameterSpec extends Object implements AlgorithmParameterSpec
| Constructor and 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 and Description |
|---|---|
boolean | equals(Object obj)Compares this ElGamal parameter spec to another object for equality. |
BigInteger | getG()Returns the base generator g. |
BigInteger | getP()Returns the prime modulus p. |
int | hashCode()Returns a hash code for this parameter specification. |
public ElGamalParameterSpec(BigInteger p, BigInteger g)
p and a base generator g.p - the prime modulusg - the base generatorpublic boolean equals(Object obj)
public BigInteger getG()
g.gpublic BigInteger getP()
p.p