ECDsaOpenSsl Konstruktor

Definisi

Menginisialisasi instans baru dari kelas ECDsaOpenSsl.

Overload

Nama Deskripsi
ECDsaOpenSsl()

Menginisialisasi instans baru dari kelas ECDsaOpenSsl.

ECDsaOpenSsl(Int32)

Menginisialisasi instans ECDsaOpenSsl baru kelas dengan ukuran kunci target yang ditentukan.

ECDsaOpenSsl(IntPtr)

Menginisialisasi instans ECDsaOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai EC_KEY*.

ECDsaOpenSsl(ECCurve)

Menginisialisasi instans ECDsaOpenSsl baru kelas dan menghasilkan kunci baru pada kurva yang ditentukan.

ECDsaOpenSsl(SafeEvpPKeyHandle)

Menginisialisasi instans ECDsaOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai EVP_PKEY*.

ECDsaOpenSsl()

Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs

Menginisialisasi instans baru dari kelas ECDsaOpenSsl.

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

Keterangan

Konstruktor ini tidak segera menghasilkan keypair publik/privat baru. Konstruktor ini mengatur KeySize properti ke 521 dan ketika kunci diperlukan, ukuran yang disimpan digunakan untuk mengidentifikasi kurva target. Jika kunci dimuat melalui ImportParameters metode atau metode impor kunci lainnya, ukuran kunci dari konstruktor ini tidak memiliki arti.

Lihat juga

Berlaku untuk

ECDsaOpenSsl(Int32)

Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs

Menginisialisasi instans ECDsaOpenSsl baru kelas dengan ukuran kunci target yang ditentukan.

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

Parameter

keySize
Int32
Atribut

Pengecualian

keySize menentukan panjang yang tidak valid.

Keterangan

Konstruktor ini tidak segera menghasilkan keypair publik/privat baru. Konstruktor ini mengatur KeySize properti ke nilai yang disediakan dan ketika kunci diperlukan, ukuran yang disimpan digunakan untuk mengidentifikasi kurva target. Jika kunci dimuat melalui ImportParameters metode atau metode impor kunci lainnya, ukuran kunci dari konstruktor ini tidak memiliki arti.

Lihat juga

Berlaku untuk

ECDsaOpenSsl(IntPtr)

Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs

Menginisialisasi instans ECDsaOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai EC_KEY*.

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

Parameter

handle
IntPtr

nativeint

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 bahwa nilai pointer Anda berasal dari versi OpenSSL yang sama dengan yang digunakan kelas ini. Untuk informasi selengkapnya, lihat OpenSslVersion .

Lihat juga

Berlaku untuk

ECDsaOpenSsl(ECCurve)

Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs

Menginisialisasi instans ECDsaOpenSsl baru kelas dan menghasilkan kunci baru pada kurva yang ditentukan.

public:
 ECDsaOpenSsl(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 ECDsaOpenSsl(System.Security.Cryptography.ECCurve curve);
public ECDsaOpenSsl(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.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (curve As ECCurve)

Parameter

curve
ECCurve
Atribut

Pengecualian

curve tidak memvalidasi.

curve adalah null.

Lihat juga

Berlaku untuk

ECDsaOpenSsl(SafeEvpPKeyHandle)

Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs
Sumber:
ECDsaOpenSsl.cs

Menginisialisasi instans ECDsaOpenSsl baru kelas dari kunci OpenSSL yang ada yang diwakili sebagai EVP_PKEY*.

public:
 ECDsaOpenSsl(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 ECDsaOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
public ECDsaOpenSsl(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.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

Parameter

pkeyHandle
SafeEvpPKeyHandle
Atribut

Pengecualian

pkeyHandle mewakili handel yang tidak valid.

pkeyHandle adalah null.

pkeyHandle tidak mewakili kunci kurva elips (EC).

Keterangan

Dalam .NET 9 dan versi yang lebih baru, modifikasi eksternal pkeyHandle juga memengaruhi handel yang disimpan dalam instans yang dibuat konstruktor ini.

Important

OpenSSL mendukung beberapa versi pustaka yang dimuat dalam proses yang sama. Sebelum memanggil konstruktor ini, verifikasi bahwa nilai pointer Anda berasal dari versi OpenSSL yang sama dengan yang digunakan kelas ini. Untuk informasi selengkapnya, lihat OpenSslVersion .

Lihat juga

Berlaku untuk