ECDsa.GenerateKey(ECCurve) Method

Definition

When overridden in a derived class, generates a new ephemeral public/private key pair for the specified curve, replacing the current key.

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

Parameters

curve
ECCurve

The curve to use to generate the key.

Exceptions

A derived class must override this method.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.6, 2.0, 2.1