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 |
---|---|
BigInteger |
getG()
Returns the base generator
g . |
BigInteger |
getP()
Returns the prime modulus
p . |
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
Copyright © 2015. All rights reserved.