DSACng.VerifySignature(Byte[], Byte[]) Method

Definition

Verifies if the specified digital signature matches the specified hash.

public override bool VerifySignature (byte[] rgbHash, byte[] rgbSignature);

Parameters

rgbHash
Byte[]

The signed hash.

rgbSignature
Byte[]

The digital signature to be verified.

Returns

true if rgbSignature matches the signature computed using the specified hash; otherwise, false.

Exceptions

The rgbHash or rgbSignature parameters are null.

Applies to

Vara Útgáfur
.NET 6, 7, 8, 9
.NET Framework 4.6.2, 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5