Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ECDsaCng::HashAlgorithm Property

 

Gets or sets the hash algorithm to use when signing and verifying data.

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

public:
property CngAlgorithm^ HashAlgorithm {
	CngAlgorithm^ get();
	void set(CngAlgorithm^ value);
}

Property Value

Type: System.Security.Cryptography::CngAlgorithm^

An object that specifies the hash algorithm.

Exception Condition
ArgumentNullException

The value is null.

This property accepts the following algorithms: MD5, Sha1, Sha256, Sha384, and Sha512.

Other custom hash algorithms may also be used.

The default algorithm is Sha256.

This property is not used if you are signing or verifying data that is already hashed.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft