DSACryptoServiceProvider.SignData 方法

定義

計算指定資料的雜湊值並進行簽署。

多載

SignData(Byte[])

計算指定位元組陣列的雜湊值 (Hash Value),並簽名產生的雜湊值。

SignData(Stream)

計算指定輸入資料流的雜湊值,並簽名產生的雜湊值。

SignData(Byte[], Int32, Int32)

從指定的起始點到指定的端點簽署位元組陣列。

SignData(Byte[])

來源:
DSACryptoServiceProvider.Unix.cs
來源:
DSACryptoServiceProvider.Unix.cs
來源:
DSACryptoServiceProvider.Unix.cs

計算指定位元組陣列的雜湊值 (Hash Value),並簽名產生的雜湊值。

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ buffer);
public byte[] SignData (byte[] buffer);
override this.SignData : byte[] -> byte[]
member this.SignData : byte[] -> byte[]
Public Function SignData (buffer As Byte()) As Byte()

參數

buffer
Byte[]

用來計算雜湊值的輸入資料。

傳回

Byte[]

指定資料的 DSA 簽章。

備註

這個方法會建立使用 VerifyData 方法驗證的數位簽章。

DSASHA1會使用雜湊演算法。

另請參閱

適用於

SignData(Stream)

來源:
DSACryptoServiceProvider.Unix.cs
來源:
DSACryptoServiceProvider.Unix.cs
來源:
DSACryptoServiceProvider.Unix.cs

計算指定輸入資料流的雜湊值,並簽名產生的雜湊值。

public:
 cli::array <System::Byte> ^ SignData(System::IO::Stream ^ inputStream);
public byte[] SignData (System.IO.Stream inputStream);
override this.SignData : System.IO.Stream -> byte[]
member this.SignData : System.IO.Stream -> byte[]
Public Function SignData (inputStream As Stream) As Byte()

參數

inputStream
Stream

用來計算雜湊值的輸入資料。

傳回

Byte[]

指定資料的 DSA 簽章。

備註

DSASHA1會使用雜湊演算法。

另請參閱

適用於

SignData(Byte[], Int32, Int32)

來源:
DSACryptoServiceProvider.Unix.cs
來源:
DSACryptoServiceProvider.Unix.cs
來源:
DSACryptoServiceProvider.Unix.cs

從指定的起始點到指定的端點簽署位元組陣列。

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ buffer, int offset, int count);
public byte[] SignData (byte[] buffer, int offset, int count);
override this.SignData : byte[] * int * int -> byte[]
member this.SignData : byte[] * int * int -> byte[]
Public Function SignData (buffer As Byte(), offset As Integer, count As Integer) As Byte()

參數

buffer
Byte[]

要簽署的輸入資料。

offset
Int32

陣列中的座標,從此處開始使用資料。

count
Int32

陣列中要用作資料的位元組數目。

傳回

Byte[]

指定資料的 DSA 簽章。

備註

這個方法會建立使用 VerifyData 方法驗證的數位簽章。

DSASHA1會使用雜湊演算法。

另請參閱

適用於