using System;
using System.IO;
using Org.BouncyCastle.Tls.Crypto;
namespace 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);
}
}