public class DHGroup
extends java.lang.Object
Constructor and Description |
---|
DHGroup(java.math.BigInteger p,
java.math.BigInteger g)
Base constructor.
|
DHGroup(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Base constructor with the prime factor of (p - 1).
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
getG() |
java.math.BigInteger |
getP() |
java.math.BigInteger |
getQ() |
public DHGroup(java.math.BigInteger p, java.math.BigInteger g)
p
- the prime modulus.g
- the base generator.public DHGroup(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
p
- the prime modulus.q
- specifies the prime factor of (p - 1).g
- the base generator.