RC2 Classe
Definição
public ref class RC2 abstract : System::Security::Cryptography::SymmetricAlgorithm
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public abstract class RC2 : System.Security.Cryptography.SymmetricAlgorithm
public abstract class RC2 : System.Security.Cryptography.SymmetricAlgorithm
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class RC2 : System.Security.Cryptography.SymmetricAlgorithm
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type RC2 = class
inherit SymmetricAlgorithm
type RC2 = class
inherit SymmetricAlgorithm
[<System.Runtime.InteropServices.ComVisible(true)>]
type RC2 = class
inherit SymmetricAlgorithm
Public MustInherit Class RC2
Inherits SymmetricAlgorithm
- Herança
- Derivado
- Atributos
Comentários
Observação
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 o Aes algoritmo e suas classes derivadas em vez da RC2 classe.Consider using the Aes algorithm and its derived classes instead of the RC2 class. Use RC2 apenas para compatibilidade com dados e aplicativos herdados.Use RC2 only for compatibility with legacy applications and data.
Construtores
| RC2() |
Inicializa uma nova instância de RC2.Initializes a new instance of RC2. |
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) |
| EffectiveKeySizeValue |
Representa o tamanho efetivo da chave secreta usada pelo algoritmo RC2 em bits.Represents the effective size of the secret key used by the RC2 algorithm in bits. |
| 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) |
| EffectiveKeySize |
Obtém ou define o tamanho efetivo da chave secreta usada pelo algoritmo RC2 em bits.Gets or sets the effective size of the secret key used by the RC2 algorithm in bits. |
| 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 secreta para o algoritmo simétrico.Gets or sets the secret key for the symmetric algorithm. (Herdado de SymmetricAlgorithm) |
| KeySize |
Obtém ou define o tamanho da chave secreta usada pelo algoritmo RC2 em bits.Gets or sets the size of the secret key used by the RC2 algorithm in bits. |
| 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 SymmetricAlgorithm) |
| 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 SymmetricAlgorithm) |
| 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) |
| Create() |
Cria uma instância de um objeto criptográfico para executar o algoritmo RC2.Creates an instance of a cryptographic object to perform the RC2 algorithm. |
| Create(String) |
Cria uma instância de um objeto criptográfico para realizar a implementação especificada do algoritmo RC2.Creates an instance of a cryptographic object to perform the specified implementation of the RC2 algorithm. |
| CreateDecryptor() |
Cria um objeto descriptografador simétrico com a propriedade Key atual e o vetor de inicialização (IV).Creates a symmetric decryptor object with the current Key property and initialization vector (IV). (Herdado de SymmetricAlgorithm) |
| CreateDecryptor(Byte[], Byte[]) |
Quando substituído em uma classe derivada, cria um objeto descriptografador simétrico com a propriedade Key especificada e o vetor de inicialização (IV).When overridden in a derived class, creates a symmetric decryptor object with the specified Key property and initialization vector (IV). (Herdado de SymmetricAlgorithm) |
| CreateEncryptor() |
Cria um objeto criptografador simétrico com a propriedade Key atual e o vetor de inicialização (IV).Creates a symmetric encryptor object with the current Key property and initialization vector (IV). (Herdado de SymmetricAlgorithm) |
| CreateEncryptor(Byte[], Byte[]) |
Quando substituído em uma classe derivada, cria um objeto criptografador simétrico com a propriedade Key especificada e o vetor de inicialização (IV).When overridden in a derived class, creates a symmetric encryptor object with the specified Key property and initialization vector (IV). (Herdado de SymmetricAlgorithm) |
| 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() |
Quando substituído em uma classe derivada, gera um vetor de inicialização aleatório (IV) a ser usado para o algoritmo.When overridden in a derived class, generates a random initialization vector (IV) to use for the algorithm. (Herdado de SymmetricAlgorithm) |
| GenerateKey() |
Quando substituído em uma classe derivada, gera uma chave aleatória (Key) para ser usada com o algoritmo.When overridden in a derived class, generates a random key (Key) to use for the algorithm. (Herdado de SymmetricAlgorithm) |
| 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) |