RSAOpenSsl Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
RSAOpenSsl() |
Inicializuje novou instanci RSAOpenSsl třídy náhodným párem 2048bitových klíčů. |
RSAOpenSsl(Int32) |
Inicializuje novou instanci RSAOpenSsl třídy s náhodně vygenerovaným klíčem zadané velikosti. |
RSAOpenSsl(IntPtr) |
Inicializuje novou instanci RSAOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako |
RSAOpenSsl(RSAParameters) |
Inicializuje novou instanci třídy pomocí zadaných RSAOpenSsl parametrů klíče. |
RSAOpenSsl(SafeEvpPKeyHandle) |
Inicializuje novou instanci RSAOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako |
RSAOpenSsl()
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
Inicializuje novou instanci RSAOpenSsl třídy náhodným párem 2048bitových klíčů.
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 ()
- Atributy
Poznámky
Tento konstruktor okamžitě negeneruje nový veřejný nebo privátní klíč. Tento konstruktor nastaví KeySize vlastnost na 2048 a v případě potřeby klíče se vygeneruje pomocí hodnoty vlastnosti . 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.
Platí pro
RSAOpenSsl(Int32)
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
Inicializuje novou instanci RSAOpenSsl třídy s náhodně vygenerovaným klíčem zadané velikosti.
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)
Parametry
- keySize
- Int32
Velikost klíče, který se má vygenerovat v bitech.
- Atributy
Výjimky
keySize
není platný.
Platí pro
RSAOpenSsl(IntPtr)
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
Inicializuje novou instanci RSAOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako RSA*
.
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)
Parametry
- handle
-
IntPtr
nativeint
Hodnota OpenSSL RSA*
, která se použije jako klíč.
- Atributy
Výjimky
handle
není platný RSA*
.
handle
je neplatné.
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.
Platí pro
RSAOpenSsl(RSAParameters)
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
Inicializuje novou instanci třídy pomocí zadaných RSAOpenSsl parametrů klíče.
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)
Parametry
- parameters
- RSAParameters
Parametry klíče.
- Atributy
Výjimky
parameters
není platný klíč RSA.
Poznámky
Tento konstruktor je ekvivalentní použití výchozího konstruktoru a volání ImportParameters.
Platí pro
RSAOpenSsl(SafeEvpPKeyHandle)
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
- Zdroj:
- RSAOpenSsl.cs
Inicializuje novou instanci RSAOpenSsl třídy z existujícího klíče OpenSSL reprezentované jako EVP_PKEY*
.
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)
Parametry
- pkeyHandle
- SafeEvpPKeyHandle
Hodnota OpenSSL EVP_PKEY*
, která se má použít jako klíč, reprezentovaná jako SafeEvpPKeyHandle.
- Atributy
Výjimky
pkeyHandle
nepředstavuje klíč RSA.
pkeyHandle
je null
pkeyHandle
je neplatný podle IsInvalid.
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.
Platí pro
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro