ECDsaCng.VerifyHash 方法

定義

多載

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

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

VerifyHash(Byte[], Byte[])

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

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

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

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

參數

hash
ReadOnlySpan<Byte>

要驗證之資料的雜湊值。

signature
ReadOnlySpan<Byte>

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

傳回

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

適用於

VerifyHash(Byte[], Byte[])

來源:
Cng.NotSupported.cs
來源:
Cng.NotSupported.cs
來源:
Cng.NotSupported.cs

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

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

參數

hash
Byte[]

要驗證之資料的雜湊值。

signature
Byte[]

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

傳回

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

屬性

例外狀況

hashsignaturenull

適用於