DSACryptoServiceProvider.SignData 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算指定資料的雜湊值並簽名。
多載
| 名稱 | Description |
|---|---|
| SignData(Byte[]) |
計算指定位元組陣列的雜湊值,並對所得雜湊值進行簽名。 |
| SignData(Stream) |
計算指定輸入串流的雜湊值並對所得雜湊值進行簽名。 |
| SignData(Byte[], Int32, Int32) |
對從指定的起始點到指定終點的位元組陣列進行簽名。 |
SignData(Byte[])
計算指定位元組陣列的雜湊值,並對所得雜湊值進行簽名。
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 方法進行驗證。
另請參閱
適用於
SignData(Stream)
計算指定輸入串流的雜湊值並對所得雜湊值進行簽名。
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 簽章。
備註
另請參閱
適用於
SignData(Byte[], Int32, Int32)
對從指定的起始點到指定終點的位元組陣列進行簽名。
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 方法進行驗證。