SymmetricAlgorithm.PaddingValue 字段

定义

表示对称算法中使用的填充模式。Represents the padding mode used in the symmetric algorithm.

protected: System::Security::Cryptography::PaddingMode PaddingValue;
protected System.Security.Cryptography.PaddingMode PaddingValue;
val mutable PaddingValue : System.Security.Cryptography.PaddingMode
Protected PaddingValue As PaddingMode 

字段值

注解

大多数纯文本消息不包含完全填充块的多个字节。Most plain text messages do not consist of a number of bytes that completely fill blocks. 通常,没有足够的字节来填充最后一个块。Often, there are not enough bytes to fill the last block. 发生这种情况时,会将填充字符串添加到文本中。When this happens, a padding string is added to the text. 例如,如果块长度为64位,而最后一个块只包含40位,则会添加24位填充。For example, if the block length is 64 bits and the last block contains only 40 bits, 24 bits of padding are added. 有关特定模式的说明,请参阅 PaddingMode 枚举。See the PaddingMode enumeration for a description of specific modes.

此字段通过 Padding 属性进行访问。This field is accessed through the Padding property.

适用于

另请参阅