This commit is contained in:
2026-06-15 18:18:16 +08:00
parent 97c9fba14e
commit 2b9f134e5f
4164 changed files with 386922 additions and 79 deletions

View File

@@ -0,0 +1,26 @@
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.IO;
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Math;
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto
{
/// <summary>Basic interface for an SRP-6 server implementation.</summary>
public interface TlsSrp6Server
{
/// <summary>Generates the server's credentials that are to be sent to the client.</summary>
/// <returns>The server's public value to the client</returns>
BigInteger GenerateServerCredentials();
/// <summary>Processes the client's credentials. If valid the shared secret is generated and returned.
/// </summary>
/// <param name="clientA">The client's credentials.</param>
/// <returns>A shared secret <see cref="BigInteger"/>.</returns>
/// <exception cref="IOException">If client's credentials are invalid.</exception>
BigInteger CalculateSecret(BigInteger clientA);
}
}
#pragma warning restore
#endif