#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 a TLS signer that works on raw message digests. public interface TlsSigner { /// Generate an encoded signature based on the passed in hash. /// the signature algorithm to use. /// the hash calculated for the signature. /// an encoded signature. /// in case of an exception processing the hash. byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash); /// TlsStreamSigner GetStreamSigner(SignatureAndHashAlgorithm algorithm); } } #pragma warning restore #endif