RSAManaged.VerifyData Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9119)
VerifyData(Byte[], HashAlgorithm, Byte[])
Verifies the specified signature data by comparing it to the signature computed for the specified data.
Declaration
public bool VerifyData(byte[] buffer, HashAlgorithm halg, byte[] signature)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The data that was signed. |
HashAlgorithm | halg | The hash algorithm used to create the hash value of the data. |
Byte[] | signature | The signature data to be verified. |
Returns
Type | Description |
---|---|
Boolean | true if the signature verifies as valid; otherwise, false. |