Files
ichni_Official/Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/tls/crypto/TlsSrp6Server.cs
2026-06-15 18:18:16 +08:00

27 lines
1.0 KiB
C#

#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