共用方式為


ECDsa.VerifyHashCore 方法

定義

驗證數位簽章對提供的雜湊是否有效。

protected:
 virtual bool VerifyHashCore(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual bool VerifyHashCore (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member VerifyHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> bool
override this.VerifyHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> bool
Protected Overridable Function VerifyHashCore (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

例外狀況

驗證作業發生錯誤。

適用於