Differential Cryptanalysis
1. Core Idea: Track XOR Differences, Not Values
Differential cryptanalysis (Biham–Shamir, 1990) is a chosen-plaintext attack: feed pairs with fixed input difference and study output difference . Key insight: XOR differences propagate through linear parts (E, P, XOR-key cancel!) deterministically, and through S-boxes probabilistically — key bits cancel since .
ΔP → [E] → ΔE (deterministic) → XOR K cancels → S-box → ΔS with prob p
→ [P] → next round Δ (deterministic) → ... → ΔC with prob p1·p2·...
2. S-Box Difference Table (Worked Mini-Example)
For S-DES , input difference : try all 16 inputs , compute : output occurs 4/16, occurs 2/16, etc. — non-uniform! A uniform (ideal) S-box would give each exactly 4/16. Entries like are the signal. DES S-boxes were secretly designed to minimize max differential probability (-ish) — the classified criteria.
Toy trace: 2-round cipher, characteristic with : send pairs (rule: pairs for signal); majority-vote confirms characteristic; then guess last-round subkey bits: only the key making observed pairs fit the characteristic survives filtering.
3. Characteristics, Rounds, and Key Recovery
- Chain single-round differentials into an -round characteristic with probability (independence assumption, roughly holds).
- Attack -round cipher: use characteristic over first rounds, then peel the last round: for each candidate last-subkey, partially decrypt one round and check the characteristic's predicted value — wrong keys randomize, right key scores .
- Data needed chosen pairs; decays exponentially in rounds — hence round count is the defense.
4. Differential vs DES/AES (Numbers to Quote)
| Cipher | Best characteristic | Data needed | Verdict |
|---|---|---|---|
| 8-round DES | pairs — practical break | Reduced DES falls | |
| 15-round DES | chosen plaintexts | Worse than brute force? Comparable — resists | |
| Full 16-round DES | – | brute force | Practically secure vs differential |
| AES-128 | provably (4+ rounds, wide trail) | utterly infeasible | Immune by design (Wide Trail Strategy) |
AES's Wide Trail (Rijndael designers, also differential pioneers) bounds every 4-round differential below — differential attack needs more than the codebook. Design lesson: S-box max differential probability × branch number × rounds = security margin.
Exam Points
- Difference-propagation diagram + key-cancellation line — 2-mark opener.
- S-box non-uniformity + data rule with toy numbers — 5-mark core.
- Last-round peeling logic (right key scores , wrong keys random) — favourite 2–3 marker.
- Table: 8-round practical vs 16-round infeasible vs AES bound.