ECDsa.SignHash 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SignHash(Byte[]) |
產生指定雜湊值的數位簽章。 |
SignHash(Byte[], DSASignatureFormat) |
以指定的格式計算指定雜湊值的 ECDSA 簽章。 |
SignHash(Byte[])
產生指定雜湊值的數位簽章。
public:
abstract cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash);
public abstract byte[] SignHash (byte[] hash);
abstract member SignHash : byte[] -> byte[]
Public MustOverride Function SignHash (hash As Byte()) As Byte()
參數
- hash
- Byte[]
要簽署之資料的雜湊值。
傳回
- Byte[]
指定雜湊值的數位簽章。
例外狀況
hash
參數為 null
。
適用於
SignHash(Byte[], DSASignatureFormat)
以指定的格式計算指定雜湊值的 ECDSA 簽章。
public:
cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignHash (byte[] hash, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignHash : byte[] * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignHash (hash As Byte(), signatureFormat As DSASignatureFormat) As Byte()
參數
- hash
- Byte[]
要簽署的雜湊值。
- signatureFormat
- DSASignatureFormat
要用於簽章的編碼格式。
傳回
- Byte[]
指定資料的 ECDSA 簽章。
例外狀況
hash
為 null
。
signatureFormat
不是已知的格式。
簽署作業中發生錯誤。