Table of Contents

Class BcTlsRsaVerifier

Namespace
Org.BouncyCastle.Tls.Crypto.Impl.BC
Assembly
BouncyCastle.Cryptography.dll

Operator supporting the verification of RSASSA-PKCS1-v1_5 signatures using the BC light-weight API.

public class BcTlsRsaVerifier : BcTlsVerifier, TlsVerifier
Inheritance
BcTlsRsaVerifier
Implements
Inherited Members

Constructors

BcTlsRsaVerifier(BcTlsCrypto, RsaKeyParameters)

public BcTlsRsaVerifier(BcTlsCrypto crypto, RsaKeyParameters publicKey)

Parameters

crypto BcTlsCrypto
publicKey RsaKeyParameters

Methods

VerifyRawSignature(DigitallySigned, byte[])

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

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