MLDsa.SignPreHashCore Método

Definição

Quando sobrescrito numa classe derivada, calcula a assinatura pré-hash do hash especificado e do contexto, escrevendo-os no buffer fornecido.

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>

O haxixe a assinar.

context
ReadOnlySpan<Byte>

O contexto característico.

hashAlgorithmOid
String

O OID do algoritmo de hash usado para criar o hash.

destination
Span<Byte>

O buffer para receber a assinatura, que terá sempre o tamanho exatamente correto para o algoritmo.

Atributos

Exceções

Ocorreu um erro ao assinar o hash.

Aplica-se a