Sdílet prostřednictvím


ECDiffieHellman.Create Metoda

Definice

Vytvoří novou instanci implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).

Přetížení

Create()

Vytvoří novou instanci výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).

Create(ECCurve)

Vytvoří novou instanci výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH) s novým párem veřejného/privátního klíče vygenerovaného přes zadanou křivku.

Create(ECParameters)

Vytvoří novou instanci výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH) s klíčem popsaným zadaným ECParameters objektem.

Create(String)

Vytvoří novou instanci zadané implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).

Create()

Vytvoří novou instanci výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).

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

Návraty

ECDiffieHellman

Nová instance výchozí implementace této třídy.

Atributy

Platí pro

Create(ECCurve)

Vytvoří novou instanci výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH) s novým párem veřejného/privátního klíče vygenerovaného přes zadanou křivku.

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

Parametry

curve
ECCurve

Křivka, která se má použít k vygenerování nového páru veřejných/privátních klíčů.

Návraty

ECDiffieHellman

Nová instance výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).

Atributy

Výjimky

curve neověřuje.

Poznámky

křivka musí ověřit (to znamená, že musí při předání metodě ECCurve.Validate vrátit hodnotu true.

Křivky charakteristické-2 nejsou na Windows podporovány.

Viz také

Platí pro

Create(ECParameters)

Vytvoří novou instanci výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH) s klíčem popsaným zadaným ECParameters objektem.

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

Parametry

parameters
ECParameters

Parametry algoritmu ecc (elliptic curve cryptography).

Návraty

ECDiffieHellman

Nová instance výchozí implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).

Atributy

Výjimky

parameters neověřuje.

Poznámky

parameters musí ověřit (to znamená, že se musí vrátit true) při předání metodě ECParameters.Validate . Parametry nad implicitními křivkami nejsou podporovány.

Křivky charakteristické-2 nejsou na Windows podporovány.

Viz také

Platí pro

Create(String)

Vytvoří novou instanci zadané implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).

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

Parametry

algorithm
String

Název implementace algoritmu ECDH.

Návraty

ECDiffieHellman

Nová instance zadané implementace této třídy. Pokud zadaný název algoritmu nenamapuje na implementaci ECDH, tato metoda vrátí null.

Výjimky

Parametr algorithm je null.

Poznámky

Pokud vyvíjíte vlastní implementaci objektu ECDiffieHellman , můžete pomocí Create(String) přetížení metody vytvořit vlastní algorithm řetězec, který určuje vaši implementaci.

Parametr algorithm určuje název implementace algoritmu ECDH. Všechny následující řetězce odkazují na stejnou implementaci, což je jediná implementace aktuálně podporovaná v .NET Framework:

  • "ECDH"

  • "ECDiffieHellman"

  • "ECDiffieHellmanCng"

  • "System.Security.Cryptography.ECDiffieHellmanCng"

Můžete také zadat název vlastní implementace ECDH pro algorithm parametr. Pokud to uděláte, objekt ho použije k určení, CryptoConfig zda lze vytvořit objekt ECDH.

Platí pro