CreateSignature Method (HashAlgorithm)
Collapse the table of content
Expand the table of content

AsymmetricSignatureFormatter.CreateSignature Method (HashAlgorithm)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates the signature from the specified hash value.

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

public virtual byte[] CreateSignature(
	HashAlgorithm hash
)

Parameters

hash
Type: System.Security.Cryptography.HashAlgorithm
The hash algorithm to use to create the signature.

Return Value

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

ExceptionCondition
ArgumentNullException

The hash parameter is null.

This method sets the hash algorithm to be used, then returns the signature of the input hash algorithm value.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft