AesCng Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy AesCng.
Przeciążenia
| Nazwa | Opis |
|---|---|
| AesCng() |
Inicjuje AesCng nowe wystąpienie klasy przy użyciu klucza efemerycznego. |
| AesCng(CngKey) | |
| AesCng(String) |
Inicjuje nowe wystąpienie AesCng klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalonego klucza 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 nowe wystąpienie AesCng klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalonego klucza AES, określonego dostawcę 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
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- Cng.NotSupported.cs
Inicjuje AesCng nowe wystąpienie klasy przy użyciu klucza efemerycznego.
public:
AesCng();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng();
public AesCng();
Public Sub New ()
- Atrybuty
Dotyczy
AesCng(CngKey)
- Źródło:
- Cng.NotSupported.cs
- Źródło:
- 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
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 reprezentuje klucza AES.
— lub —
Wystąpił błąd podczas wykonywania operacji kryptograficznych.
Kryptografia nowej generacji (CNG) nie jest obsługiwana w tym systemie.
Dotyczy
AesCng(String)
- Ź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 AesCng klasy o określonej nazwie klucza, która reprezentuje istniejący utrwalonego klucza 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
Nazwa klucza.
- Atrybuty
Wyjątki
Parametr keyName ma wartość null.
Kryptografia nowej 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
- Ź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);
[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
Nazwa klucza.
- provider
- CngProvider
Dostawcy kluczy, który zawiera klucz.
- Atrybuty
Wyjątki
Kryptografia nowej 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
- Ź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, określonego dostawcę magazynu kluczy (KSP) i opcje otwierania klucza.
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
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 (maszyny lub magazynu użytkownika) i czy pomijać monitowanie interfejsu użytkownika.
- Atrybuty
Wyjątki
Kryptografia nowej generacji (CNG) nie jest obsługiwana w tym systemie.
Wszystkie inne błędy.