Поделиться через


AsymmetricSignatureFormatter.CreateSignature Method (HashAlgorithm)

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

Creates the signature from the specified hash value.

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

Syntax

'Declaration
Public Overridable Function CreateSignature ( _
    hash As HashAlgorithm _
) As Byte()
public virtual byte[] CreateSignature(
    HashAlgorithm hash
)

Parameters

Return Value

Type: array<System.Byte[]
The signature for the specified hash value.

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, then returns 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.