Class DHGroup
- Namespace
- Org.BouncyCastle.Tls.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
Carrier class for Diffie-Hellman group parameters.
public class DHGroup
- Inheritance
-
DHGroup
- Inherited Members
Constructors
DHGroup(BigInteger, BigInteger, BigInteger, int)
Base constructor with the prime factor of (p - 1).
public DHGroup(BigInteger p, BigInteger q, BigInteger g, int l)
Parameters
pBigIntegerthe prime modulus.
qBigIntegerspecifies the prime factor of (p - 1).
gBigIntegerthe base generator.
lint
Properties
G
public virtual BigInteger G { get; }
Property Value
L
public virtual int L { get; }
Property Value
P
public virtual BigInteger P { get; }
Property Value
Q
public virtual BigInteger Q { get; }