AsymmetricSignatureFormatter.CreateSignature Method (HashAlgorithm)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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


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

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