संपादित करें

इसके माध्यम से साझा किया गया


ECDiffieHellman.GenerateKey(ECCurve) Method

Definition

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

public:
 virtual void GenerateKey(System::Security::Cryptography::ECCurve curve);
public virtual void GenerateKey (System.Security.Cryptography.ECCurve curve);
abstract member GenerateKey : System.Security.Cryptography.ECCurve -> unit
override this.GenerateKey : System.Security.Cryptography.ECCurve -> unit
Public Overridable Sub GenerateKey (curve As ECCurve)

Parameters

curve
ECCurve

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

Exceptions

curve does not validate.

A derived class must override this method.

Remarks

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

Characteristic-2 curves are not supported on Windows.

Applies to