ECDiffieHellman.Create Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en ny instans av en implementering av ECDH-algoritmen (Elliptic Curve Diffie-Hellman).
Överlagringar
| Name | Description |
|---|---|
| Create() |
Skapar en ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman). |
| Create(ECCurve) |
Skapar en ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman) med ett nytt offentligt/privat nyckelpar som genereras över den angivna kurvan. |
| Create(ECParameters) |
Skapar en ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman) med nyckeln som beskrivs av det angivna ECParameters objektet. |
| Create(String) |
Föråldrad.
Skapar en ny instans av den angivna implementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman). |
Create()
Skapar en ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman).
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
Returer
En ny instans av standardimplementeringen av den här klassen.
- Attribut
Gäller för
Create(ECCurve)
Skapar en ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman) med ett nytt offentligt/privat nyckelpar som genereras över den angivna kurvan.
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
Parametrar
- curve
- ECCurve
Kurvan som ska användas för att generera ett nytt offentligt/privat nyckelpar.
Returer
En ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman).
- Attribut
Undantag
curve verifierar inte.
Kommentarer
kurvan måste verifiera (dvs. den måste returnera true när den skickas ECCurve.Validate till metoden.
Karakteristiska-2-kurvor stöds inte på Windows.
Se även
Gäller för
Create(ECParameters)
Skapar en ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman) med nyckeln som beskrivs av det angivna ECParameters objektet.
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
Parametrar
- parameters
- ECParameters
Parametrarna för ecc-algoritmen (elliptisk kurvkryptografi).
Returer
En ny instans av standardimplementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman).
- Attribut
Undantag
parameters verifierar inte.
Kommentarer
parameters måste verifiera (dvs. måste det returnera true) när det skickas ECParameters.Validate till metoden. Parametrar över implicita kurvor stöds inte.
Karakteristiska-2-kurvor stöds inte på Windows.
Se även
Gäller för
Create(String)
- Källa:
- ECDiffieHellman.cs
- Källa:
- ECDiffieHellman.cs
- Källa:
- ECDiffieHellman.cs
- Källa:
- ECDiffieHellman.cs
- Källa:
- ECDiffieHellman.cs
Varning
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
Skapar en ny instans av den angivna implementeringen av ECDH-algoritmen (Elliptic Curve Diffie-Hellman).
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
Parametrar
- algorithm
- String
Namnet på en implementering av ECDH-algoritmen.
Returer
En ny instans av den angivna implementeringen av den här klassen. Om det angivna algoritmnamnet inte mappas till en ECDH-implementering returnerar nullden här metoden .
- Attribut
Undantag
Parametern algorithm är null.
Kommentarer
Om du utvecklar din egen implementering av ett ECDiffieHellman objekt kan du använda metodöverlagringen Create(String) för att skapa en anpassad algorithm sträng som anger implementeringen.
Parametern algorithm anger namnet på en implementering av ECDH-algoritmen. Följande strängar refererar alla till samma implementering, vilket är den enda implementering som för närvarande stöds i .NET Framework:
"ECDH"
"ECDiffieHellman"
"ECDiffieHellmanCng"
"System.Security.Cryptography.ECDiffieHellmanCng"
Du kan också ange namnet på en anpassad ECDH-implementering för parametern algorithm . Om du gör det CryptoConfig använder objektet det för att avgöra om ett ECDH-objekt kan skapas.