Interface TlsVerifier
- Namespace
- Org.BouncyCastle.Tls.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
Base interface for a TLS verifier that works with signatures and either raw message digests, or entire messages.
public interface TlsVerifier
Methods
GetStreamVerifier(DigitallySigned)
TlsStreamVerifier GetStreamVerifier(DigitallySigned digitallySigned)
Parameters
digitallySignedDigitallySigned
Returns
Exceptions
VerifyRawSignature(DigitallySigned, byte[])
Return true if the passed in signature and hash represent a real signature.
bool VerifyRawSignature(DigitallySigned digitallySigned, byte[] hash)
Parameters
digitallySignedDigitallySignedthe signature object containing the signature to be verified.
hashbyte[]the hash calculated for the signature.
Returns
- bool
true if signature verifies, false otherwise.
Exceptions
- IOException
in case of an exception verifying signature.