VerifyDigestedData Method
VerifyDigestedData(Byte[], Byte[], Boolean)
Verify the signature
using the digestToVerify
.
C#
public bool VerifyDigestedData(byte[] digestToVerify, byte[] signature, bool isStandardSignature = true)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | digestToVerify | The digest of the data to verify. |
System.Byte[] | signature | The signature to verify. |
System.Boolean | isStandardSignature |
|
Returns
System.Boolean
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
.