ECDiffieHellmanCng.GenerateKey(ECCurve) Método

Definición

Genera un nuevo par de claves pública-privada efímeras para la curva especificada.Generates a new ephemeral public/private key pair for the specified curve.

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

Parámetros

curve
ECCurve

La curva usada para generar un par de claves pública-privada efímeras.The curve used to generate an ephemeral public/private key pair.

Excepciones

curve no se valida.curve does not validate.

Comentarios

curve debe validar (es decir, debe devolver true cuando se pasa al ECCurve.Validate método) y no debe ser implícito.curve must validate (that is, it must return true when passed to the ECCurve.Validate method) and must not be implicit.

Las curvas característicos-2 no se admiten en Windows.Characteristic-2 curves are not supported on Windows.

Se aplica a