ECDsaCng Konstruktory

Definice

Inicializuje novou instanci ECDsaCng třídy.

Přetížení

ECDsaCng()

Inicializuje novou instanci ECDsaCng třídy s náhodným párem klíčů.

ECDsaCng(Int32)

Inicializuje novou instanci ECDsaCng třídy se zadanou cílovou velikostí klíče.

ECDsaCng(CngKey)

Inicializuje novou instanci ECDsaCng třídy pomocí zadaného CngKey objektu.

ECDsaCng(ECCurve)

Inicializuje novou instanci třídy, jejíž pár veřejného/privátního ECDsaCng klíče je generován přes zadanou křivku.

ECDsaCng()

Inicializuje novou instanci ECDsaCng třídy s náhodným párem klíčů.

public:
 ECDsaCng();
public ECDsaCng ();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng ();
Public Sub New ()
Atributy

Výjimky

Třídy CNG (Cryptography Next Generation) nejsou v tomto systému podporovány.

Poznámky

Tento konstruktor negeneruje okamžitě nový veřejný/privátní klíč. Tento konstruktor nastaví KeySize vlastnost na hodnotu 521 a když je klíč potřebný k určení cílové křivky, použije se uložená velikost. Pokud je klíč načten prostřednictvím ImportParameters metody nebo jiné metody importu klíče, velikost klíče z tohoto konstruktoru nemá žádný význam.

Viz také

Platí pro

ECDsaCng(Int32)

Inicializuje novou instanci ECDsaCng třídy se zadanou cílovou velikostí klíče.

public:
 ECDsaCng(int keySize);
public ECDsaCng (int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng (int keySize);
[System.Security.SecurityCritical]
public ECDsaCng (int keySize);
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
Public Sub New (keySize As Integer)

Parametry

keySize
Int32

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

Atributy

Výjimky

Třídy CNG (Cryptography Next Generation) nejsou v tomto systému podporovány.

keySize určuje neplatnou délku.

Poznámky

Tento konstruktor negeneruje okamžitě nový veřejný/privátní klíč. Tento konstruktor nastaví KeySize vlastnost na zadanou hodnotu a když je klíč potřebný k určení cílové křivky. Pokud je klíč načten prostřednictvím ImportParameters metody nebo jiné metody importu klíče, velikost klíče z tohoto konstruktoru nemá žádný význam.

Viz také

Platí pro

ECDsaCng(CngKey)

Inicializuje novou instanci ECDsaCng třídy pomocí zadaného CngKey objektu.

public:
 ECDsaCng(System::Security::Cryptography::CngKey ^ key);
public ECDsaCng (System.Security.Cryptography.CngKey key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng (System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDsaCng (System.Security.Cryptography.CngKey key);
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
Public Sub New (key As CngKey)

Parametry

key
CngKey

Klíč, který se použije jako vstup pro kryptografické operace prováděné aktuálním objektem.

Atributy

Výjimky

key nezadá skupinu Elliptic Curve Digital Signature Algorithm (ECDSA).

key je null.

Třídy CNG (Cryptography Next Generation) nejsou v tomto systému podporovány.

Platí pro

ECDsaCng(ECCurve)

Inicializuje novou instanci třídy, jejíž pár veřejného/privátního ECDsaCng klíče je generován přes zadanou křivku.

public:
 ECDsaCng(System::Security::Cryptography::ECCurve curve);
public ECDsaCng (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaCng
Public Sub New (curve As ECCurve)

Parametry

curve
ECCurve

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

Atributy

Výjimky

curve neověřuje.

curve je null.

pokud curve neobsahuje identifikátor Oid s popisným názvem.

Poznámky

curve musí ověřit (to znamená, že musí být vrácen true) při předání metodě ECCurve.Validate a musí být buď pojmenovaný, nebo explicitní úvod.

Platí pro