Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ECDsa.VerifyHash Method

Verifies a digital signature against the specified hash value.

Namespace:  System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public abstract bool VerifyHash(
	byte[] hash,
	byte[] signature


Type: System.Byte[]

The hash value of a block of data.

Type: System.Byte[]

The digital signature to be verified.

Return Value

Type: System.Boolean
true if the hash value equals the decrypted signature; otherwise, false.

The signature is first decrypted by using the public key, and then compared to the hash value for verification.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft