CompositeMLDsa.SignDataCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.