ECDsaOpenSsl Konstruktory

Definice

Přetížení

ECDsaOpenSsl()

Inicializuje novou instanci ECDsaOpenSsl třídy.

ECDsaOpenSsl(Int32)

Inicializuje novou instanci ECDsaOpenSsl třídy se zadanou velikostí cílového klíče.

ECDsaOpenSsl(IntPtr)

Inicializuje novou instanci ECDsaOpenSsl třídy z existujícího klíče OpenSSL reprezentovaný jako EC_KEY*.

ECDsaOpenSsl(ECCurve)

Inicializuje novou instanci ECDsaOpenSsl třídy a vygeneruje nový klíč na zadané křivce.

ECDsaOpenSsl(SafeEvpPKeyHandle)

Inicializuje novou instanci ECDsaOpenSsl třídy z existujícího klíče OpenSSL reprezentovaný jako EVP_PKEY*.

ECDsaOpenSsl()

Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs

Inicializuje novou instanci ECDsaOpenSsl třídy.

public:
 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 Sub New ()
Atributy

Poznámky

Tento konstruktor negeneruje nový veřejný/privátní klíčpair okamžitě. Tento konstruktor nastaví KeySize vlastnost na 521 a v případě potřeby klíče se uložená velikost použije k identifikaci cílové křivky. 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.

Viz také

Platí pro

ECDsaOpenSsl(Int32)

Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs

Inicializuje novou instanci ECDsaOpenSsl třídy se zadanou velikostí cílového klíče.

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

Parametry

keySize
Int32

Velikost klíče. Platné velikosti klíčů jsou 256, 384 a 521 bitů.

Atributy

Výjimky

keySize určuje neplatnou délku.

Poznámky

Tento konstruktor negeneruje nový veřejný/privátní klíčpair okamžitě. Tento konstruktor nastaví KeySize vlastnost na zadanou hodnotu a v případě potřeby klíče se uložená velikost použije k identifikaci cílové křivky. 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.

Viz také

Platí pro

ECDsaOpenSsl(IntPtr)

Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs

Inicializuje novou instanci ECDsaOpenSsl třídy z existujícího klíče OpenSSL reprezentovaný jako EC_KEY*.

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

Parametry

handle
IntPtr

nativeint

Hodnota OpenSSL EC_KEY* , která se má použít jako klíč.

Atributy

Výjimky

handle je Zero.

handle není platný EC_KEY*.

Poznámky

Důležité

OpenSSL podporuje načítání více verzí knihovny 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, viz OpenSslVersion další informace.

Viz také

Platí pro

ECDsaOpenSsl(ECCurve)

Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs

Inicializuje novou instanci ECDsaOpenSsl třídy a vygeneruje nový klíč na zadané křivce.

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

Parametry

curve
ECCurve

Křivka použitá k vygenerování dočasného páru veřejného a privátního klíče

Atributy

Výjimky

curve neověřuje.

curve je null.

Viz také

Platí pro

ECDsaOpenSsl(SafeEvpPKeyHandle)

Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs
Zdroj:
ECDsaOpenSsl.cs

Inicializuje novou instanci ECDsaOpenSsl třídy z existujícího klíče OpenSSL reprezentovaný jako EVP_PKEY*.

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")]
public ECDsaOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
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 představuje neplatný popisovač.

pkeyHandle je null.

pkeyHandle nepředstavuje klíč eliptické křivky (EC).

Poznámky

Důležité

OpenSSL podporuje načítání více verzí knihovny 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.

Viz také

Platí pro