SymmetricKeyAlgorithmProvider.BlockLength 属性

定义

获取打开算法的密码块的大小(以字节为单位)。

public:
 property unsigned int BlockLength { unsigned int get(); };
uint32_t BlockLength();
public uint BlockLength { get; }
var uInt32 = symmetricKeyAlgorithmProvider.blockLength;
Public ReadOnly Property BlockLength As UInteger

属性值

UInt32

unsigned int

uint32_t

块大小。

注解

如果不使用 PKCS#7 块填充算法 (该算法会自动将内容填充到正确的长度) ,则必须确保要加密的消息是算法支持的长度的确切倍数。 有关详细信息,请参阅以下代码示例。

适用于

另请参阅