AsymmetricSignatureDeformatter.VerifySignature Method (HashAlgorithm, array<Byte[])

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Verifies the signature from the specified hash value.

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

Syntax

'Declaration
Public Overridable Function VerifySignature ( _
    hash As HashAlgorithm, _
    rgbSignature As Byte() _
) As Boolean
public virtual bool VerifySignature(
    HashAlgorithm hash,
    byte[] rgbSignature
)

Parameters

  • 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.

Exceptions

Exception Condition
ArgumentNullException

The hash parameter is nulla null reference (Nothing in Visual Basic).

Remarks

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

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.