AsymmetricSignatureDeformatter.VerifySignature Method (HashAlgorithm, Byte())


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

Verifies the signature from the specified hash value.

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

Public Overridable Function VerifySignature (
	hash As HashAlgorithm,
	rgbSignature As Byte()
) As Boolean


Type: System.Security.Cryptography.HashAlgorithm

The hash algorithm to use to verify the signature.

Type: 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

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