ECDiffieHellmanCng Constructeurs

Définition

Initialise une nouvelle instance de la classe ECDiffieHellmanCng.

Surcharges

ECDiffieHellmanCng()

Initialise une nouvelle instance de la classe ECDiffieHellmanCng avec une paire de clés aléatoire.

ECDiffieHellmanCng(Int32)

Initialise une nouvelle instance de la classe ECDiffieHellmanCng avec une paire de clés aléatoire, à l’aide de la taille de clé spécifiée.

ECDiffieHellmanCng(CngKey)

Initialise une nouvelle instance de la classe ECDiffieHellmanCng à l'aide de l'objet CngKey spécifié.

ECDiffieHellmanCng(ECCurve)

Crée une nouvelle instance de la classe ECDiffieHellmanCng dont la paire de clés publique/privée est générée sur la courbe spécifiée.

ECDiffieHellmanCng()

Initialise une nouvelle instance de la classe ECDiffieHellmanCng avec une paire de clés aléatoire.

public:
 ECDiffieHellmanCng();
public ECDiffieHellmanCng ();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng ();
Public Sub New ()
Attributs

Remarques

La paire de clés aléatoires a une longueur de clé publique par défaut de 521 bits.

S’applique à

ECDiffieHellmanCng(Int32)

Initialise une nouvelle instance de la classe ECDiffieHellmanCng avec une paire de clés aléatoire, à l’aide de la taille de clé spécifiée.

public:
 ECDiffieHellmanCng(int keySize);
public ECDiffieHellmanCng (int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (int keySize);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng (int keySize);
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (keySize As Integer)

Paramètres

keySize
Int32

Taille de la clé. Les tailles de clé valides sont 256, 384 et 521 bits.

Attributs

Exceptions

keySize spécifie une longueur non valide.

Les classes CNG (Cryptography Next Generation) ne sont pas prises en charge sur ce système.

Remarques

La paire de clés aléatoires aura la longueur de clé publique définie par le keySize paramètre.

S’applique à

ECDiffieHellmanCng(CngKey)

Initialise une nouvelle instance de la classe ECDiffieHellmanCng à l'aide de l'objet CngKey spécifié.

public:
 ECDiffieHellmanCng(System::Security::Cryptography::CngKey ^ key);
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (key As CngKey)

Paramètres

key
CngKey

Clé utilisée comme entrée pour les opérations de chiffrement effectuées par l’objet actif.

Attributs

Exceptions

key a la valeur null.

key ne spécifie pas un groupe d'algorithmes ECDH (Elliptic Curve Diffie-Hellman).

Les classes CNG (Cryptography Next Generation) ne sont pas prises en charge sur ce système.

S’applique à

ECDiffieHellmanCng(ECCurve)

Crée une nouvelle instance de la classe ECDiffieHellmanCng dont la paire de clés publique/privée est générée sur la courbe spécifiée.

public:
 ECDiffieHellmanCng(System::Security::Cryptography::ECCurve curve);
public ECDiffieHellmanCng (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (curve As ECCurve)

Paramètres

curve
ECCurve

La courbe utilisée pour générer la paire de clés publique/privée.

Attributs

Exceptions

curve ne valide pas.

Remarques

curve doit valider (autrement dit, il doit retourner true) lorsqu’il est passé à la ECCurve.Validate méthode et doit être un premier nommé ou explicite.

S’applique à