RSAOpenSsl Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
RSAOpenSsl() |
Menginisialisasi instans RSAOpenSsl baru kelas dengan pasangan kunci acak 2048-bit. |
RSAOpenSsl(Int32) |
Menginisialisasi instans RSAOpenSsl baru kelas dengan kunci yang dihasilkan secara acak dari ukuran yang ditentukan. |
RSAOpenSsl(IntPtr) |
Menginisialisasi instans RSAOpenSsl baru kelas dari kunci OpenSSL yang ada yang direpresentasikan sebagai |
RSAOpenSsl(RSAParameters) |
Menginisialisasi instans RSAOpenSsl baru kelas menggunakan parameter kunci yang ditentukan. |
RSAOpenSsl(SafeEvpPKeyHandle) |
Menginisialisasi instans RSAOpenSsl baru kelas dari kunci OpenSSL yang ada yang direpresentasikan sebagai |
RSAOpenSsl()
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
Menginisialisasi instans RSAOpenSsl baru kelas dengan pasangan kunci acak 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 ()
- Atribut
Keterangan
Konstruktor ini tidak segera menghasilkan keypair publik/privat baru. Konstruktor ini mengatur KeySize properti ke 2048 dan ketika kunci diperlukan, kunci dibuat menggunakan nilai properti . Jika kunci dimuat melalui ImportParameters metode , atau metode impor kunci lainnya, ukuran kunci dari konstruktor ini tidak memiliki arti.
Berlaku untuk
RSAOpenSsl(Int32)
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
Menginisialisasi instans RSAOpenSsl baru kelas dengan kunci yang dihasilkan secara acak dari ukuran yang ditentukan.
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
Ukuran kunci yang dihasilkan dalam bit.
- Atribut
Pengecualian
keySize
tidak valid.
Berlaku untuk
RSAOpenSsl(IntPtr)
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
Menginisialisasi instans RSAOpenSsl baru kelas dari kunci OpenSSL yang ada yang direpresentasikan sebagai 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)
Parameter
- handle
-
IntPtr
nativeint
Nilai OpenSSL RSA*
untuk digunakan sebagai kunci.
- Atribut
Pengecualian
handle
tidak valid RSA*
.
handle
tidak valid
Keterangan
Penting
OpenSSL mendukung beberapa versi pustaka yang dimuat dalam proses yang sama. Sebelum memanggil konstruktor ini, verifikasi nilai pointer Anda berasal dari versi OpenSSL yang sama dengan yang digunakan kelas ini. Untuk informasi selengkapnya, lihat OpenSslVersion.
Berlaku untuk
RSAOpenSsl(RSAParameters)
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
Menginisialisasi instans RSAOpenSsl baru kelas menggunakan parameter kunci yang ditentukan.
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
Parameter untuk kunci.
- Atribut
Pengecualian
parameters
bukan kunci RSA yang valid.
Keterangan
Konstruktor ini setara dengan menggunakan konstruktor default dan panggilan ImportParameters.
Berlaku untuk
RSAOpenSsl(SafeEvpPKeyHandle)
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
- Sumber:
- RSAOpenSsl.cs
Menginisialisasi instans RSAOpenSsl baru kelas dari kunci OpenSSL yang ada yang direpresentasikan sebagai 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)
Parameter
- pkeyHandle
- SafeEvpPKeyHandle
Nilai OpenSSL EVP_PKEY*
untuk digunakan sebagai kunci, dinyatakan sebagai SafeEvpPKeyHandle.
- Atribut
Pengecualian
pkeyHandle
tidak mewakili kunci RSA.
pkeyHandle
is null
pkeyHandle
tidak valid menurut IsInvalid.
Keterangan
Penting
OpenSSL mendukung beberapa versi pustaka yang dimuat dalam proses yang sama. Sebelum memanggil konstruktor ini, verifikasi nilai pointer Anda berasal dari versi OpenSSL yang sama dengan yang digunakan kelas ini. Untuk informasi selengkapnya, lihat OpenSslVersion.
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk