語言

ECDsaCng.TrySignHash 方法

定義

嘗試利用目前金鑰計算指定只讀範圍的數位簽章,代表資料雜湊到指定目的的位元組。

public:
 override bool TrySignHash(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public override bool TrySignHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
override this.TrySignHash : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Overrides Function TrySignHash (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

參數

source
ReadOnlySpan<Byte>
destination
Span<Byte>

接收簽名的緩衝區。

bytesWritten
Int32

當此方法回傳時,包含寫入 destination的總位元組數。 此參數被視為未初始化。

傳回

false 如果 destination 時間不夠長,無法獲得簽名。

適用於