ECDsa.VerifyHash 方法

定義

多載

VerifyHash(Byte[], Byte[], DSASignatureFormat)

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

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

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

VerifyHash(Byte[], Byte[])

確認數位簽章適用於目前金鑰和提供的資料雜湊。

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

確認數位簽章適用於目前金鑰和提供的資料雜湊。

VerifyHash(Byte[], Byte[], DSASignatureFormat)

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

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

public:
 bool VerifyHash(cli::array <System::Byte> ^ hash, cli::array <System::Byte> ^ signature, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyHash (byte[] hash, byte[] signature, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyHash : byte[] * byte[] * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyHash (hash As Byte(), signature As Byte(), signatureFormat As DSASignatureFormat) As Boolean

參數

hash
Byte[]

已簽署的雜湊。

signature
Byte[]

要驗證的簽章。

signatureFormat
DSASignatureFormat

signature 的編碼格式。

傳回

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

例外狀況

hashsignaturenull

signatureFormat 不是已知的格式。

驗證作業中發生錯誤。

適用於

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

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

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

public:
 bool VerifyHash(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyHash (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyHash (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

例外狀況

signatureFormat 不是已知的格式。

驗證作業中發生錯誤。

適用於

VerifyHash(Byte[], Byte[])

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

確認數位簽章適用於目前金鑰和提供的資料雜湊。

public:
 abstract bool VerifyHash(cli::array <System::Byte> ^ hash, cli::array <System::Byte> ^ signature);
public abstract bool VerifyHash (byte[] hash, byte[] signature);
abstract member VerifyHash : byte[] * byte[] -> bool
Public MustOverride Function VerifyHash (hash As Byte(), signature As Byte()) As Boolean

參數

hash
Byte[]

要驗證之資料的雜湊值。

signature
Byte[]

要根據雜湊值驗證之資料的數位簽章。

傳回

如果簽章有效則為 true,否則為 false

例外狀況

hashsignaturenull

適用於

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

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

確認數位簽章適用於目前金鑰和提供的資料雜湊。

public:
 virtual bool VerifyHash(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature);
public virtual bool VerifyHash (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature);
abstract member VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool
override this.VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool
Public Overridable Function VerifyHash (hash As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte)) As Boolean

參數

hash
ReadOnlySpan<Byte>

要驗證之資料的雜湊值。

signature
ReadOnlySpan<Byte>

要根據雜湊值驗證之資料的數位簽章。

傳回

如果簽章有效則為 true,否則為 false

適用於