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

定义

验证指定数据的 DSA 签名。Verifies the DSA signature for the specified data.

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

参数

rgbHash
Byte[]

rgbSignature 签名的数据。The data signed with rgbSignature.

rgbSignature
Byte[]

要为 rgbData 验证的签名。The signature to be verified for rgbData.

返回

如果 rgbSignature 与使用指定的哈希算法和密钥在 rgbHash 上计算出的签名匹配,则为 true;否则为 falsetrue if rgbSignature matches the signature computed using the specified hash algorithm and key on rgbHash; otherwise, false.

适用于

另请参阅