ECDiffieHellmanOpenSsl Konstruktory

Definice

Přetížení

ECDiffieHellmanOpenSsl()

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy s výchozí křivkou NIST P-521/secp521r1.

ECDiffieHellmanOpenSsl(Int32)

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy, která nastaví výchozí počáteční křivku NIST zadané velikosti.

ECDiffieHellmanOpenSsl(IntPtr)

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako EC_KEY*.

ECDiffieHellmanOpenSsl(ECCurve)

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy a vygeneruje nový klíč na zadané křivce.

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako EVP_PKEY*.

ECDiffieHellmanOpenSsl()

Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy s výchozí křivkou NIST P-521/secp521r1.

public:
 ECDiffieHellmanOpenSsl();
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 Sub New ()
Atributy

Poznámky

Tento konstruktor negeneruje nový veřejný nebo privátní klíč okamžitě, pouze nastaví velikost, která se použije k vygenerování klíče, když je potřeba. Pokud je klíč načten prostřednictvím ImportParameters metody nebo jiné metody importu klíče, nemá velikost klíče z tohoto konstruktoru žádný význam.

Viz také

Platí pro

ECDiffieHellmanOpenSsl(Int32)

Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy, která nastaví výchozí počáteční křivku NIST zadané velikosti.

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")]
public ECDiffieHellmanOpenSsl (int keySize);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (keySize As Integer)

Parametry

keySize
Int32

Velikost klíče, který se má vygenerovat, když je klíč potřeba.

Atributy

Výjimky

Tato keySize implementace tuto hodnotu nepodporuje.

Poznámky

Tento konstruktor podporuje pouze tři velikosti klíčů: 256 (NIST P-256/secp256r1), 384 (NIST P-384/secp384r1) a 521 (NIST P-521/secp521r1). Pokud chcete vygenerovat klíče Pro jakoukoli jinou křivku ECDiffieHellmanOpenSsl(ECCurve) , použijte konstruktor nebo metodu GenerateKey(ECCurve) .

Tento konstruktor negeneruje nový veřejný nebo privátní klíč okamžitě, pouze nastaví velikost, která se použije k vygenerování klíče, když je potřeba. Pokud je klíč načten prostřednictvím ImportParameters metody nebo jiné metody importu klíče, nemá velikost klíče z tohoto konstruktoru žádný význam.

Viz také

Platí pro

ECDiffieHellmanOpenSsl(IntPtr)

Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako EC_KEY*.

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")]
public ECDiffieHellmanOpenSsl (IntPtr handle);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (handle As IntPtr)

Parametry

handle
IntPtr

nativeint

Hodnota OpenSSL EC_KEY* , která se použije jako klíč.

Atributy

Výjimky

handle je Zero.

handle není platný EC_KEY*.

Poznámky

Důležité

OpenSSL podporuje načítání více verzí knihoven v rámci stejného procesu. Před voláním tohoto konstruktoru ověřte, že hodnota ukazatele pochází ze stejné verze OpenSSL, kterou používá tato třída. Další informace naleznete v tématu OpenSslVersion.

Viz také

Platí pro

ECDiffieHellmanOpenSsl(ECCurve)

Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy a vygeneruje nový klíč na zadané křivce.

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")]
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (curve As ECCurve)

Parametry

curve
ECCurve

Křivka použitá k vygenerování dočasného páru veřejného a privátního klíče.

Atributy

Výjimky

curve neověřuje.

Viz také

Platí pro

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs
Zdroj:
ECDiffieHellmanOpenSsl.cs

Inicializuje novou instanci ECDiffieHellmanOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako EVP_PKEY*.

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")]
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

Parametry

pkeyHandle
SafeEvpPKeyHandle

Hodnota OpenSSL EVP_PKEY* , která se má použít jako klíč, reprezentovaná jako SafeEvpPKeyHandle.

Atributy

Výjimky

pkeyHandle představuje neplatný popisovač.

pkeyHandle je null.

pkeyHandle nepředstavuje klíč eliptické křivky (EC).

Poznámky

Důležité

OpenSSL podporuje načítání více verzí knihoven v rámci stejného procesu. Před voláním tohoto konstruktoru ověřte, že hodnota ukazatele pochází ze stejné verze OpenSSL, kterou používá tato třída. Další informace naleznete v tématu OpenSslVersion.

Viz také

Platí pro