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 data that was signed.
- 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.