Język

ECDiffieHellmanCng Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy ECDiffieHellmanCng.

Przeciążenia

Nazwa Opis
ECDiffieHellmanCng()

Inicjuje nowe wystąpienie ECDiffieHellmanCng 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 nowe wystąpienie ECDiffieHellmanCng 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
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

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

public:
 ECDiffieHellmanCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng();
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
Ź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);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(int keySize);
public ECDiffieHellmanCng(int keySize);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
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 mieć 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
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

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

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

Parametr key ma wartość null.

key nie określa grupy algorytmów Elliptic Curve Diffie-Hellman (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
Ź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);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(System.Security.Cryptography.ECCurve curve);
public ECDiffieHellmanCng(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (curve As ECCurve)

Parametry

curve
ECCurve

Krzywa użyta do wygenerowania pary kluczy publicznych/prywatnych.

Atrybuty

Wyjątki

curve nie sprawdza poprawności.

Uwagi

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

Dotyczy