Table of Contents

Class DefaultTlsDHGroupVerifier

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll
public class DefaultTlsDHGroupVerifier : TlsDHGroupVerifier
Inheritance
DefaultTlsDHGroupVerifier
Implements
Inherited Members

Constructors

DefaultTlsDHGroupVerifier()

Accept named groups and various standard DH groups with 'P' at least DefaultMinimumPrimeBits bits.

public DefaultTlsDHGroupVerifier()

DefaultTlsDHGroupVerifier(IList<DHGroup>, int)

Accept named groups and a custom set of group parameters, subject to a minimum bitlength for 'P'.

public DefaultTlsDHGroupVerifier(IList<DHGroup> groups, int minimumPrimeBits)

Parameters

groups IList<DHGroup>

a list of acceptable DHGroups.

minimumPrimeBits int

the minimum bitlength of 'P'.

DefaultTlsDHGroupVerifier(int)

Accept named groups and various standard DH groups with 'P' at least the specified number of bits.

public DefaultTlsDHGroupVerifier(int minimumPrimeBits)

Parameters

minimumPrimeBits int

the minimum bitlength of 'P'.

Fields

DefaultMinimumPrimeBits

public static readonly int DefaultMinimumPrimeBits

Field Value

int

m_groups

protected readonly IList<DHGroup> m_groups

Field Value

IList<DHGroup>

m_minimumPrimeBits

protected readonly int m_minimumPrimeBits

Field Value

int

Properties

MinimumPrimeBits

public virtual int MinimumPrimeBits { get; }

Property Value

int

Methods

Accept(DHGroup)

Check whether the given DH group is acceptable for use.

public virtual bool Accept(DHGroup dhGroup)

Parameters

dhGroup DHGroup

the DHGroup to check.

Returns

bool

true if (and only if) the specified group is acceptable.

AreGroupsEqual(DHGroup, DHGroup)

protected virtual bool AreGroupsEqual(DHGroup a, DHGroup b)

Parameters

a DHGroup
b DHGroup

Returns

bool

AreParametersEqual(BigInteger, BigInteger)

protected virtual bool AreParametersEqual(BigInteger a, BigInteger b)

Parameters

a BigInteger
b BigInteger

Returns

bool

CheckGroup(DHGroup)

protected virtual bool CheckGroup(DHGroup dhGroup)

Parameters

dhGroup DHGroup

Returns

bool

CheckMinimumPrimeBits(DHGroup)

protected virtual bool CheckMinimumPrimeBits(DHGroup dhGroup)

Parameters

dhGroup DHGroup

Returns

bool