Verifies the specified signature data by comparing it to the signature computed for the specified hash value.

Namespace:  Rebex.Security.Cryptography
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Function VerifyHash ( _
	rgbHash As Byte(), _
	algorithm As String, _
	rgbSignature As Byte() _
) As Boolean
C#
public bool VerifyHash(
	byte[] rgbHash,
	string algorithm,
	byte[] rgbSignature
)

Parameters

rgbHash
Type: array<System..::..Byte>[]()[][]
The hash value of the signed data.
algorithm
Type: System..::..String
A hash algorithm used to create the hash value.
rgbSignature
Type: array<System..::..Byte>[]()[][]
The signature data to be verified.

Return Value

true if the signature verifies as valid; otherwise, false.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also