ECDsaCng.SignHash(Byte[]) 方法

定義

產生指定雜湊值的簽章。

public:
 override cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash);
public override byte[] SignHash (byte[] hash);
[System.Security.SecurityCritical]
public override byte[] SignHash (byte[] hash);
override this.SignHash : byte[] -> byte[]
[<System.Security.SecurityCritical>]
override this.SignHash : byte[] -> byte[]
Public Overrides Function SignHash (hash As Byte()) As Byte()

參數

hash
Byte[]

要簽署之資料的雜湊值。

傳回

Byte[]

指定雜湊值的數位簽章。

屬性

例外狀況

hashnull

與此執行個體相關聯的金鑰資訊沒有私密金鑰。

備註

KeyContainerPermissionFlags.Sign如果物件未隨機產生 ECDsaCng 密碼編譯新一代 (CNG) 金鑰,則需要 旗標。

適用於