ECDiffieHellmanOpenSsl.GenerateKey(ECCurve) Method

Definition

Generates a new ephemeral public/private key pair for the specified curve.

C#
public override void GenerateKey(System.Security.Cryptography.ECCurve curve);

Parameters

curve
ECCurve

The curve used to generate an ephemeral public/private key pair.

Exceptions

curve does not validate.

Remarks

curve must validate (that is, it must return true when passed to the ECCurve.Validate() method) and must not be implicit.

Applies to

Proizvod Verzije
.NET 6