語言

CompositeMLDsa.SignDataCore 方法

定義

當在派生類別中覆寫時,會計算指定資料與上下文的簽章,並將其寫入所提供的緩衝區。

protected:
 abstract int SignDataCore(ReadOnlySpan<System::Byte> data, ReadOnlySpan<System::Byte> context, Span<System::Byte> destination);
protected abstract int SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination);
abstract member SignDataCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> int
Protected MustOverride Function SignDataCore (data As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer

參數

data
ReadOnlySpan<Byte>

要簽署的數據。

context
ReadOnlySpan<Byte>

標誌性的語境。

destination
Span<Byte>

接收簽名的緩衝區長度正好 MaxSignatureSizeInBytes為 。

傳回

寫入 destination 緩衝區的位元組數。

例外狀況

在簽署資料時發生錯誤。

適用於