ECDiffieHellmanOpenSsl Konstruktorer

Definition

Överlagringar

Name Description
ECDiffieHellmanOpenSsl()

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen med standardkurvan NIST P-521/secp521r1.

ECDiffieHellmanOpenSsl(Int32)

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen som standard till NIST-huvudkurvan för den angivna storleken.

ECDiffieHellmanOpenSsl(IntPtr)

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EC_KEY*.

ECDiffieHellmanOpenSsl(ECCurve)

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen och genererar en ny nyckel i den angivna kurvan.

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EVP_PKEY*.

ECDiffieHellmanOpenSsl()

Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen med standardkurvan NIST P-521/secp521r1.

public:
 ECDiffieHellmanOpenSsl();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl();
public ECDiffieHellmanOpenSsl();
Public Sub New ()
Attribut

Kommentarer

Den här konstruktorn genererar inte en ny offentlig/privat keypair omedelbart. Den anger bara den storlek som ska användas för att generera en nyckel när en nyckel behövs. Om nyckeln läses in via ImportParameters metoden eller någon annan nyckelimportmetod har nyckelstorleken från konstruktorn ingen betydelse.

Se även

Gäller för

ECDiffieHellmanOpenSsl(Int32)

Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen som standard till NIST-huvudkurvan för den angivna storleken.

public:
 ECDiffieHellmanOpenSsl(int keySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(int keySize);
public ECDiffieHellmanOpenSsl(int keySize);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (keySize As Integer)

Parametrar

keySize
Int32

Storleken på nyckeln som ska genereras när en nyckel behövs.

Attribut

Undantag

Värdet keySize stöds inte av den här implementeringen.

Kommentarer

Endast tre nyckelstorlekar stöds av den här konstruktorn: 256 (NIST P-256/secp256r1), 384 (NIST P-384/secp384r1) och 521 (NIST P-521/secp521r1). Om du vill generera nycklar För andra kurvor använder du ECDiffieHellmanOpenSsl(ECCurve) konstruktorn eller GenerateKey(ECCurve) -metoden.

Den här konstruktorn genererar inte en ny offentlig/privat keypair omedelbart. Den anger bara den storlek som ska användas för att generera en nyckel när en nyckel behövs. Om nyckeln läses in via ImportParameters metoden eller någon annan nyckelimportmetod har nyckelstorleken från konstruktorn ingen betydelse.

Se även

Gäller för

ECDiffieHellmanOpenSsl(IntPtr)

Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EC_KEY*.

public:
 ECDiffieHellmanOpenSsl(IntPtr handle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(IntPtr handle);
public ECDiffieHellmanOpenSsl(IntPtr handle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (handle As IntPtr)

Parametrar

handle
IntPtr

nativeint

OpenSSL-värdet EC_KEY* som ska användas som nyckel.

Attribut

Undantag

handle är Zero.

handle är inte ett giltigt EC_KEY*.

Kommentarer

Important

OpenSSL stöder flera biblioteksversioner som läses in i samma process. Innan du anropar den här konstruktorn kontrollerar du att pekarvärdet kom från samma version av OpenSSL som den här klassen använder. Mer information finns i OpenSslVersion.

Se även

Gäller för

ECDiffieHellmanOpenSsl(ECCurve)

Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen och genererar en ny nyckel i den angivna kurvan.

public:
 ECDiffieHellmanOpenSsl(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.ECCurve curve);
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (curve As ECCurve)

Parametrar

curve
ECCurve

Den kurva som används för att generera ett tillfälliga offentliga/privata nyckelpar.

Attribut

Undantag

curve verifierar inte.

Se även

Gäller för

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs
Källa:
ECDiffieHellmanOpenSsl.cs

Initierar en ny instans av ECDiffieHellmanOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EVP_PKEY*.

public:
 ECDiffieHellmanOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

Parametrar

pkeyHandle
SafeEvpPKeyHandle

OpenSSL-värdet EVP_PKEY* som ska användas som nyckel, representerat som en SafeEvpPKeyHandle.

Attribut

Undantag

pkeyHandle representerar ett ogiltigt handtag.

pkeyHandle är null.

pkeyHandle representerar inte en elliptisk kurva (EC).

Kommentarer

Important

OpenSSL stöder flera biblioteksversioner som läses in i samma process. Innan du anropar den här konstruktorn kontrollerar du att pekarvärdet kom från samma version av OpenSSL som den här klassen använder. Mer information finns i OpenSslVersion.

Se även

Gäller för