Show / Hide Table of Contents

VerifyDigestedData Method

VerifyDigestedData(byte[], byte[], bool)

Verify the signature using the digestToVerify.

C#
public bool VerifyDigestedData(byte[] digestToVerify, byte[] signature, bool isStandardSignature = true)

Parameters

Type Name Description
byte[] digestToVerify

The digest of the data to verify.

byte[] signature

The signature to verify.

bool isStandardSignature

true if the signature is formatted as the BER encoding (DSASignatureFormat.Rfc3279DerSequence) specified by most standards, or false if the signature is formatted as the concatenation of r and s.

Returns

bool

A boolean, true if the signature verifies, false if it does not.

Remarks

If the signature is the standard BER encoding, then pass true for isStandardSignature. That argument defaults to true so if the signature is formatted in the standard way, you can call this method with that argument missing. If the signature is the concatenation of r and s, pass false for isStandardSignature.

In this article
Back to top Generated by DocFX