Mono Class Library: System.Security.Cryptography.DSA Overview | Members

System.Security.Cryptography.DSA.VerifySignature Method

Verify that signature match the hash value using the instance public key. [Edit]

public abstract bool VerifySignature (byte[] rgbHash, byte[] rgbSignature)

Parameters

rgbHash
The SHA1 hash to be verified. [Edit]
rgbSignature
An array of 40 bytes containing the DSA signature of the specified hash. [Edit]

Returns

True if the signature can be verified, false otherwise. [Edit]

Remarks

A System.Security.Cryptography.CryptographicException will be thrown if the parameter rgbHash isn't exactly 20 bytes long (like all SHA1 hashes are) or if the signature length isn't 40 bytes long (as all DSA signatures are). [Edit]

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0