ECDsa.VerifyDataCore 方法

定義

多載

VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

驗證數位簽章對提供的資料是否有效。

VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

來源:
ECDsa.cs
來源:
ECDsa.cs
來源:
ECDsa.cs

驗證數位簽章對提供的資料是否有效。

protected:
 virtual bool VerifyDataCore(System::IO::Stream ^ data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual bool VerifyDataCore (System.IO.Stream data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member VerifyDataCore : System.IO.Stream * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
override this.VerifyDataCore : System.IO.Stream * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Protected Overridable Function VerifyDataCore (data As Stream, signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean

參數

data
Stream

已簽署的資料。

signature
ReadOnlySpan<Byte>

要驗證的簽章。

hashAlgorithm
HashAlgorithmName

雜湊演算法,用來雜湊處理驗證程序的資料。

signatureFormat
DSASignatureFormat

signature 的編碼格式。

傳回

若數位簽章對提供的資料是有效的,則為 true;否則為 false

例外狀況

雜湊處理或驗證作業發生錯誤。

適用於

VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

來源:
ECDsa.cs
來源:
ECDsa.cs
來源:
ECDsa.cs

驗證數位簽章對提供的資料是否有效。

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

參數

data
ReadOnlySpan<Byte>

已簽署的資料。

signature
ReadOnlySpan<Byte>

要驗證的簽章。

hashAlgorithm
HashAlgorithmName

雜湊演算法,用來雜湊處理驗證程序的資料。

signatureFormat
DSASignatureFormat

signature 的編碼格式。

傳回

若數位簽章對提供的資料是有效的,則為 true;否則為 false

例外狀況

雜湊處理或驗證作業發生錯誤。

適用於