DSA.VerifySignatureCore 方法

定义

验证数字签名对于所提供的哈希是否有效。

protected:
 virtual bool VerifySignatureCore(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual bool VerifySignatureCore (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member VerifySignatureCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> bool
override this.VerifySignatureCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> bool
Protected Overridable Function VerifySignatureCore (hash As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), signatureFormat As DSASignatureFormat) As Boolean

参数

hash
ReadOnlySpan<Byte>

已签名的哈希。

signature
ReadOnlySpan<Byte>

要验证的签名。

signatureFormat
DSASignatureFormat

signature 的编码格式。

返回

如果数字签名对所提供的数据有效,则为 true;否则为 false

例外

验证时出错。

适用于