- 论坛徽章:
- 0
|
原帖由 jasonnbfan 于 2007-12-17 08:34 发表 ![]()
填充模式标准的des算法文档里明确指出,位数不足的补 0x00,工作模式非特殊情况下就是使用ECB.
DES 刚出来的时候连 ECB 都没有。后来修正的 DES 标准提到可以用 ECB,但没提到填充。fip81:DES MODES OF OPERATION 里倒是有如下的描述:
Since the ECB mode is a 64-bit block cipher, an ECB device must encrypt data in integral multiples of sixty-four bits. If a user has less than sixty- four bits to encrypt, then the least significant bits of the unused portion of the input data block must be padded, e.g., filled with random or pseudo- random bits, prior to ECB encryption. The corresponding decrypting device must then discard these padding bits after decryption of the cipher text block. |
|