AsymmetricSignatureFormatter.CreateSignature Method (HashAlgorithm)

 
System_CAPS_noteNote

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

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.

Exception Condition
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.

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top
Show: