AsymmetricSignatureDeformatter.VerifySignature Method (HashAlgorithm, Byte[])

 

Verifies the signature from the specified hash value.

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

public virtual bool VerifySignature(
	HashAlgorithm hash,
	byte[] rgbSignature
)

Parameters

hash
Type: System.Security.Cryptography.HashAlgorithm

The hash algorithm to use to verify the signature.

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