#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using System.IO;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto
{
/// Base interface for ephemeral key agreement calculator.
public interface TlsAgreement
{
/// Generate an ephemeral key pair, returning the encoding of the public key.
/// a byte encoding of the public key.
///
byte[] GenerateEphemeral();
/// Pass in the public key for the peer to the agreement calculator.
/// a byte encoding of the peer public key.
///
void ReceivePeerValue(byte[] peerValue);
/// Calculate the agreed secret based on the calculator's current state.
/// the calculated secret.
///
TlsSecret CalculateSecret();
}
}
#pragma warning restore
#endif