Lesson 11 / 11
Module 11Lesson 1⏱ 45 min study

Lesson 11: AES Block Ciphers & Quantum Key Exchange

Deconstruct the Advanced Encryption Standard (AES), Galois/Counter Mode (GCM), and quantum photon polarization with the BB84 protocol.

✦ Key Architectural Takeaways
  • •AES is a symmetric substitution-permutation block cipher operating on 128-bit state blocks with 128, 192, or 256-bit keys.
  • •Authenticated encryption modes like AES-GCM provide both confidentiality and cryptographic integrity verification.
  • •Quantum Key Distribution (QKD) relies on Heisenberg's uncertainty principle: any eavesdropper attempting to intercept polarized photons alters their state and is immediately detected.

1. The Advanced Encryption Standard (AES)

Selected by NIST in 2001 to replace DES, the Rijndael cipher (AES) is a symmetric substitution-permutation block cipher that encrypts 128-bit data blocks using key sizes of 128, 192, or 256 bits through repeated transformation rounds (10, 12, or 14 rounds respectively).

Each round transforms a 4 × 4 byte state matrix through four algebraic operations:

  1. 1SubBytes: Non-linear byte substitution using an S-Box lookup table, providing resistance against differential cryptanalysis.
  2. 2ShiftRows: Cyclic permutations shifting the rows of the state matrix by distinct byte offsets.
  3. 3MixColumns: Multiplies each column of the state matrix by a fixed polynomial in the Galois Field GF(2^8), diffusing single-bit modifications across the entire block.
  4. 4AddRoundKey: XORs the state matrix with subkeys generated from the master key via the Rijndael key schedule.
§

2. Authenticated Encryption: AES-GCM

Encrypting data alone (confidentiality) does not prevent an active attacker from modifying ciphertext in transit.

Modern secure network protocols (TLS 1.3, IPsec, SSH) require Authenticated Encryption with Associated Data (AEAD):

  • AES-GCM (Galois/Counter Mode): Combines counter mode encryption with universal hash authentication in the binary Galois field. It produces both ciphertext and an authentication tag, guaranteeing that any tampering or bit flips in transit are immediately detected before decryption.
§

3. Quantum Key Distribution (QKD) & The BB84 Protocol

While post-quantum cryptography develops mathematical algorithms resistant to quantum computers, Quantum Key Distribution (QKD) utilizes fundamental laws of quantum physics to exchange cryptographic keys with provable eavesdropping detection.

ARCHITECTURE DIAGRAMSYSTEM SCHEMATIC
Alice (Transmitter)                               Bob (Receiver)
[ Random Bits ]                                  [ Random Basis ]
      |                                                 |
      v                                                 v
[ Polarized Photons ] === (Quantum Channel) ===> [ Measurement ]
                                                        |
Alice <========= (Public Discussion) ==========> Bob
- Reconcile matching bases -> Sifted Key
- Compare test sample -> Detect eavesdropper if QBER > threshold

The BB84 Protocol Mechanics

  1. 1Alice generates random bits and encodes them onto single photons using one of two non-orthogonal polarization bases:
  • Rectilinear Basis ($+$): Horizontal (0° = 0) or Vertical (90° = 1).
  • Diagonal Basis ($×$): Diagonal Left (45° = 0) or Diagonal Right (135° = 1).
  1. 1Bob measures each incoming photon by selecting a measurement basis at random (+ or ×).
  2. 2Over an unencrypted public channel, Alice and Bob compare the sequence of measurement bases they chose (without revealing the measured values).
  3. 3Whenever their bases matched, their bit values are guaranteed to be identical, forming the shared Sifted Key.
  4. 4Eavesdropping Detection: According to the Heisenberg Uncertainty Principle and the Quantum No-Cloning Theorem, an eavesdropper (Eve) cannot measure photons without disturbing their quantum wave function. If Eve attempts to intercept photons, she inevitably introduces an approximate 25% error rate on matching-basis bits, allowing Alice and Bob to detect the intrusion with certainty!