Export (0) Print
Expand All

DSACryptoServiceProvider.VerifyData Method

Verifies the specified signature data by comparing it to the signature computed for the specified data.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public bool VerifyData(
	byte[] rgbData,
	byte[] rgbSignature
)

Parameters

rgbData
Type: System.Byte[]

The data that was signed.

rgbSignature
Type: System.Byte[]

The signature data to be verified.

Return Value

Type: System.Boolean
true if the signature verifies as valid; otherwise, false.

This method verifies the DSA digital signature produced by SignData.

DSA uses the SHA1 hash algorithm.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft