SignatureDescription.CreateDigest Method ()

 

Creates a HashAlgorithm instance using the DigestAlgorithm property.

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

public virtual HashAlgorithm CreateDigest()

Return Value

Type: System.Security.Cryptography.HashAlgorithm

The newly created HashAlgorithm instance.

The following code example demonstrates how to use the CreateDigest method to create a HashAlgorithm using the digest algorithm of the signature. This code example is part of a larger example provided for the SignatureDescription class.

HashAlgorithm hashAlgorithm = dsaSignature.CreateDigest();

.NET Framework
Available since 1.1
Return to top
Show: