You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
876 B
22 lines
876 B
using System;
|
|
using System.IO;
|
|
|
|
using Org.BouncyCastle.Math;
|
|
|
|
namespace 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);
|
|
}
|
|
}
|
|
|