MLDsa.VerifyPreHashCore Método

Definición

Cuando se invalida en una clase derivada, comprueba la firma pre-hash del hash y el contexto especificados.

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

Parámetros

hash
ReadOnlySpan<Byte>

Datos que se van a comprobar.

context
ReadOnlySpan<Byte>

Contexto de firma.

hashAlgorithmOid
String

Identificador OID del algoritmo hash usado para crear el hash.

signature
ReadOnlySpan<Byte>

Firma que se va a comprobar.

Devoluciones

true si la firma valida el hash; de lo contrario, false.

Atributos

Excepciones

Error al comprobar el hash.

Se aplica a