RSAOpenSsl Konstruktoren

Definition

Überlädt

RSAOpenSsl()

Initialisiert eine neue Instanz der RSAOpenSsl-Klasse mit einem zufälligen Schlüsselpaar mit 2048 Bit.

RSAOpenSsl(Int32)

Initialisiert eine neue Instanz der RSAOpenSsl-Klasse mit einem zufällig erzeugten Schlüssel von angegebener Länge.

RSAOpenSsl(IntPtr)

Initialisiert eine neue Instanz der -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der RSAOpenSsl als RSA*dargestellt wird.

RSAOpenSsl(RSAParameters)

Initialisiert mit den angegebenen Schlüsselparametern eine neue Instanz der RSAOpenSsl-Klasse.

RSAOpenSsl(SafeEvpPKeyHandle)

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

RSAOpenSsl()

Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs

Initialisiert eine neue Instanz der RSAOpenSsl-Klasse mit einem zufälligen Schlüsselpaar mit 2048 Bit.

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

Hinweise

Dieser Konstruktor generiert nicht sofort einen neuen öffentlichen/privaten Schlüsselpair. Dieser Konstruktor legt die KeySize Eigenschaft auf 2048 fest, und wenn ein Schlüssel benötigt wird, wird eine mithilfe des Eigenschaftswerts generiert. 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.

Gilt für:

RSAOpenSsl(Int32)

Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs

Initialisiert eine neue Instanz der RSAOpenSsl-Klasse mit einem zufällig erzeugten Schlüssel von angegebener Länge.

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

Parameter

keySize
Int32

Die Länge des zu verwendenden Schlüssels in Bits.

Attribute

Ausnahmen

keySize ist nicht gültig.

Gilt für:

RSAOpenSsl(IntPtr)

Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs

Initialisiert eine neue Instanz der -Klasse aus einem vorhandenen OpenSSL-Schlüssel, der RSAOpenSsl als RSA*dargestellt wird.

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

Parameter

handle
IntPtr

nativeint

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

Attribute

Ausnahmen

handle ist kein gültiger RSA*.

handle ist ungültig.

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.

Gilt für:

RSAOpenSsl(RSAParameters)

Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs

Initialisiert mit den angegebenen Schlüsselparametern eine neue Instanz der RSAOpenSsl-Klasse.

public:
 RSAOpenSsl(System::Security::Cryptography::RSAParameters parameters);
public RSAOpenSsl (System.Security.Cryptography.RSAParameters parameters);
[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 RSAOpenSsl (System.Security.Cryptography.RSAParameters parameters);
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSAOpenSsl
[<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.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (parameters As RSAParameters)

Parameter

parameters
RSAParameters

Die Parameter für den Schlüssel.

Attribute

Ausnahmen

parameters ist kein gültiger RSA-Schlüssel.

Hinweise

Dieser Konstruktor entspricht der Verwendung des Standardkonstruktors und dem Aufrufen ImportParametersvon .

Gilt für:

RSAOpenSsl(SafeEvpPKeyHandle)

Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs
Quelle:
RSAOpenSsl.cs

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

public:
 RSAOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
public RSAOpenSsl (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 RSAOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
[<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.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
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 keinen RSA-Schlüssel dar.

pkeyHandle ist null.

pkeyHandle ist gemäß IsInvalidungültig.

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.

Gilt für: