ECDiffieHellman.Create Méthode

Définition

Crée une nouvelle instance d'une implémentation de l'algorithme ECDH (Elliptic Curve Diffie-Hellman).

Surcharges

Create()

Crée une nouvelle instance de l'implémentation par défaut de l'algorithme ECDH (Elliptic Curve Diffie-Hellman).

Create(ECCurve)

Crée une nouvelle instance de l’implémentation par défaut de l’algorithme Elliptic Curve Diffie-Hellman (ECDH) avec une nouvelle paire de clés publique/privée générée sur la courbe spécifiée.

Create(ECParameters)

Crée une nouvelle instance de l’implémentation par défaut de l’algorithme ECDH (Elliptic Curve Diffie-Hellman) avec la clé décrite par l’objet ECParameters spécifié.

Create(String)

Crée une nouvelle instance de l’implémentation spécifiée de l’algorithme ECHD (Elliptic Curve Diffie-Hellman).

Create()

Crée une nouvelle instance de l'implémentation par défaut de l'algorithme ECDH (Elliptic Curve Diffie-Hellman).

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create();
public static System.Security.Cryptography.ECDiffieHellman Create ();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create ();
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create () As ECDiffieHellman

Retours

ECDiffieHellman

Une nouvelle instance de l'implémentation par défaut de cette classe.

Attributs

S’applique à

Create(ECCurve)

Crée une nouvelle instance de l’implémentation par défaut de l’algorithme Elliptic Curve Diffie-Hellman (ECDH) avec une nouvelle paire de clés publique/privée générée sur la courbe spécifiée.

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create(System::Security::Cryptography::ECCurve curve);
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECCurve curve);
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellman
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (curve As ECCurve) As ECDiffieHellman

Paramètres

curve
ECCurve

La courbe à utiliser pour générer une nouvelle paire de clés publique/privée.

Retours

ECDiffieHellman

Une nouvelle instance de l’implémentation par défaut de l’algorithme Elliptic Curve Diffie-Hellman (ECDH).

Attributs

Exceptions

curve ne valide pas.

Remarques

la courbe doit valider (autrement dit, elle doit retourner true lorsqu’elle est passée à la ECCurve.Validate méthode.

Les courbes caractéristiques-2 ne sont pas prises en charge sur Windows.

Voir aussi

S’applique à

Create(ECParameters)

Crée une nouvelle instance de l’implémentation par défaut de l’algorithme ECDH (Elliptic Curve Diffie-Hellman) avec la clé décrite par l’objet ECParameters spécifié.

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create(System::Security::Cryptography::ECParameters parameters);
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECParameters parameters);
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (parameters As ECParameters) As ECDiffieHellman

Paramètres

parameters
ECParameters

Paramètres de l’algorithme ECC (Elliptic Curve Cryptography).

Retours

ECDiffieHellman

Une nouvelle instance de l’implémentation par défaut de l’algorithme Elliptic Curve Diffie-Hellman (ECDH).

Attributs

Exceptions

parameters ne valide pas.

Remarques

parameters doit valider (autrement dit, il doit retourner true) lorsqu’il est passé à la ECParameters.Validate méthode. Les paramètres sur les courbes implicites ne sont pas pris en charge.

Les courbes caractéristiques-2 ne sont pas prises en charge sur Windows.

Voir aussi

S’applique à

Create(String)

Crée une nouvelle instance de l’implémentation spécifiée de l’algorithme ECHD (Elliptic Curve Diffie-Hellman).

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create(System::String ^ algorithm);
public static System.Security.Cryptography.ECDiffieHellman? Create (string algorithm);
public static System.Security.Cryptography.ECDiffieHellman Create (string algorithm);
static member Create : string -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (algorithm As String) As ECDiffieHellman

Paramètres

algorithm
String

Nom d’une implémentation de l’algorithme ECDH.

Retours

ECDiffieHellman

Nouvelle instance de l'implémentation spécifiée de cette classe. Si le nom de l’algorithme spécifié ne correspond pas à une implémentation ECDH, cette méthode retourne null.

Exceptions

Le paramètre algorithm a la valeur null.

Remarques

Si vous développez votre propre implémentation d’un ECDiffieHellman objet, vous pouvez utiliser la Create(String) surcharge de méthode pour créer une chaîne personnalisée algorithm qui spécifie votre implémentation.

Le algorithm paramètre spécifie le nom d’une implémentation de l’algorithme ECDH. Les chaînes suivantes font tous référence à la même implémentation, qui est la seule implémentation actuellement prise en charge dans le .NET Framework :

  • « ECDH »

  • « ECDiffieHellman »

  • « ECDiffieHellmanCng »

  • « System.Security.Cryptography.ECDiffieHellmanCng »

Vous pouvez également fournir le nom d’une implémentation ECDH personnalisée pour le algorithm paramètre. Si vous le faites, l’objet CryptoConfig l’utilisera pour déterminer si un objet ECDH peut être créé.

S’applique à