Sdílet prostřednictvím


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 velikostí cílového klíče.

ECDsaCng(CngKey)

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

ECDsaCng(ECCurve)

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

ECDsaCng()

Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs

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

Kryptografické třídy další generace (CNG) nejsou v tomto systému podporovány.

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

ECDsaCng(Int32)

Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs

Inicializuje novou instanci ECDsaCng třídy se zadanou velikostí cílového 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

Kryptografické třídy další generace (CNG) nejsou v tomto systému podporovány.

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

ECDsaCng(CngKey)

Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs

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 neurčí skupinu algoritmu ECDSA (Elliptic Curve Digital Signature Algorithm).

key je null.

Kryptografické třídy další generace (CNG) nejsou v tomto systému podporovány.

Platí pro

ECDsaCng(ECCurve)

Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs

Inicializuje novou instanci ECDsaCng třídy, jejíž pár veřejného a privátního 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 a privátního klíče

Atributy

Výjimky

curve neověřuje.

curve je null.

pokud curve neobsahuje identifikátor Oid s friendlyname.

Poznámky

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

Platí pro