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 Constructor (ECCurve)

 

Initializes a new instance of the ECDsaCng class whose public/private key pair is generated over the specified curve.

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

public:
ECDsaCng(
	ECCurve curve
)

Parameters

curve
Type: System.Security.Cryptography::ECCurve

The curve used to generate the public/private key pair.

Exception Condition
CryptographicException

curve does not validate.

curve must validate (that is, it must return true) when passed to the ECCurve::Validate method and must be either a named or explicit prime.

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