DSACryptoServiceProvider.SignHash(Byte[], String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過私鑰加密指定雜湊值的簽名。
public:
cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ rgbHash, System::String ^ str);
public byte[] SignHash(byte[] rgbHash, string? str);
public byte[] SignHash(byte[] rgbHash, string str);
member this.SignHash : byte[] * string -> byte[]
Public Function SignHash (rgbHash As Byte(), str As String) As Byte()
參數
- rgbHash
- Byte[]
要簽名的資料的雜湊值。
- str
- String
用來產生資料雜湊值的雜湊演算法名稱。
傳回
Byte[]
指定 DSA 雜湊值的簽名。
例外狀況
參數 rgbHash 為 null。
備註
此方法建立數位簽章,並透過該 VerifyHash 方法進行驗證。