X509SignatureGenerator.SignData(Byte[], HashAlgorithmName) 方法

定義

當在衍生類別中覆寫時,使用指定的雜湊演算法產生所指定資料簽章,並正確編碼 X.509 簽章值的結果。

public:
 abstract cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public abstract byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public MustOverride Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName) As Byte()

參數

data
Byte[]

要產生簽章的輸入資料。

hashAlgorithm
HashAlgorithmName

要用來產生簽章的雜湊演算法。

傳回

Byte[]

指定資料的 X.509 簽章。

適用於