Cryptography / Modern practice
Block Ciphers and AES
How a short shared key scrambles gigabytes: rounds of substitution and permutation, and the modes that chain blocks safely.
Contents 2 sections
By the end you can
- Describe confusion and diffusion
- Outline the AES round structure
- Explain why ECB mode is unsafe
Helps to know: Perfect Secrecy and the One-Time Pad
§1Substitute, permute, repeat
AES encrypts 128-bit blocks in 10 to 14 rounds. Each round substitutes bytes through an S-box (confusion), shifts rows and mixes columns (diffusion), and XORs in a round key. Flipping one input bit changes about half the output bits.
Check yourself
- Q1Why is ECB mode considered insecure?