AsymmetricSignatureDeformatter::VerifySignature Method (HashAlgorithm^, array<Byte>^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Verifies the signature from the specified hash value.

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

public:
virtual bool VerifySignature(
	HashAlgorithm^ hash,
	array<unsigned char>^ rgbSignature
)

Parameters

hash
Type: System.Security.Cryptography::HashAlgorithm^

The hash algorithm to use to verify the signature.

rgbSignature
Type: array<System::Byte>^

The signature to be verified.

Return Value

Type: System::Boolean

true if the signature is valid for the hash; otherwise, false.

Exception Condition
ArgumentNullException

The hash parameter is null.

This method sets the hash algorithm to be used before verifying the signature of the input hash algorithm value.

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top
Show: