TripleDESCng Classe
Definição
Fornece uma implementação Cryptography Next Generation (CNG) do algoritmo DES Triplo (3DES).Provides a Cryptography Next Generation (CNG) implementation of the Triple Data Encryption Standard (3DES) algorithm.
public ref class TripleDESCng sealed : System::Security::Cryptography::TripleDES
public sealed class TripleDESCng : System.Security.Cryptography.TripleDES
type TripleDESCng = class
inherit TripleDES
Public NotInheritable Class TripleDESCng
Inherits TripleDES
- Herança
Comentários
Importante
Um algoritmo de criptografia simétrica mais recente, criptografia AES (AES), está disponível.A newer symmetric encryption algorithm, Advanced Encryption Standard (AES), is available. Considere usar a Aes classe e suas classes derivadas em vez da TripleDES classe.Consider using the Aes class and its derived classes instead of the TripleDES class. Use TripleDES apenas para compatibilidade com dados e aplicativos herdados.Use TripleDES only for compatibility with legacy applications and data.
Construtores
| TripleDESCng() |
Inicializa uma nova instância da classe TripleDESCng com uma chave efêmera.Initializes a new instance of the TripleDESCng class with an ephemeral key. |
| TripleDESCng(String) |
Inicializa uma nova instância da classe TripleDESCng com o nome da chave especificado, que representa uma chave 3DES persistente existente.Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key. |
| TripleDESCng(String, CngProvider) |
Inicializa uma nova instância da classe TripleDESCng com o nome da chave especificado, que representa uma chave 3DES persistente existente e o KSP (provedor de armazenamento de chave) especificado.Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key, and the specified key storage provider (KSP). |
| TripleDESCng(String, CngProvider, CngKeyOpenOptions) |
Inicializa uma nova instância da classe TripleDESCng com o nome da chave especificado, que representa uma chave 3DES persistente existente, KSP (provedor de armazenamento de chave) especificado e opções de abertura de chave.Initializes a new instance of the TripleDESCng class with the specified key name, which represents an existing persisted 3DES key, the specified key storage provider (KSP) and key open options. |
Campos
| BlockSizeValue |
Representa o tamanho do bloco, em bits, da operação criptográfica.Represents the block size, in bits, of the cryptographic operation. (Herdado de SymmetricAlgorithm) |
| FeedbackSizeValue |
Representa o tamanho dos comentários, em bits, da operação de criptografia.Represents the feedback size, in bits, of the cryptographic operation. (Herdado de SymmetricAlgorithm) |
| IVValue |
Representa o vetor de inicialização (IV) do algoritmo simétrico.Represents the initialization vector (IV) for the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| KeySizeValue |
Representa o tamanho, em bits, da chave secreta usada pelo algoritmo simétrico.Represents the size, in bits, of the secret key used by the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| KeyValue |
Representa a chave secreta para o algoritmo simétrico.Represents the secret key for the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| LegalBlockSizesValue |
Especifica os tamanhos de bloco, em bits, que têm suporte pelo algoritmo simétrico.Specifies the block sizes, in bits, that are supported by the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| LegalKeySizesValue |
Especifica os tamanhos de chave, em bits, que têm suporte pelo algoritmo simétrico.Specifies the key sizes, in bits, that are supported by the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| ModeValue |
Representa o modo de criptografia usado no algoritmo simétrico.Represents the cipher mode used in the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| PaddingValue |
Representa o modo de preenchimento usado no algoritmo simétrico.Represents the padding mode used in the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
Propriedades
| BlockSize |
Obtém ou define o tamanho do bloco, em bits, da operação de criptografia.Gets or sets the block size, in bits, of the cryptographic operation. (Herdado de SymmetricAlgorithm) |
| FeedbackSize |
Obtém ou define o tamanho dos comentários, em bits, da operação de criptografia para os modos de codificação CFB (Comentário de Codificação) e OFB (Comentário de Saída).Gets or sets the feedback size, in bits, of the cryptographic operation for the Cipher Feedback (CFB) and Output Feedback (OFB) cipher modes. (Herdado de SymmetricAlgorithm) |
| IV |
Obtém ou define o vetor de inicialização (IV) para o algoritmo simétrico.Gets or sets the initialization vector (IV) for the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| Key |
Obtém ou define a chave para o algoritmo TripleDESCng.Gets or sets the key for the TripleDESCng algorithm. |
| KeySize |
Obtém ou define o tamanho, em bits, da chave secreta usada pelo algoritmo TripleDESCng.Gets or sets the size, in bits, of the secret key used by the TripleDESCng algorithm. |
| LegalBlockSizes |
Obtém os tamanhos de bloco, em bits, que tem suporte com o algoritmo simétrico.Gets the block sizes, in bits, that are supported by the symmetric algorithm. (Herdado de TripleDES) |
| LegalKeySizes |
Obtém os tamanhos de chave, em bits, que têm suporte pelo algoritmo simétrico.Gets the key sizes, in bits, that are supported by the symmetric algorithm. |
| LegalKeySizes |
Obtém os tamanhos de chave, em bits, que têm suporte pelo algoritmo simétrico.Gets the key sizes, in bits, that are supported by the symmetric algorithm. (Herdado de TripleDES) |
| Mode |
Obtém ou define o modo de operação do algoritmo simétrico.Gets or sets the mode for operation of the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| Padding |
Obtém ou define o modo de preenchimento usado no algoritmo simétrico.Gets or sets the padding mode used in the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
Métodos
| Clear() |
Libera todos os recursos usados pela classe SymmetricAlgorithm.Releases all resources used by the SymmetricAlgorithm class. (Herdado de SymmetricAlgorithm) |
| CreateDecryptor() |
Cria um objeto descriptografador 3DES simétrico com a chave atual e o IV (vetor de inicialização).Creates a symmetric 3DES decryptor object with the current key and initialization vector (IV). |
| CreateDecryptor(Byte[], Byte[]) |
Cria um objeto descriptografador 3DES simétrico com a chave especificada e o IV (vetor de inicialização).Creates a symmetric 3DES decryptor object with the specified key and initialization vector (IV). |
| CreateEncryptor() |
Cria um objeto criptografador 3DES simétrico usando a chave atual e o vetor de inicialização (IV).Creates a symmetric 3DES encryptor object using the current key and initialization vector (IV). |
| CreateEncryptor(Byte[], Byte[]) |
Cria um objeto criptografador 3DES simétrico com a chave especificada e o IV (vetor de inicialização).Creates a symmetric 3DES encryptor object with the specified key and initialization vector (IV). |
| Dispose() |
Libera todos os recursos usados pela instância atual da classe SymmetricAlgorithm.Releases all resources used by the current instance of the SymmetricAlgorithm class. (Herdado de SymmetricAlgorithm) |
| Dispose(Boolean) |
Libera os recursos não gerenciados usados pelo SymmetricAlgorithm e opcionalmente libera os recursos gerenciados.Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources. (Herdado de SymmetricAlgorithm) |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GenerateIV() |
Gera um IV (vetor de inicialização) aleatório a ser usado para o algoritmo 3DES.Generates a random initialization vector (IV) to use for the 3DES algorithm. |
| GenerateKey() |
Gera uma chave aleatória a ser usada para o algoritmo 3DES.Generates a random key to use for the 3DES algorithm. |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| ValidKeySize(Int32) |
Determina se o tamanho da chave especificado é válido para o algoritmo atual.Determines whether the specified key size is valid for the current algorithm. (Herdado de SymmetricAlgorithm) |
Implantações explícitas de interface
| IDisposable.Dispose() |
Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código. Libera os recursos não gerenciados usados pelo SymmetricAlgorithm e opcionalmente libera os recursos gerenciados.Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources. (Herdado de SymmetricAlgorithm) |