请输入您要查询的百科知识:

 

词条 Residual block termination
释义

  1. Encryption procedure

  2. Decryption procedure

  3. Short message

{{Unreferenced|date=December 2009}}

In cryptography, residual block termination is a variation of cipher block chaining mode (CBC) that does not require any padding. It does this by effectively changing to cipher feedback mode for one block. The cost is the increased complexity.

Encryption procedure

If the plaintext length N is not a multiple of the block size L:

  • Encrypt the ⌊N/L⌋ full blocks of plaintext using the cipher block chaining mode;
  • Encrypt the last full encrypted block again;
  • XOR the remaining bits of the plaintext with leftmost bits of the re-encrypted block.

Decryption procedure

  • Decrypt the ⌊N/L⌋ full encrypted blocks using the Cipher Block Chaining mode;
  • Encrypt the last full encrypted block;
  • XOR the remaining bits of the ciphertext with leftmost bits of the re-encrypted block.

Short message

For messages shorter than one block, residual block termination can use an encrypted IV instead of the previously encrypted block.

{{Cryptography navbox | block}}{{DEFAULTSORT:Residual Block Termination}}

1 : Cryptographic algorithms

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 8:34:20