CYS406 · Chapter 8 · Annotated SlidesDiffie–Hellman Key Exchange
Original
Overview

Diffie–Hellman Key Exchange

Primitive roots, Diffie–Hellman setup and the key exchange with a worked example, key-exchange protocols, and the man-in-the-middle attack on unauthenticated Diffie–Hellman.

How to read this page

Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.

All 12 slides
  1. 1 Slide 1
  2. 2 Diffie-Hellman Key Exchange
  3. 3 Diffie-Hellman Key Exchange
  4. 4 Primitive Root
  5. 5 Diffie-Hellman Setup
  6. 6 Diffie-Hellman Key Exchange
  7. 7 Diffie-Hellman Key Exchange
  8. 8 Diffie-Hellman Example
  9. 9 Slide 9
  10. 10 Key Exchange Protocols
  11. 11 Man-in-the-Middle Attack
  12. 12 Man-in-the-Middle Attack
Slide 1 / 12

Slide 1

Slide 1: Slide 1
Slide 2 / 12

Diffie-Hellman Key Exchange

Slide 2: Diffie-Hellman Key Exchange

Notes

  1. Diffie–Hellman lets two parties agree on a shared secret over an insecure channel. It exchanges a KEY; it doesn’t encrypt messages.

Exam angle

PredictionQ1

Diffie–Hellman is used for:

Slide 3 / 12

Diffie-Hellman Key Exchange

Slide 3: Diffie-Hellman Key Exchange
Slide 4 / 12

Primitive Root

Slide 4: Primitive Root

Notes

  1. A primitive root g of prime q: its powers g¹ … g^(q−1) mod q produce every number 1 … q−1.

Slide 5 / 12

Diffie-Hellman Setup

Slide 5: Diffie-Hellman Setup
Slide 6 / 12

Diffie-Hellman Key Exchange

Slide 6: Diffie-Hellman Key Exchange

Exam angle

PredictionQ1

q = 23, g = 5, a = 6, b = 15. Find A, B and the shared key.

Compare with the model answer

A = 5⁶ mod 23 = 8. B = 5¹⁵ mod 23 = 19. K = 19⁶ mod 23 = 8¹⁵ mod 23 = 2.

Slide 7 / 12

Diffie-Hellman Key Exchange

Slide 7: Diffie-Hellman Key Exchange
Slide 8 / 12

Diffie-Hellman Example

Slide 8: Diffie-Hellman Example

Notes

  1. Security rests on the discrete logarithm problem: from gᵃ mod q it is infeasible to find a.

Slide 9 / 12

Slide 9

Slide 9: Slide 9
Slide 10 / 12

Key Exchange Protocols

Slide 10: Key Exchange Protocols
Slide 11 / 12

Man-in-the-Middle Attack

Slide 11: Man-in-the-Middle Attack

Notes

  1. MITM: Darth swaps in his own values and shares one key with Alice and another with Bob. Plain DH has no authentication; fix with signatures or certificates.

  2. Trap Diffie–Hellman alone is vulnerable to man-in-the-middle because the public values are not authenticated.

Exam angle

PredictionQ1

Unauthenticated Diffie–Hellman is vulnerable to:

Slide 12 / 12

Man-in-the-Middle Attack

Slide 12: Man-in-the-Middle Attack