ECDiffieHellmanOpenSsl 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.
Menginisialisasi instans baru dari kelas ECDiffieHellmanOpenSsl.
Overload
| Nama | Deskripsi |
|---|---|
| ECDiffieHellmanOpenSsl() |
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dengan kurva default NIST P-521/secp521r1. |
| ECDiffieHellmanOpenSsl(Int32) |
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas yang default ke kurva utama NIST dari ukuran yang ditentukan. |
| ECDiffieHellmanOpenSsl(IntPtr) |
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai |
| ECDiffieHellmanOpenSsl(ECCurve) |
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dan menghasilkan kunci baru pada kurva yang ditentukan. |
| ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle) |
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai |
ECDiffieHellmanOpenSsl()
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dengan kurva default NIST P-521/secp521r1.
public:
ECDiffieHellmanOpenSsl();
[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 ECDiffieHellmanOpenSsl();
public ECDiffieHellmanOpenSsl();
Public Sub New ()
- Atribut
Keterangan
Konstruktor ini tidak segera menghasilkan keypair publik/privat baru, konstruktor ini hanya mengatur ukuran yang akan digunakan untuk menghasilkan kunci ketika diperlukan. Jika kunci dimuat melalui ImportParameters metode , atau metode impor kunci lainnya, ukuran kunci dari konstruktor ini tidak memiliki arti.
Lihat juga
Berlaku untuk
ECDiffieHellmanOpenSsl(Int32)
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas yang default ke kurva utama NIST dari ukuran yang ditentukan.
public:
ECDiffieHellmanOpenSsl(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 ECDiffieHellmanOpenSsl(int keySize);
public ECDiffieHellmanOpenSsl(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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (keySize As Integer)
Parameter
- keySize
- Int32
Ukuran kunci yang akan dihasilkan, saat kunci diperlukan.
- Atribut
Pengecualian
Nilai keySize tidak didukung oleh implementasi ini.
Keterangan
Hanya tiga ukuran kunci yang didukung oleh konstruktor ini: 256 (NIST P-256/secp256r1), 384 (NIST P-384/secp384r1), dan 521 (NIST P-521/secp521r1). Untuk menghasilkan kunci Untuk kurva lain, gunakan ECDiffieHellmanOpenSsl(ECCurve) konstruktor atau GenerateKey(ECCurve) metode .
Konstruktor ini tidak segera menghasilkan keypair publik/privat baru, konstruktor ini hanya mengatur ukuran yang akan digunakan untuk menghasilkan kunci ketika diperlukan. Jika kunci dimuat melalui ImportParameters metode , atau metode impor kunci lainnya, ukuran kunci dari konstruktor ini tidak memiliki arti.
Lihat juga
Berlaku untuk
ECDiffieHellmanOpenSsl(IntPtr)
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai EC_KEY*.
public:
ECDiffieHellmanOpenSsl(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 ECDiffieHellmanOpenSsl(IntPtr handle);
public ECDiffieHellmanOpenSsl(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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (handle As IntPtr)
Parameter
- handle
-
IntPtr
nativeint
Nilai OpenSSL EC_KEY* untuk digunakan sebagai kunci.
- Atribut
Pengecualian
handle adalah Zero.
handle bukan EC_KEY*yang valid.
Keterangan
Important
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 .
Lihat juga
Berlaku untuk
ECDiffieHellmanOpenSsl(ECCurve)
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dan menghasilkan kunci baru pada kurva yang ditentukan.
public:
ECDiffieHellmanOpenSsl(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 ECDiffieHellmanOpenSsl(System.Security.Cryptography.ECCurve curve);
public ECDiffieHellmanOpenSsl(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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (curve As ECCurve)
Parameter
- curve
- ECCurve
Kurva yang digunakan untuk menghasilkan pasangan kunci publik/privat ephemeral.
- Atribut
Pengecualian
curve tidak memvalidasi.
Lihat juga
Berlaku untuk
ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
- Sumber:
- ECDiffieHellmanOpenSsl.cs
Menginisialisasi instans ECDiffieHellmanOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai EVP_PKEY*.
public:
ECDiffieHellmanOpenSsl(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 ECDiffieHellmanOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
public ECDiffieHellmanOpenSsl(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")>]
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)
Parameter
- pkeyHandle
- SafeEvpPKeyHandle
Nilai OpenSSL EVP_PKEY* untuk digunakan sebagai kunci, diwakili sebagai SafeEvpPKeyHandle.
- Atribut
Pengecualian
pkeyHandle mewakili handel yang tidak valid.
pkeyHandle adalah null.
pkeyHandle tidak mewakili kunci kurva elips (EC).
Keterangan
Important
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 .