AsymmetricKeyAlgorithm.VerifyHash Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9083)
VerifyHash(Byte[], SignatureHashAlgorithm, Byte[])
Verifies the specified signature.
Declaration
public bool VerifyHash(byte[] hash, SignatureHashAlgorithm hashAlgorithm, byte[] signature)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | hash | The hash value of the signed data. |
SignatureHashAlgorithm | hashAlgorithm | A hash algorithm used to create the hash value. |
Byte[] | signature | The signature for the specified hash value. |
Returns
Type | Description |
---|---|
Boolean | True if the signature verifies as valid; otherwise, false. |