ECDiffieHellmanCng Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy ECDiffieHellmanCng.

Przeciążenia

ECDiffieHellmanCng()

Inicjuje ECDiffieHellmanCng nowe wystąpienie klasy z losową parą kluczy.

ECDiffieHellmanCng(Int32)

Inicjuje nowe wystąpienie ECDiffieHellmanCng klasy z losową parą kluczy przy użyciu określonego rozmiaru klucza.

ECDiffieHellmanCng(CngKey)

Inicjuje ECDiffieHellmanCng nowe wystąpienie klasy przy użyciu określonego CngKey obiektu.

ECDiffieHellmanCng(ECCurve)

Tworzy nowe wystąpienie ECDiffieHellmanCng klasy, której para kluczy publicznych/prywatnych jest generowana na określonej krzywej.

ECDiffieHellmanCng()

Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

Inicjuje ECDiffieHellmanCng nowe wystąpienie klasy z losową parą kluczy.

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

Uwagi

Para kluczy losowych ma domyślną długość klucza publicznego o długości 521 bitów.

Dotyczy

ECDiffieHellmanCng(Int32)

Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

Inicjuje nowe wystąpienie ECDiffieHellmanCng klasy z losową parą kluczy przy użyciu określonego rozmiaru klucza.

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

Rozmiar klucza. Prawidłowe rozmiary kluczy to 256, 384 i 521 bitów.

Atrybuty

Wyjątki

keySize określa nieprawidłową długość.

Klasy kryptografii Następnej generacji (CNG) nie są obsługiwane w tym systemie.

Uwagi

Para kluczy losowych będzie miała długość klucza publicznego zdefiniowaną keySize przez parametr .

Dotyczy

ECDiffieHellmanCng(CngKey)

Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

Inicjuje ECDiffieHellmanCng nowe wystąpienie klasy przy użyciu określonego CngKey obiektu.

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

Klucz, który będzie używany jako dane wejściowe do operacji kryptograficznych wykonywanych przez bieżący obiekt.

Atrybuty

Wyjątki

key to null.

key nie określa grupy algorytmów Diffie-Hellman krzywej eliptycznej (ECDH).

Klasy kryptografii Następnej generacji (CNG) nie są obsługiwane w tym systemie.

Dotyczy

ECDiffieHellmanCng(ECCurve)

Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

Tworzy nowe wystąpienie ECDiffieHellmanCng klasy, której para kluczy publicznych/prywatnych jest generowana na określonej krzywej.

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

Krzywa używana do generowania pary kluczy publicznych/prywatnych.

Atrybuty

Wyjątki

curve nie weryfikuje.

Uwagi

curve musi sprawdzić poprawność (oznacza to, że musi zwrócić true) po przekazaniu do ECCurve.Validate metody i musi być nazwą lub jawną główną.

Dotyczy