ECDiffieHellman.Create Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří novou instanci implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).
Přetížení
| Name | Description |
|---|---|
| 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 novou dvojicí veřejných/privátních klíčů vygenerovaných 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) |
Zastaralé.
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();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create();
public static System.Security.Cryptography.ECDiffieHellman Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create () As ECDiffieHellman
Návraty
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 novou dvojicí veřejných/privátních klíčů vygenerovaných přes zadanou křivku.
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);
public static System.Security.Cryptography.ECDiffieHellman Create(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellman
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ého/privátního klíče.
Návraty
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 při předání metodě ECCurve.Validate musí 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);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
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")>]
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (parameters As ECParameters) As ECDiffieHellman
Parametry
- parameters
- ECParameters
Parametry pro algoritmus kryptografie se třemi tečkami (ECC).
Návraty
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 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)
- Zdroj:
- ECDiffieHellman.cs
- Zdroj:
- ECDiffieHellman.cs
- Zdroj:
- ECDiffieHellman.cs
- Zdroj:
- ECDiffieHellman.cs
- Zdroj:
- ECDiffieHellman.cs
Upozornění
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
Vytvoří novou instanci zadané implementace algoritmu Elliptic Curve Diffie-Hellman (ECDH).
public:
static System::Security::Cryptography::ECDiffieHellman ^ Create(System::String ^ algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.ECDiffieHellman? Create(string algorithm);
public static System.Security.Cryptography.ECDiffieHellman? Create(string algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.ECDiffieHellman? Create(string algorithm);
public static System.Security.Cryptography.ECDiffieHellman Create(string algorithm);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.ECDiffieHellman
static member Create : string -> System.Security.Cryptography.ECDiffieHellman
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
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
Nová instance zadané implementace této třídy. Pokud zadaný název algoritmu nenamapuje na implementaci ECDH, vrátí tato metoda null.
- Atributy
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 Frameworku:
"ECDH"
"ECDiffieHellman"
"ECDiffieHellmanCng"
"System.Security.Cryptography.ECDiffieHellmanCng"
Můžete také zadat název vlastní implementace ECDH parametru algorithm . Pokud to uděláte, objekt ho použije k určení, CryptoConfig zda lze vytvořit objekt ECDH.