Table of Contents

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

digitallySigned DigitallySigned

Returns

TlsStreamVerifier

Exceptions

IOException

VerifyRawSignature(DigitallySigned, byte[])

Return true if the passed in signature and hash represent a real signature.

bool VerifyRawSignature(DigitallySigned digitallySigned, byte[] hash)

Parameters

digitallySigned DigitallySigned

the signature object containing the signature to be verified.

hash byte[]

the hash calculated for the signature.

Returns

bool

true if signature verifies, false otherwise.

Exceptions

IOException

in case of an exception verifying signature.