Residual block termination
In cryptography, residual block termination is a variation of Cipher Block Chaining (CBC) that does not require any padding, at the cost of increased complexity.
Encryption procedure
- If the plaintext length is not a multiple of the block size
- Encrypt the last encrypted block again.
- XOR the incomplete block with leftmost bits of the re-encrypted block.
Decryption procedure
- Decrypt the ciphertext using the Cipher Block Chaining mode.
- Encrypt the last full encrypted block
- XOR the incomplete block with leftmost bits of the re-encrypted block.
Proof that this decryption procedure really is the inverse of the encryption procedure is left as an exercise for the reader.
Short message
For messages shorter than one block residual block termination can use an encrypted IV instead of previously encrypted block.
| Block ciphers edit |
| Algorithms: 3-Way | AES | Akelarre | Blowfish | Camellia | CAST-128 | CAST-256 | CMEA | DEAL | DES | DES-X | FEAL | FROG | G-DES | GOST | ICE | IDEA | Iraqi | KASUMI | KHAZAD | Khufu and Khafre | LOKI89/91 | LOKI97 | Lucifer | MacGuffin | Madryga | MAGENTA | MARS | MISTY1 | MMB | NewDES | RC2 | RC5 | RC6 | REDOC | Red Pike | S-1 | SAFER | SEED | Serpent | SHACAL | SHARK | Skipjack | Square | TEA | Triple DES | Twofish | XTEA |
| Design: Feistel network | Key schedule | Product cipher | S-box | SPN Attacks: Brute force | Linear / Differential cryptanalysis | Mod n | XSL Standardisation: AES process | CRYPTREC | NESSIE Misc: Avalanche effect | Block size | IV | Key size | Modes of operation | Piling-up lemma | Weak key |
Categories: Cryptographic algorithms