Edit

Share via


MLDsa.VerifyPreHashCore Method

Definition

When overridden in a derived class, verifies the pre-hash signature of the specified hash and context.

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

Parameters

hash
ReadOnlySpan<Byte>

The data to verify.

context
ReadOnlySpan<Byte>

The signature context.

hashAlgorithmOid
String

The OID of the hash algorithm used to create the hash.

signature
ReadOnlySpan<Byte>

The signature to verify.

Returns

true if the signature validates the hash; otherwise, false.

Attributes

Exceptions

An error occurred while verifying the hash.

Applies to