ECDsa.VerifyHash Method (Byte[], Byte[])

 

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
)

Parameters

hash
Type: System.Byte[]

The hash value of a block of data.

signature
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
Available since 3.5
Return to top
Show: