Επεξεργασία

Κοινή χρήση μέσω


DSACryptoServiceProvider.VerifyData(Byte[], Byte[]) Method

Definition

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

public:
 bool VerifyData(cli::array <System::Byte> ^ rgbData, cli::array <System::Byte> ^ rgbSignature);
public bool VerifyData (byte[] rgbData, byte[] rgbSignature);
override this.VerifyData : byte[] * byte[] -> bool
member this.VerifyData : byte[] * byte[] -> bool
Public Function VerifyData (rgbData As Byte(), rgbSignature As Byte()) As Boolean

Parameters

rgbData
Byte[]

The data that was signed.

rgbSignature
Byte[]

The signature data to be verified.

Returns

true if the signature verifies as valid; otherwise, false.

Remarks

This method verifies the DSA digital signature produced by SignData.

DSA uses the SHA1 hash algorithm.

Applies to

See also