RSAOpenSsl Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
RSAOpenSsl() |
Inicjuje RSAOpenSsl nowe wystąpienie klasy z losową parą kluczy 2048-bitowych. |
RSAOpenSsl(Int32) |
Inicjuje RSAOpenSsl nowe wystąpienie klasy z losowo wygenerowanym kluczem o określonym rozmiarze. |
RSAOpenSsl(IntPtr) |
Inicjuje RSAOpenSsl nowe wystąpienie klasy z istniejącego klucza OpenSSL reprezentowanego jako |
RSAOpenSsl(RSAParameters) |
Inicjuje RSAOpenSsl nowe wystąpienie klasy przy użyciu określonych parametrów klucza. |
RSAOpenSsl(SafeEvpPKeyHandle) |
Inicjuje RSAOpenSsl nowe wystąpienie klasy z istniejącego klucza OpenSSL reprezentowanego jako |
RSAOpenSsl()
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
Inicjuje RSAOpenSsl nowe wystąpienie klasy z losową parą kluczy 2048-bitowych.
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 ()
- Atrybuty
Uwagi
Ten konstruktor nie generuje natychmiast nowego klucza publicznego/prywatnego. Ten konstruktor ustawia KeySize właściwość na wartość 2048, a gdy potrzebny jest klucz, zostanie wygenerowany przy użyciu wartości właściwości. Jeśli klucz jest ładowany za pośrednictwem ImportParameters metody lub innej metody importowania klucza, rozmiar klucza z tego konstruktora nie ma znaczenia.
Dotyczy
RSAOpenSsl(Int32)
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
Inicjuje RSAOpenSsl nowe wystąpienie klasy z losowo wygenerowanym kluczem o określonym rozmiarze.
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
Rozmiar klucza do wygenerowania w bitach.
- Atrybuty
Wyjątki
keySize
jest nieprawidłowa.
Dotyczy
RSAOpenSsl(IntPtr)
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
Inicjuje RSAOpenSsl nowe wystąpienie klasy z istniejącego klucza OpenSSL reprezentowanego 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
Wartość OpenSSL RSA*
do użycia jako klucz.
- Atrybuty
Wyjątki
handle
nie jest prawidłowym RSA*
elementem .
handle
jest nieprawidłowy
Uwagi
Ważne
Biblioteka OpenSSL obsługuje wiele wersji bibliotek ładowanych w ramach tego samego procesu. Przed wywołaniem tego konstruktora sprawdź, czy wartość wskaźnika pochodzi z tej samej wersji biblioteki OpenSSL, która jest używana przez tę klasę. Aby uzyskać więcej informacji, zobacz OpenSslVersion.
Dotyczy
RSAOpenSsl(RSAParameters)
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
Inicjuje RSAOpenSsl nowe wystąpienie klasy przy użyciu określonych parametrów klucza.
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 klucza.
- Atrybuty
Wyjątki
parameters
nie jest prawidłowym kluczem RSA.
Uwagi
Ten konstruktor jest odpowiednikiem używania konstruktora domyślnego i wywoływania metody ImportParameters.
Dotyczy
RSAOpenSsl(SafeEvpPKeyHandle)
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
- Źródło:
- RSAOpenSsl.cs
Inicjuje RSAOpenSsl nowe wystąpienie klasy z istniejącego klucza OpenSSL reprezentowanego 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
Wartość OpenSSL EVP_PKEY*
, która ma być używana jako klucz, reprezentowana SafeEvpPKeyHandlejako .
- Atrybuty
Wyjątki
pkeyHandle
nie reprezentuje klucza RSA.
pkeyHandle
to null
pkeyHandle
jest nieprawidłowy zgodnie z parametrem IsInvalid.
Uwagi
Ważne
Biblioteka OpenSSL obsługuje wiele wersji bibliotek ładowanych w ramach tego samego procesu. Przed wywołaniem tego konstruktora sprawdź, czy wartość wskaźnika pochodzi z tej samej wersji biblioteki OpenSSL, która jest używana przez tę klasę. Aby uzyskać więcej informacji, zobacz OpenSslVersion.
Dotyczy
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla