ECDiffieHellmanOpenSsl.ImportParameters(ECParameters) Method

Definition

Imports the specified parameters for an ECCurve object as a key into the current instance.

C#
public override void ImportParameters(System.Security.Cryptography.ECParameters parameters);

Parameters

parameters
ECParameters

The curve's parameters to import.

Exceptions

parameters does not validate.

parameters references a curve that cannot be imported.

parameters references a curve that is not supported by this platform.

Remarks

The ImportParameters method replaces the existing key that this object is working with by creating a new CngKey object. If parameters contains only the Q field, then only a public key is imported. If parameters also contains D, then a full key pair is be imported. The parameter Curve value specifies the type of the curve to import.

Applies to

Product Versions
.NET 6, 7, 8, 9, 10