語言

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[]

指定雜湊值的數位簽章。

屬性

例外狀況

hash 是 null。

與實例相關的金鑰資訊沒有私鑰。

備註

如果密碼學下一代(CNG)金鑰不是由KeyContainerPermissionFlags.Sign物件隨機產生,則必須啟用ECDsaCng這個旗標。

適用於