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

AsymmetricSignatureFormatter.CreateSignature Method (HashAlgorithm)


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
© 2016 Microsoft