ECDiffieHellmanOpenSsl Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| ECDiffieHellmanOpenSsl() |
Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl Klasse mit einer Standardkurve von NIST P-521/secp521r1. |
| ECDiffieHellmanOpenSsl(Int32) |
Initialisiert eine neue Instanz der Klasse, die ECDiffieHellmanOpenSsl standardmäßig die NIST-Primkurve der angegebenen Größe aufweist. |
| ECDiffieHellmanOpenSsl(IntPtr) |
Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als ein |
| 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 Instanz der ECDiffieHellmanOpenSsl Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als ein |
ECDiffieHellmanOpenSsl()
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- 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();
[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 ()
- Attribute
Hinweise
Dieser Konstruktor generiert sofort keinen neuen öffentlichen/privaten Keypair, er legt nur die Größe fest, die verwendet wird, um einen Schlüssel zu generieren, 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 dieses Konstruktors keine Bedeutung.
Weitere Informationen
Gilt für:
ECDiffieHellmanOpenSsl(Int32)
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
Initialisiert eine neue Instanz der Klasse, die ECDiffieHellmanOpenSsl standardmäßig die NIST-Primkurve der angegebenen Größe aufweist.
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)
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
Von diesem Konstruktor werden nur drei Schlüsselgrößen unterstützt: 256 (NIST P-256/secp256r1), 384 (NIST P-384/secp384r1) und 521 (NIST P-521/secp521r1). Verwenden Sie den ECDiffieHellmanOpenSsl(ECCurve) Konstruktor oder die GenerateKey(ECCurve) Methode, um Schlüssel für eine andere Kurve zu generieren.
Dieser Konstruktor generiert sofort keinen neuen öffentlichen/privaten Keypair, er legt nur die Größe fest, die verwendet wird, um einen Schlüssel zu generieren, 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 dieses Konstruktors keine Bedeutung.
Weitere Informationen
Gilt für:
ECDiffieHellmanOpenSsl(IntPtr)
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als ein 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)
Parameter
- handle
-
IntPtr
nativeint
Der OpenSSL-Wert EC_KEY* , der als Schlüssel verwendet werden soll.
- Attribute
Ausnahmen
handle ist Zero.
handle ist keine gültige EC_KEY*.
Hinweise
Important
OpenSSL unterstützt mehrere Bibliotheksversionen, die innerhalb desselben Prozesses geladen werden. Überprüfen Sie vor dem Aufrufen dieses Konstruktors, ob der Zeigerwert aus derselben Version von OpenSSL 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
- 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);
[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)
Parameter
- curve
- ECCurve
Die Kurve, die zum Generieren eines kurzlebigen öffentlichen/privaten Schlüsselpaars verwendet wird.
- Attribute
Ausnahmen
curve wird nicht überprüft.
Weitere Informationen
Gilt für:
ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
- Quelle:
- ECDiffieHellmanOpenSsl.cs
Initialisiert eine neue Instanz der ECDiffieHellmanOpenSsl Klasse aus einem vorhandenen OpenSSL-Schlüssel, der als ein 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)
Parameter
- pkeyHandle
- SafeEvpPKeyHandle
Der OpenSSL-Wert EVP_PKEY* , der als Schlüssel verwendet werden soll, dargestellt als ein SafeEvpPKeyHandle.
- Attribute
Ausnahmen
pkeyHandle stellt einen ungültigen Handle dar.
pkeyHandle ist null.
pkeyHandle stellt keine elliptische Kurve (EC)-Taste dar.
Hinweise
Important
OpenSSL unterstützt mehrere Bibliotheksversionen, die innerhalb desselben Prozesses geladen werden. Überprüfen Sie vor dem Aufrufen dieses Konstruktors, ob der Zeigerwert aus derselben Version von OpenSSL stammt, die von dieser Klasse verwendet wird. Weitere Informationen finden Sie unter OpenSslVersion.