AesCng Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Inicializuje novou instanci AesCng třídy.
Přetížení
| Name | Description |
|---|---|
| AesCng() |
Inicializuje novou instanci AesCng třídy dočasným klíčem. |
| AesCng(CngKey) | |
| 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ý zprostředkovatel úložiště klíčů (KSP). |
| AesCng(String, CngProvider, CngKeyOpenOptions) |
Inicializuje novou instanci AesCng třídy se zadaným názvem klíče, který představuje existující trvalý klíč AES, zadaný zprostředkovatel ú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
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
Inicializuje novou instanci AesCng třídy dočasným klíčem.
public:
AesCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng();
public AesCng();
Public Sub New ()
- Atributy
Platí pro
AesCng(CngKey)
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
public:
AesCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.AesCng
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 nepředstavuje klíč AES.
nebo
Při provádění kryptografické operace došlo k chybě.
Kryptografie next Generation (CNG) není v tomto systému podporována.
Platí pro
AesCng(String)
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- 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);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(string keyName);
public AesCng(string keyName);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string -> System.Security.Cryptography.AesCng
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 next Generation (CNG) není v tomto systému podporována.
Všechny ostatní chyby.
Poznámky
Tento konstruktor používá k otevření klíče výchozí CngKeyOpenOptions hodnotu None a MicrosoftSoftwareKeyStorageProvider jako výchozího zprostředkovatele úložiště klíčů (KSP).
Viz také
Platí pro
AesCng(String, CngProvider)
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- 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ý zprostředkovatel úložiště klíčů (KSP).
public:
AesCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(string keyName, System.Security.Cryptography.CngProvider provider);
public AesCng(string keyName, System.Security.Cryptography.CngProvider provider);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.AesCng
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
Kryptografie next Generation (CNG) není v tomto systému podporována.
Všechny ostatní chyby.
Poznámky
Výchozí CngKeyOpenOptions hodnota None slouží k otevření klíče.
Viz také
Platí pro
AesCng(String, CngProvider, CngKeyOpenOptions)
- Zdroj:
- Cng.NotSupported.cs
- Zdroj:
- Cng.NotSupported.cs
- 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, zadaný zprostředkovatel ú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);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng(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")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.AesCng
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 jestli se má potlačit zobrazení výzvy uživatelského rozhraní.
- Atributy
Výjimky
Kryptografie next Generation (CNG) není v tomto systému podporována.
Všechny ostatní chyby.