Langue

MLDsa.SignPreHashCore Méthode

Définition

En cas de substitution dans une classe dérivée, calcule la signature de pré-hachage du hachage et du contexte spécifiés, en l’écrivant dans la mémoire tampon fournie.

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))

Paramètres

hash
ReadOnlySpan<Byte>

Hachage à signer.

context
ReadOnlySpan<Byte>

Contexte de signature.

hashAlgorithmOid
String

OID de l’algorithme de hachage utilisé pour créer le hachage.

destination
Span<Byte>

Mémoire tampon à recevoir la signature, qui sera toujours la taille exactement correcte pour l’algorithme.

Attributs

Exceptions

Une erreur s’est produite lors de la signature du hachage.

S’applique à