Share via


ECDiffieHellmanOpenSsl Konstruktoren

Definition

Überlädt

ECDiffieHellmanOpenSsl()

Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl-Klasse mit einer Standardkurve von NIST P-521/secp521r1.

ECDiffieHellmanOpenSsl(Int32)

Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl-Klasse, die auf die NIST-Primkurve der angegebenen Größe zurückgeht.

ECDiffieHellmanOpenSsl(IntPtr)

Initialisiert eine neue instance der ECDiffieHellmanOpenSsl -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als EC_KEY*dargestellt wird.

ECDiffieHellmanOpenSsl(ECCurve)

Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl-Klasse und generiert einen neuen Schlüssel für die angegebene Kurve.

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Initialisiert eine neue instance der ECDiffieHellmanOpenSsl -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als EVP_PKEY*dargestellt wird.

ECDiffieHellmanOpenSsl()

Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs

Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl-Klasse mit einer Standardkurve von 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 ()
Attribute

Hinweise

Dieser Konstruktor generiert nicht sofort einen neuen öffentlichen/privaten Schlüssel, er legt lediglich die Größe fest, die zum Generieren eines Schlüssels verwendet wird, wenn ein Schlüssel benötigt wird. Wenn der Schlüssel über die ImportParameters -Methode oder eine andere Schlüsselimportmethode geladen wird, hat die Schlüsselgröße aus diesem Konstruktor keine Bedeutung.

Weitere Informationen

Gilt für:

ECDiffieHellmanOpenSsl(Int32)

Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs

Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl-Klasse, die auf die NIST-Primkurve der angegebenen Größe zurückgeht.

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)

Parameter

keySize
Int32

Die Größe des zu generierenden Schlüssels, wenn ein Schlüssel benötigt wird

Attribute

Ausnahmen

Der keySize-Wert wird von dieser Implementierung nicht unterstützt.

Hinweise

Dieser Konstruktor unterstützt nur drei Schlüsselgrößen: 256 (NIST P-256/secp256r1), 384 (NIST P-384/secp384r1) und 521 (NIST P-521/secp521r1). Verwenden Sie zum Generieren von Schlüsseln für eine andere Kurve den ECDiffieHellmanOpenSsl(ECCurve) Konstruktor oder die GenerateKey(ECCurve) -Methode.

Dieser Konstruktor generiert nicht sofort einen neuen öffentlichen/privaten Schlüssel, er legt lediglich die Größe fest, die zum Generieren eines Schlüssels verwendet wird, wenn ein Schlüssel benötigt wird. Wenn der Schlüssel über die ImportParameters -Methode oder eine andere Schlüsselimportmethode geladen wird, hat die Schlüsselgröße aus diesem Konstruktor keine Bedeutung.

Weitere Informationen

Gilt für:

ECDiffieHellmanOpenSsl(IntPtr)

Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs

Initialisiert eine neue instance der ECDiffieHellmanOpenSsl -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als EC_KEY*dargestellt wird.

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)

Parameter

handle
IntPtr

nativeint

Der OpenSSL-Wert EC_KEY* , der als Schlüssel verwendet werden soll.

Attribute

Ausnahmen

handle ist Zero.

handle ist kein gültiger EC_KEY*.

Hinweise

Wichtig

OpenSSL unterstützt mehrere Bibliotheksversionen, die innerhalb desselben Prozesses geladen werden. Vergewissern Sie sich vor dem Aufrufen dieses Konstruktors, dass Ihr Zeigerwert von derselben OpenSSL-Version stammt, die von dieser Klasse verwendet wird. Weitere Informationen finden Sie unter OpenSslVersion.

Weitere Informationen

Gilt für:

ECDiffieHellmanOpenSsl(ECCurve)

Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs

Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl-Klasse und generiert einen neuen Schlüssel für die angegebene Kurve.

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)

Parameter

curve
ECCurve

Die Kurve, die für das Generieren eines kurzlebigen Paars aus privatem und öffentlichem Schlüssel verwendet wird.

Attribute

Ausnahmen

curve führt keine Validierung durch.

Weitere Informationen

Gilt für:

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs
Quelle:
ECDiffieHellmanOpenSsl.cs

Initialisiert eine neue instance der ECDiffieHellmanOpenSsl -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als EVP_PKEY*dargestellt wird.

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)

Parameter

pkeyHandle
SafeEvpPKeyHandle

Der OpenSSL-Wert EVP_PKEY* , der als Schlüssel verwendet werden soll, dargestellt als SafeEvpPKeyHandle.

Attribute

Ausnahmen

pkeyHandle stellt ein ungültiges Handle dar.

pkeyHandle ist null.

pkeyHandle stellt keinen Schlüssel für eine elliptische Kurve (EC) dar.

Hinweise

Wichtig

OpenSSL unterstützt mehrere Bibliotheksversionen, die innerhalb desselben Prozesses geladen werden. Vergewissern Sie sich vor dem Aufrufen dieses Konstruktors, dass Ihr Zeigerwert von derselben OpenSSL-Version stammt, die von dieser Klasse verwendet wird. Weitere Informationen finden Sie unter OpenSslVersion.

Weitere Informationen

Gilt für: