What is the "didactic Mix Mode", and what advantages does it combine?
The Mix Mode XOR's each plaintext block with a counter value (IV, IV+1, IV+2, ...) before encryption, combining advantages of ECB and CBC.
* The didactic Mix Mode XORs a counter into each block before encryption — the stepping stone to CTR. *
How it works:
C_i = E(K, M_i ⊕ (IV + i-1))
Advantages it combines:
- From ECB: Encryption and decryption are parallelizable; partial encryption of large files or hard disks is possible
- From CBC: Identical plaintext blocks no longer produce identical ciphertext blocks; swapping ciphertext blocks is no longer trivially possible
Why it's relevant: This "Mix Mode" is not a published standard, but it's a didactic stepping stone that leads directly to CTR (Counter) mode — which IS a real, widely-used mode and represents a further development of this idea.
Note: This mode serves as a bridge between ECB/CBC and CTR mode, showing how a simple counter-based XOR can fix ECB's pattern-leaking problem while keeping parallelizability.
Go deeper:
Block cipher mode of operation (Wikipedia) — how counter-based modes fix ECB while staying parallel.