using System; using System.IO; using Org.BouncyCastle.Tls.Crypto; namespace Org.BouncyCastle.Tls { /// Support interface for generating a secret based on the credentials sent by a TLS peer. public interface TlsCredentialedAgreement : TlsCredentials { /// Calculate an agreed secret based on our credentials and the public key credentials of our peer. /// /// public key certificate of our TLS peer. /// the agreed secret. /// in case of an exception on generation of the secret. TlsSecret GenerateAgreement(TlsCertificate peerCertificate); } }