MLDsa.SignPreHashCore Método

Definição

Quando substituído em uma classe derivada, calcula a assinatura pré-hash do hash e do contexto especificados, gravando-a 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 hash a ser assinado.

context
ReadOnlySpan<Byte>

O contexto de assinatura.

hashAlgorithmOid
String

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

destination
Span<Byte>

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

Atributos

Exceções

Erro ao assinar o hash.

Aplica-se a