RSA::VerifyHash Method (array<Byte>^, array<Byte>^, HashAlgorithmName, RSASignaturePadding^)

 

Verifies that a digital signature is valid by determining the hash value in the signature using the specified hash algorithm and padding, and comparing it to the provided hash value.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual bool VerifyHash(
	array<unsigned char>^ hash,
	array<unsigned char>^ signature,
	HashAlgorithmName hashAlgorithm,
	RSASignaturePadding^ padding
)

Parameters

hash
Type: array<System::Byte>^

The hash value of the signed data.

signature
Type: array<System::Byte>^

The signature data to be verified.

hashAlgorithm
Type: System.Security.Cryptography::HashAlgorithmName

The hash algorithm used to create the hash value.

padding
Type: System.Security.Cryptography::RSASignaturePadding^

The padding mode.

Return Value

Type: System::Boolean

true if the signature is valid; otherwise, false.

Exception Condition
NotImplementedException

A derived class must override this method.

.NET Framework
Available since 4.6
Return to top
Show: