 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.  
Cryptographic_algorithms