MACTripleDES.Padding Propriedade

Definição

Obtém ou define o modo de preenchimento usado no algoritmo de hash.Gets or sets the padding mode used in the hashing algorithm.

public:
 property System::Security::Cryptography::PaddingMode Padding { System::Security::Cryptography::PaddingMode get(); void set(System::Security::Cryptography::PaddingMode value); };
[System.Runtime.InteropServices.ComVisible(false)]
public System.Security.Cryptography.PaddingMode Padding { get; set; }
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Padding : System.Security.Cryptography.PaddingMode with get, set
Public Property Padding As PaddingMode

Valor da propriedade

PaddingMode

O modo de preenchimento usado no algoritmo de hash.The padding mode used in the hashing algorithm.

Atributos

Exceções

A propriedade não pode ser definida porque o modo de preenchimento é inválido.The property cannot be set because the padding mode is invalid.

Comentários

A maioria das mensagens de texto sem formatação não consiste em um número de bytes que preenche completamente os blocos.Most plain text messages do not consist of a number of bytes that completely fill blocks. Geralmente, não há bytes suficientes para preencher o último bloco.Often, there are not enough bytes to fill the last block. Quando isso acontece, uma cadeia de caracteres de preenchimento é adicionada ao texto.When this happens, a padding string is added to the text. Por exemplo, se o tamanho do bloco for 64 bits e o último bloco contiver apenas 40 bits, serão adicionados 24 bits de preenchimento.For example, if the block length is 64 bits and the last block contains only 40 bits, 24 bits of padding are added. Consulte PaddingMode para obter uma descrição de modos específicos.See PaddingMode for a description of specific modes.

Esse campo é acessado por meio da Padding propriedade.This field is accessed through the Padding property.

Aplica-se a