Share via


VerifyHash Method

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

Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the provided hash value.

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

Syntax

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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

RSACryptoServiceProvider Class

System.Security.Cryptography Namespace