ECDiffieHellman::Create Method (ECCurve)
Creates a new instance of the default implementation of the Elliptic Curve Diffie-Hellman (ECDH) algorithm with a new public/private key-pair generated over the specified curve.
Assembly: System.Core (in System.Core.dll)
Parameters
- curve
-
Type:
System.Security.Cryptography::ECCurve
The curve to use to generate a new public/private key-pair.
Return Value
Type: System.Security.Cryptography::ECDiffieHellman^A new instance of the default implementation of the Elliptic Curve Diffie-Hellman (ECDH) algorithm.
| Exception | Condition |
|---|---|
| CryptographicException | curve does not validate. |
curve must validate (that is, it must return true when passed to the ECCurve::Validate method.
Characteristic-2 curves are not supported on Windows.
Available since 4.7