Table of Contents

Class BcTlsDssVerifier

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

BC light-weight base class for the verifiers supporting the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.

public abstract class BcTlsDssVerifier : BcTlsVerifier, TlsVerifier
Inheritance
BcTlsDssVerifier
Implements
Derived
Inherited Members

Constructors

BcTlsDssVerifier(BcTlsCrypto, AsymmetricKeyParameter)

protected BcTlsDssVerifier(BcTlsCrypto crypto, AsymmetricKeyParameter publicKey)

Parameters

crypto BcTlsCrypto
publicKey AsymmetricKeyParameter

Properties

SignatureAlgorithm

protected abstract short SignatureAlgorithm { get; }

Property Value

short

Methods

CreateDsaImpl()

protected abstract IDsa CreateDsaImpl()

Returns

IDsa

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.