DSACryptoServiceProvider.VerifyData(Byte[], Byte[]) 方法

定义

通过将指定的签名数据与为指定数据计算的签名进行比较来验证指定的签名数据。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);
member this.VerifyData : byte[] * byte[] -> bool
Public Function VerifyData (rgbData As Byte(), rgbSignature As Byte()) As Boolean

参数

rgbData
Byte[]

已签名的数据。The data that was signed.

rgbSignature
Byte[]

要验证的签名数据。The signature data to be verified.

返回

如果签名验证为有效,则为 true;否则,为 falsetrue if the signature verifies as valid; otherwise, false.

注解

此方法验证DSA SignData生成的数字签名。This method verifies the DSA digital signature produced by SignData.

DSASHA1使用哈希算法。DSA uses the SHA1 hash algorithm.

适用于

另请参阅