Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ECDsa::VerifyHash Method (array<Byte>^, array<Byte>^)

 

Verifies a digital signature against the specified hash value.

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

public:
virtual bool VerifyHash(
	array<unsigned char>^ hash,
	array<unsigned char>^ signature
) abstract

Parameters

hash
Type: array<System::Byte>^

The hash value of a block of data.

signature
Type: array<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
Available since 3.5
Return to top
Show:
© 2017 Microsoft