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

System.Security.Cryptography.DSASignatureDeformatter.VerifySignature Method

Verify the signature for the specified hash value using the DSA public key. [Edit]

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

Parameters

rgbHash
The hash to be signed. [Edit]
rgbSignature
The signature to be verified. [Edit]

Returns

True if the signature match the specified hash (with the DSA public key), false otherwise. [Edit]

Remarks

A System.Security.Cryptography.CryptographicUnexpectedOperationException will be thrown if a System.Security.Cryptography.DSA object instance hasn't been set in the constructor or by DSASignatureFormatter.SetKey.

The hash byte array should always have 20 bytes as only the SHA-1 algorithm is supported.

The size of the signature, 40 bytes, isn't affected by the length of the public key (512 - 1024 bits).

[Edit]

Requirements

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