#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 verifier that works with signatures and either raw message digests, or entire /// messages. public interface TlsVerifier { /// TlsStreamVerifier GetStreamVerifier(DigitallySigned signature); /// Return true if the passed in signature and hash represent a real signature. /// the signature object containing the signature to be verified. /// the hash calculated for the signature. /// true if signature verifies, false otherwise. /// in case of an exception verifying signature. bool VerifyRawSignature(DigitallySigned signature, byte[] hash); } } #pragma warning restore #endif