AesCng Konstruktory

Definice

Inicializuje novou instanci AesCng třídy .

Přetížení

AesCng()

Inicializuje novou instanci AesCng třídy s dočasným klíčem.

AesCng(String)

Inicializuje novou instanci AesCng třídy se zadaným názvem klíče, který představuje existující trvalý klíč AES.

AesCng(String, CngProvider)

Inicializuje novou instanci AesCng třídy se zadaným názvem klíče, který představuje existující trvalý klíč AES, a zadaného zprostředkovatele úložiště klíčů (KSP).

AesCng(String, CngProvider, CngKeyOpenOptions)

Inicializuje novou instanci třídy se zadaným názvem klíče, který představuje existující trvalý klíč AES, zadaného AesCng zprostředkovatele úložiště klíčů (KSP) a možnosti otevření klíče.

AesCng()

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

Inicializuje novou instanci AesCng třídy s dočasným klíčem.

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

Platí pro

AesCng(String)

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

Inicializuje novou instanci AesCng třídy se zadaným názvem klíče, který představuje existující trvalý klíč 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

Název klíče.

Atributy

Výjimky

keyName je null.

Kryptografie nové generace (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Poznámky

Tento konstruktor používá výchozí CngKeyOpenOptions hodnotu a MicrosoftSoftwareKeyStorageProvider jako výchozího None zprostředkovatele úložiště klíčů (KSP) k otevření klíče.

Viz také

Platí pro

AesCng(String, CngProvider)

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

Inicializuje novou instanci AesCng třídy se zadaným názvem klíče, který představuje existující trvalý klíč AES, a zadaného zprostředkovatele úložiště klíčů (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

Název klíče.

provider
CngProvider

KSP, který obsahuje klíč.

Atributy

Výjimky

keyName je null.

-nebo-

provider je null.

Kryptografie nové generace (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Poznámky

K otevření klíče se použije výchozí CngKeyOpenOptions hodnota None .

Viz také

Platí pro

AesCng(String, CngProvider, CngKeyOpenOptions)

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

Inicializuje novou instanci třídy se zadaným názvem klíče, který představuje existující trvalý klíč AES, zadaného AesCng zprostředkovatele úložiště klíčů (KSP) a možnosti otevření klíče.

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

Název klíče.

provider
CngProvider

KSP, který obsahuje klíč.

openOptions
CngKeyOpenOptions

Bitová kombinace hodnot výčtu, které určují možnosti pro otevření klíče, například odkud je klíč otevřen (počítač nebo uživatelské úložiště) a zda se má potlačit výzva uživatelského rozhraní.

Atributy

Výjimky

keyName je null.

-nebo-

provider je null.

Kryptografie nové generace (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Viz také

Platí pro