VerifyHash Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Verifies the specified digital signature against a specified hash value.

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

Syntax

'Declaration
Public Function VerifyHash ( _
    hash As Byte(), _
    hashAlgorithm As MechanismType, _
    signature As Byte() _
) As Boolean
public bool VerifyHash(
    byte[] hash,
    MechanismType hashAlgorithm,
    byte[] signature
)
public:
bool VerifyHash(
    array<unsigned char>^ hash, 
    MechanismType hashAlgorithm, 
    array<unsigned char>^ signature
)
member VerifyHash : 
        hash:byte[] * 
        hashAlgorithm:MechanismType * 
        signature:byte[] -> bool 
public function VerifyHash(
    hash : byte[], 
    hashAlgorithm : MechanismType, 
    signature : byte[]
) : boolean

Parameters

  • signature
    Type: array<System. . :: . .Byte> [] () [] []
    The digital signature of the data to be verified against the hash value.

Return Value

Type: System. . :: . .Boolean
true if the signature is valid; otherwise, false.

.NET Framework Security

See Also

Reference

ECDsaCryptoServiceProvider Class

System.Security.Cryptography Namespace