MLDsa.VerifyPreHashCore Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
En cas de substitution dans une classe dérivée, vérifie la signature de pré-hachage du hachage et du contexte spécifiés.
protected:
abstract bool VerifyPreHashCore(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> context, System::String ^ hashAlgorithmOid, ReadOnlySpan<System::Byte> signature);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected abstract bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature);
protected abstract bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member VerifyPreHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * ReadOnlySpan<byte> -> bool
abstract member VerifyPreHashCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * string * ReadOnlySpan<byte> -> bool
Protected MustOverride Function VerifyPreHashCore (hash As ReadOnlySpan(Of Byte), context As ReadOnlySpan(Of Byte), hashAlgorithmOid As String, signature As ReadOnlySpan(Of Byte)) As Boolean
Paramètres
- hash
- ReadOnlySpan<Byte>
Données à vérifier.
- context
- ReadOnlySpan<Byte>
Contexte de signature.
- hashAlgorithmOid
- String
OID de l’algorithme de hachage utilisé pour créer le hachage.
- signature
- ReadOnlySpan<Byte>
Signature à vérifier.
Retours
true si la signature valide le hachage ; sinon, false.
- Attributs
Exceptions
Une erreur s’est produite lors de la vérification du hachage.