ECDsaCng.VerifyHash Method

Definition

Overloads

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Verifies that a digital signature is appropriate for the current key and provided data hash.

VerifyHash(Byte[], Byte[])

Verifies that a digital signature is appropriate for the current key and provided data hash.

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Verifies that a digital signature is appropriate for the current key and provided data hash.

C#
public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature);

Parameters

hash
ReadOnlySpan<Byte>

The hash value of the data to be verified.

signature
ReadOnlySpan<Byte>

The digital signature of the data to be verified against the hash value.

Returns

true if the signature is valid; otherwise, false.

Applies to

.NET 10 ja muud versioonid
Toode Versioonid
.NET 7, 8, 9, 10

VerifyHash(Byte[], Byte[])

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Verifies that a digital signature is appropriate for the current key and provided data hash.

C#
public override bool VerifyHash(byte[] hash, byte[] signature);
C#
[System.Security.SecurityCritical]
public override bool VerifyHash(byte[] hash, byte[] signature);

Parameters

hash
Byte[]

The hash value of the data to be verified.

signature
Byte[]

The digital signature of the data to be verified against the hash value.

Returns

true if the signature is valid; otherwise, false.

Attributes

Exceptions

hash or signature is null.

Applies to

.NET 10 ja muud versioonid
Toode Versioonid
.NET Core 1.0, Core 1.1, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5