using System; using System.IO; using Org.BouncyCastle.Math; namespace Org.BouncyCastle.Tls.Crypto { /// Basic interface for an SRP-6 server implementation. public interface TlsSrp6Server { /// Generates the server's credentials that are to be sent to the client. /// The server's public value to the client BigInteger GenerateServerCredentials(); /// Processes the client's credentials. If valid the shared secret is generated and returned. /// /// The client's credentials. /// A shared secret . /// If client's credentials are invalid. BigInteger CalculateSecret(BigInteger clientA); } }