Edit

Share via


SlhDsa.SignPreHashCore Method

Definition

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

protected:
 abstract void SignPreHashCore(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> context, System::String ^ hashAlgorithmOid, Span<System::Byte> destination);
protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination);
abstract member SignPreHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * Span<byte> -> unit
Protected MustOverride Sub SignPreHashCore (hash As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), hashAlgorithmOid As String, destination As Span(Of Byte))

Parameters

hash
ReadOnlySpan<Byte>

The hash to sign.

context
ReadOnlySpan<Byte>

The signature context.

hashAlgorithmOid
String

The OID of the hash algorithm used to create the hash.

destination
Span<Byte>

The buffer to receive the signature, which will always be the exactly correct size for the algorithm.

Exceptions

An error occurred while signing the hash.

Applies to