#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
namespace Org.BouncyCastle.Crypto
{
///
/// Operators that reduce their input to the validation of a signature produce this type.
///
public interface IVerifier
{
///
/// Return true if the passed in data matches what is expected by the verification result.
///
/// The bytes representing the signature.
/// true if the signature verifies, false otherwise.
bool IsVerified(byte[] data);
///
/// Return true if the length bytes from off in the source array match the signature
/// expected by the verification result.
///
/// Byte array containing the signature.
/// The offset into the source array where the signature starts.
/// The number of bytes in source making up the signature.
/// true if the signature verifies, false otherwise.
bool IsVerified(byte[] source, int off, int length);
}
}
#endif