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
DefaultTlsDHGroupVerifier(int)
Accept named groups and various standard DH groups with 'P' at least the specified number of bits.
public DefaultTlsDHGroupVerifier(int minimumPrimeBits)
Parameters
minimumPrimeBitsintthe minimum bitlength of 'P'.
Fields
DefaultMinimumPrimeBits
public static readonly int DefaultMinimumPrimeBits
Field Value
m_groups
protected readonly IList<DHGroup> m_groups
Field Value
m_minimumPrimeBits
protected readonly int m_minimumPrimeBits
Field Value
Properties
MinimumPrimeBits
public virtual int MinimumPrimeBits { get; }
Property Value
Methods
Accept(DHGroup)
Check whether the given DH group is acceptable for use.
public virtual bool Accept(DHGroup dhGroup)
Parameters
Returns
- bool
true if (and only if) the specified group is acceptable.
AreGroupsEqual(DHGroup, DHGroup)
protected virtual bool AreGroupsEqual(DHGroup a, DHGroup b)
Parameters
Returns
AreParametersEqual(BigInteger, BigInteger)
protected virtual bool AreParametersEqual(BigInteger a, BigInteger b)
Parameters
aBigIntegerbBigInteger
Returns
CheckGroup(DHGroup)
protected virtual bool CheckGroup(DHGroup dhGroup)
Parameters
dhGroupDHGroup
Returns
CheckMinimumPrimeBits(DHGroup)
protected virtual bool CheckMinimumPrimeBits(DHGroup dhGroup)
Parameters
dhGroupDHGroup