ECDiffieHellman::Create Method (ECParameters)
Creates a new instance of the default implementation of the Elliptic Curve Diffie-Hellman (ECDH) algorithm with the key described by the specified ECParameters object.
Assembly: System.Core (in System.Core.dll)
Parameters
- parameters
-
Type:
System.Security.Cryptography::ECParameters
The parameters for the elliptic curve cryptography (ECC) algorithm.
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 | parameters does not validate. |
parameters must validate (that is, it must return true) when passed to the ECParameters::Validate method. Parameters over implicit curves are not supported.
Characteristic-2 curves are not supported on Windows.
Available since 4.7