AesCng Construtores

Definição

Inicializa uma nova instância da classe AesCng.

Sobrecargas

Nome Description
AesCng()

Inicializa uma nova instância da AesCng classe com uma chave efêmera.

AesCng(CngKey)

Inicializa uma nova instância da AesCng classe com a especificada CngKey.

AesCng(String)

Inicializa uma nova instância da AesCng classe com o nome da chave especificado, que representa uma chave AES persistente existente.

AesCng(String, CngProvider)

Inicializa uma nova instância da AesCng classe com o nome da chave especificado, que representa uma chave AES persistente existente e o KSP (provedor de armazenamento de chaves) especificado.

AesCng(String, CngProvider, CngKeyOpenOptions)

Inicializa uma nova instância da AesCng classe com o nome da chave especificado, que representa uma chave AES persistente existente, o KSP (provedor de armazenamento de chaves) especificado e as opções de abertura de chave.

AesCng()

Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs

Inicializa uma nova instância da AesCng classe com uma chave efêmera.

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

Aplica-se a

AesCng(CngKey)

Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs

Inicializa uma nova instância da AesCng classe com a especificada CngKey.

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)

Parâmetros

key
CngKey

A chave que será usada como entrada para as operações criptográficas executadas pelo objeto atual.

Atributos

Exceções

key é null.

key não representa uma chave AES.

- ou -

Erro ao executar uma operação criptográfica.

Não há suporte para CNG (Cryptography Next Generation) nesse sistema.

Aplica-se a

AesCng(String)

Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs

Inicializa uma nova instância da AesCng classe com o nome da chave especificado, que representa uma chave AES persistente existente.

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)

Parâmetros

keyName
String

O nome da chave.

Atributos

Exceções

keyName é null.

Não há suporte para CNG (Cryptography Next Generation) nesse sistema.

Todos os outros erros.

Comentários

Esse construtor usa um valor padrão CngKeyOpenOptions de None E MicrosoftSoftwareKeyStorageProvider como o KSP (provedor de armazenamento de chaves) padrão para abrir a chave.

Confira também

Aplica-se a

AesCng(String, CngProvider)

Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs

Inicializa uma nova instância da AesCng classe com o nome da chave especificado, que representa uma chave AES persistente existente e o KSP (provedor de armazenamento de chaves) especificado.

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)

Parâmetros

keyName
String

O nome da chave.

provider
CngProvider

O KSP que contém a chave.

Atributos

Exceções

keyName é null.

- ou -

provider é null.

Não há suporte para CNG (Cryptography Next Generation) nesse sistema.

Todos os outros erros.

Comentários

Um valor padrão CngKeyOpenOptions é None usado para abrir a chave.

Confira também

Aplica-se a

AesCng(String, CngProvider, CngKeyOpenOptions)

Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs
Origem:
Cng.NotSupported.cs

Inicializa uma nova instância da AesCng classe com o nome da chave especificado, que representa uma chave AES persistente existente, o KSP (provedor de armazenamento de chaves) especificado e as opções de abertura de chave.

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)

Parâmetros

keyName
String

O nome da chave.

provider
CngProvider

O KSP que contém a chave.

openOptions
CngKeyOpenOptions

Uma combinação bit a bit dos valores de enumeração que especificam opções para abrir a chave, como de onde a chave é aberta (armazenamento do computador ou do usuário) e se deve suprimir a solicitação de interface do usuário.

Atributos

Exceções

keyName é null.

- ou -

provider é null.

Não há suporte para CNG (Cryptography Next Generation) nesse sistema.

Todos os outros erros.

Confira também

Aplica-se a