System.Security.Cryptography.DSA.VerifySignature Method

When overridden in a derived class, verifies the System.Security.Cryptography.DSA signature for the specified data.

Syntax

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

Parameters

rgbHash
The hash of the data signed with rgbSignature.
rgbSignature
The signature to be verified for rgbData.

Returns

true if rgbSignature matches the signature computed using the specified hash algorithm and key on rgbHash; otherwise, false.

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).

Requirements

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