Course contentsShow
← Security
Lesson 90 of 3,0523. Symmetric Cryptography Deep DiveFree lesson

AES Round Transformations

Master the four AES operations: SubBytes, ShiftRows, MixColumns, and AddRoundKey, and how they provide security.

AES Round Transformations

What you'll learn: You'll understand the four core operations that happen in every AES encryption round and why each one strengthens security.

The Four Operations Inside AES

AES (the Advanced Encryption Standard you just learned about) doesn't encrypt data in one simple step. Instead, it performs multiple rounds (10, 12, or 14 depending on key size), and in each round, your plaintext undergoes four distinct transformations:

1. SubBytes (Substitution) This operation replaces each byte with another byte using a fixed lookup table (S-box). Think of it like a sophisticated code where A becomes Q, B becomes M, etc. This creates confusion—making the relationship between plaintext and ciphertext complex and non-linear.

2. ShiftRows (Permutation) This step shifts the rows of the data block by different amounts. Row 0 stays put, row 1 shifts left by 1 byte, row 2 by 2 bytes, and row 3 by 3 bytes. This spreads data across columns, creating diffusion—ensuring one plaintext bit influences many ciphertext bits.

3. MixColumns (Mixing) Each column is mathematically mixed using matrix multiplication. This further spreads the influence of each byte throughout the entire block, amplifying diffusion. (Note: skipped in the final round)

4. AddRoundKey (Key Addition) The round key (derived from your encryption key) is XORed with the data. This is where your secret key actually gets mixed into the encryption process.

Why All Four?

Each operation defends against different attack strategies. SubBytes resists linear attacks, MixColumns prevents differential attacks, ShiftRows spreads local changes globally, and AddRoundKey binds everything to your secret key. Together, they create a cipher where changing one input bit avalanches through the entire output.

Key Takeaway: AES uses four complementary operations per round—SubBytes, ShiftRows, MixColumns, and AddRoundKey—to create both confusion and diffusion, making the cipher resistant to cryptanalysis.