Table of Contents

Class BcTlsVerifier

Namespace
Org.BouncyCastle.Tls.Crypto.Impl.BC
Assembly
BouncyCastle.Cryptography.dll
public abstract class BcTlsVerifier : TlsVerifier
Inheritance
BcTlsVerifier
Implements
Derived
Inherited Members

Constructors

BcTlsVerifier(BcTlsCrypto, AsymmetricKeyParameter)

protected BcTlsVerifier(BcTlsCrypto crypto, AsymmetricKeyParameter publicKey)

Parameters

crypto BcTlsCrypto
publicKey AsymmetricKeyParameter

Fields

m_crypto

protected readonly BcTlsCrypto m_crypto

Field Value

BcTlsCrypto

m_publicKey

protected readonly AsymmetricKeyParameter m_publicKey

Field Value

AsymmetricKeyParameter

Methods

GetStreamVerifier(DigitallySigned)

public virtual 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.

public virtual 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.