ECDsaOpenSsl Konstruktoren

Definition

Überlädt

ECDsaOpenSsl()

Initialisiert eine neue Instanz der ECDsaOpenSsl-Klasse.

ECDsaOpenSsl(Int32)

Initialisiert eine neue Instanz der ECDsaOpenSsl-Klasse mit einer angegebenen Zielschlüsselgröße.

ECDsaOpenSsl(IntPtr)

Initialisiert einen neuen instance der -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der ECDsaOpenSsl als EC_KEY*dargestellt wird.

ECDsaOpenSsl(ECCurve)

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

ECDsaOpenSsl(SafeEvpPKeyHandle)

Initialisiert einen neuen instance der -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der ECDsaOpenSsl als EVP_PKEY*dargestellt wird.

ECDsaOpenSsl()

Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs

Initialisiert eine neue Instanz der ECDsaOpenSsl-Klasse.

public:
 ECDsaOpenSsl();
public ECDsaOpenSsl ();
[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 ECDsaOpenSsl ();
Public Sub New ()
Attribute

Hinweise

Dieser Konstruktor generiert nicht sofort einen neuen öffentlichen/privaten Schlüsselpair. Dieser Konstruktor legt die KeySize Eigenschaft auf 521 fest, und wenn ein Schlüssel benötigt wird, wird die gespeicherte Größe verwendet, um die Zielkurve zu identifizieren. Wenn ein 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:

ECDsaOpenSsl(Int32)

Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs

Initialisiert eine neue Instanz der ECDsaOpenSsl-Klasse mit einer angegebenen Zielschlüsselgröße.

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

Parameter

keySize
Int32

Die Größe des Schlüssels. Gültige Schlüsselgrößen sind 256, 384 und 521 Bits.

Attribute

Ausnahmen

Die keySize gibt eine ungültige Länge an.

Hinweise

Dieser Konstruktor generiert nicht sofort einen neuen öffentlichen/privaten Schlüsselpair. Dieser Konstruktor legt die KeySize Eigenschaft auf den angegebenen Wert fest, und wenn ein Schlüssel benötigt wird, wird die gespeicherte Größe verwendet, um die Zielkurve zu identifizieren. Wenn ein 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:

ECDsaOpenSsl(IntPtr)

Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs

Initialisiert einen neuen instance der -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der ECDsaOpenSsl als EC_KEY*dargestellt wird.

public:
 ECDsaOpenSsl(IntPtr handle);
public ECDsaOpenSsl (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 ECDsaOpenSsl (IntPtr handle);
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
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. Bevor Sie diesen Konstruktor aufrufen, überprüfen Sie, ob Ihr Zeigerwert von derselben Version von OpenSSL stammt, die von dieser Klasse verwendet wird. Weitere Informationen finden Sie unter OpenSslVersion .

Weitere Informationen

Gilt für:

ECDsaOpenSsl(ECCurve)

Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs

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

public:
 ECDsaOpenSsl(System::Security::Cryptography::ECCurve curve);
public ECDsaOpenSsl (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 ECDsaOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
[<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.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
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.

curve ist null.

Weitere Informationen

Gilt für:

ECDsaOpenSsl(SafeEvpPKeyHandle)

Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs
Quelle:
ECDsaOpenSsl.cs

Initialisiert einen neuen instance der -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der ECDsaOpenSsl als EVP_PKEY*dargestellt wird.

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

Parameter

pkeyHandle
SafeEvpPKeyHandle

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

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 Version von OpenSSL stammt, die von dieser Klasse verwendet wird. Weitere Informationen finden Sie unter OpenSslVersion.

Weitere Informationen

Gilt für: