Edit

Share via


CompositeMLDsa.SignDataCore Method

Definition

When overridden in a derived class, computes the signature of the specified data and context, writing it into the provided buffer.

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

Parameters

data
ReadOnlySpan<Byte>

The data to sign.

context
ReadOnlySpan<Byte>

The signature context.

destination
Span<Byte>

The buffer to receive the signature, whose length will be exactly MaxSignatureSizeInBytes.

Returns

The number of bytes written to the destination buffer.

Exceptions

An error occurred while signing the data.

Applies to