#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) #pragma warning disable using System; using System.IO; using BestHTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls { /// Base interface for a class that decrypts TLS secrets. public interface TlsCredentialedDecryptor : TlsCredentials { /// Decrypt the passed in cipher text using the parameters available. /// the parameters to use for the decryption. /// the cipher text containing the secret. /// a TLS secret. /// on a parsing or decryption error. TlsSecret Decrypt(TlsCryptoParameters cryptoParams, byte[] ciphertext); } } #pragma warning restore #endif