ECDsa.VerifyHashCore Method

Definition

Verifies that a digital signature is valid for the provided hash.

protected virtual bool VerifyHashCore (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, System.Security.Cryptography.DSASignatureFormat signatureFormat);

Parameters

hash
ReadOnlySpan<Byte>

The signed hash.

signature
ReadOnlySpan<Byte>

The signature to verify.

signatureFormat
DSASignatureFormat

The encoding format for signature.

Returns

true if the digital signature is valid for the provided data; otherwise, false.

Exceptions

An error occurred in the verification operation.

Applies to

Product Versies
.NET 5, 6, 7, 8, 9