ECDiffieHellman.Create Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy nowe wystąpienie implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH).
Przeciążenia
| Nazwa | Opis |
|---|---|
| Create() |
Tworzy nowe wystąpienie domyślnej implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH). |
| Create(ECCurve) |
Tworzy nowe wystąpienie domyślnej implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH) z nową parą kluczy publicznych/prywatnych wygenerowanych na określonej krzywej. |
| Create(ECParameters) |
Tworzy nowe wystąpienie domyślnej implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH) z kluczem opisanym przez określony ECParameters obiekt. |
| Create(String) |
Przestarzałe.
Tworzy nowe wystąpienie określonego wdrożenia algorytmu Elliptic Curve Diffie-Hellman (ECDH). |
Create()
Tworzy nowe wystąpienie domyślnej implementacji algorytmu 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
Zwraca
Nowe wystąpienie domyślnej implementacji tej klasy.
- Atrybuty
Dotyczy
Create(ECCurve)
Tworzy nowe wystąpienie domyślnej implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH) z nową parą kluczy publicznych/prywatnych wygenerowanych na określonej krzywej.
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
Krzywa służąca do generowania nowej pary kluczy publicznych/prywatnych.
Zwraca
Nowe wystąpienie domyślnej implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH).
- Atrybuty
Wyjątki
curve nie sprawdza poprawności.
Uwagi
krzywa musi sprawdzić poprawność (oznacza to, że musi zwracać wartość true po przekazaniu ECCurve.Validate do metody .
Krzywe charakterystyczne 2 nie są obsługiwane na Windows.
Zobacz też
Dotyczy
Create(ECParameters)
Tworzy nowe wystąpienie domyślnej implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH) z kluczem opisanym przez określony ECParameters obiekt.
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 algorytmu kryptograficznego krzywej eliptycznej (ECC).
Zwraca
Nowe wystąpienie domyślnej implementacji algorytmu Elliptic Curve Diffie-Hellman (ECDH).
- Atrybuty
Wyjątki
parameters nie sprawdza poprawności.
Uwagi
parameters musi sprawdzić poprawność (oznacza to, że musi zwrócić truewartość ) po przekazaniu ECParameters.Validate do metody . Parametry na krzywych niejawnych nie są obsługiwane.
Krzywe charakterystyczne 2 nie są obsługiwane na Windows.
Zobacz też
Dotyczy
Create(String)
- Źródło:
- ECDiffieHellman.cs
- Źródło:
- ECDiffieHellman.cs
- Źródło:
- ECDiffieHellman.cs
- Źródło:
- ECDiffieHellman.cs
- Źródło:
- ECDiffieHellman.cs
Uwaga
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
Tworzy nowe wystąpienie określonego wdrożenia algorytmu 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
Nazwa implementacji algorytmu ECDH.
Zwraca
Nowe wystąpienie określonej implementacji tej klasy. Jeśli określona nazwa algorytmu nie jest mapowana na implementację ECDH, ta metoda zwraca wartość null.
- Atrybuty
Wyjątki
Parametr algorithm jest null.
Uwagi
Jeśli tworzysz własną implementację obiektu, możesz użyć ECDiffieHellman przeciążenia metody w celu utworzenia niestandardowego Create(String) ciągu określającego algorithm implementację.
Parametr algorithm określa nazwę implementacji algorytmu ECDH. Wszystkie następujące ciągi odnoszą się do tej samej implementacji, która jest jedyną implementacją obecnie obsługiwaną w programie .NET Framework:
"ECDH"
"ECDiffieHellman"
"ECDiffieHellmanCng"
"System.Security.Cryptography.ECDiffieHellmanCng"
Możesz również podać nazwę niestandardowej implementacji ECDH dla parametru algorithm . Jeśli to zrobisz, obiekt użyje go do określenia, CryptoConfig czy można utworzyć obiekt ECDH.