ECDsaCng.TrySignHash 方法

定義

使用目前金鑰,嘗試將所指定唯讀位元組範圍 (代表資料雜湊) 的 ECDSA 數位簽章計算到提供的目的地。

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 的位元組總數。 這個參數會被視為未初始化。

傳回

如果 destination 不夠長,無法接收此簽章,則為 false

適用於