Udostępnij przez


AesCng Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy AesCng.

Przeciążenia

AesCng()

Inicjuje AesCng nowe wystąpienie klasy z kluczem efemerycznym.

AesCng(String)

Inicjuje AesCng nowe wystąpienie klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalone klucz AES.

AesCng(String, CngProvider)

Inicjuje nowe wystąpienie AesCng klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalonego klucza AES i określonego dostawcę magazynu kluczy (KSP).

AesCng(String, CngProvider, CngKeyOpenOptions)

Inicjuje AesCng nowe wystąpienie klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalone klucz AES, określony dostawca magazynu kluczy (KSP) i opcje otwierania klucza.

AesCng()

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

Inicjuje AesCng nowe wystąpienie klasy z kluczem efemerycznym.

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

Dotyczy

AesCng(String)

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

Inicjuje AesCng nowe wystąpienie klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalone klucz AES.

public:
 AesCng(System::String ^ keyName);
public AesCng (string keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng (string keyName);
new System.Security.Cryptography.AesCng : string -> System.Security.Cryptography.AesCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String)

Parametry

keyName
String

Nazwa klucza.

Atrybuty

Wyjątki

keyName to null.

Kryptografia Następnej generacji (CNG) nie jest obsługiwana w tym systemie.

Wszystkie inne błędy.

Uwagi

Ten konstruktor używa wartości domyślnej CngKeyOpenOptionsNone i MicrosoftSoftwareKeyStorageProvider jako domyślnego dostawcy magazynu kluczy (KSP), aby otworzyć klucz.

Zobacz też

Dotyczy

AesCng(String, CngProvider)

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

Inicjuje nowe wystąpienie AesCng klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalonego klucza AES i określonego dostawcę magazynu kluczy (KSP).

public:
 AesCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider);
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider);
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.AesCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String, provider As CngProvider)

Parametry

keyName
String

Nazwa klucza.

provider
CngProvider

Dostawcy kluczy, który zawiera klucz.

Atrybuty

Wyjątki

keyName to null.

-lub-

provider to null.

Kryptografia Następnej generacji (CNG) nie jest obsługiwana w tym systemie.

Wszystkie inne błędy.

Uwagi

Wartość domyślna CngKeyOpenOptionsNone jest używana do otwierania klucza.

Zobacz też

Dotyczy

AesCng(String, CngProvider, CngKeyOpenOptions)

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

Inicjuje AesCng nowe wystąpienie klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalone klucz AES, określony dostawca magazynu kluczy (KSP) i opcje otwierania klucza.

public:
 AesCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider, System::Security::Cryptography::CngKeyOpenOptions openOptions);
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.AesCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String, provider As CngProvider, openOptions As CngKeyOpenOptions)

Parametry

keyName
String

Nazwa klucza.

provider
CngProvider

Dostawcy kluczy, który zawiera klucz.

openOptions
CngKeyOpenOptions

Bitowa kombinacja wartości wyliczenia, które określają opcje otwierania klucza, takie jak miejsce otwarcia klucza (maszyna lub magazyn użytkownika) i czy pomijać monitowanie interfejsu użytkownika.

Atrybuty

Wyjątki

keyName to null.

-lub-

provider to null.

Kryptografia Następnej generacji (CNG) nie jest obsługiwana w tym systemie.

Wszystkie inne błędy.

Zobacz też

Dotyczy