summary refs log tree commit diff
path: root/crypto/src/tls/TlsDHGroupVerifier.cs
blob: 2fb208cc091e9af2a8a8a49fe15c92a12d6c1912 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;

using Org.BouncyCastle.Tls.Crypto;

namespace Org.BouncyCastle.Tls
{
    /// <summary>Interface for verifying explicit Diffie-Hellman group parameters.</summary>
    public interface TlsDHGroupVerifier
    {
        /// <summary>Check whether the given DH group is acceptable for use.</summary>
        /// <param name="dhGroup">the <see cref="DHGroup"/> to check.</param>
        /// <returns>true if (and only if) the specified group is acceptable.</returns>
        bool Accept(DHGroup dhGroup);
    }
}