MLDsa.SignPreHashCore Método

Definición

Cuando se invalida en una clase derivada, calcula la firma de hash previo del hash y el contexto especificados, escribiendo en el búfer proporcionado.

protected:
 abstract void SignPreHashCore(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> context, System::String ^ hashAlgorithmOid, Span<System::Byte> destination);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination);
protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member SignPreHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * Span<byte> -> unit
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))

Parámetros

hash
ReadOnlySpan<Byte>

Hash que se va a firmar.

context
ReadOnlySpan<Byte>

Contexto de firma.

hashAlgorithmOid
String

Identificador OID del algoritmo hash usado para crear el hash.

destination
Span<Byte>

El búfer que va a recibir la firma, que siempre será el tamaño correcto exactamente para el algoritmo.

Atributos

Excepciones

Error al firmar el hash.

Se aplica a