ECDiffieHellmanCng Konstruktory

Definice

Inicializuje novou instanci ECDiffieHellmanCng třídy.

Přetížení

ECDiffieHellmanCng()

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

ECDiffieHellmanCng(Int32)

Inicializuje novou instanci ECDiffieHellmanCng třídy s náhodným párem klíčů pomocí zadané velikosti klíče.

ECDiffieHellmanCng(CngKey)

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

ECDiffieHellmanCng(ECCurve)

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

ECDiffieHellmanCng()

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

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

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

Poznámky

Dvojice náhodných klíčů má výchozí délku veřejného klíče 521 bitů.

Platí pro

ECDiffieHellmanCng(Int32)

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

Inicializuje novou instanci ECDiffieHellmanCng třídy s náhodným párem klíčů pomocí zadané velikosti klíče.

public:
 ECDiffieHellmanCng(int keySize);
public ECDiffieHellmanCng (int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (int keySize);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng (int keySize);
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
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.

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

Poznámky

Dvojice náhodných klíčů bude mít délku veřejného klíče definovanou parametrem keySize .

Platí pro

ECDiffieHellmanCng(CngKey)

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

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

public:
 ECDiffieHellmanCng(System::Security::Cryptography::CngKey ^ key);
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
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 je null.

key neurčí skupinu algoritmů Diffie-Hellman ECDH (Elliptic Curve).

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

Platí pro

ECDiffieHellmanCng(ECCurve)

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

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

public:
 ECDiffieHellmanCng(System::Security::Cryptography::ECCurve curve);
public ECDiffieHellmanCng (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
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.

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