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

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

Syntax

Visual Basic
Public Function VerifyData ( _
	buffer As Byte(), _
	halg As HashAlgorithm, _
	signature As Byte() _
) As Boolean
C#
public bool VerifyData(
	byte[] buffer,
	HashAlgorithm halg,
	byte[] signature
)

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
The signed data.
halg
Type: System.Security.Cryptography..::..HashAlgorithm
The hash algorithm used to create the hash value of the data.
signature
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