Skip to main content
Presentation 8 of 16

Idea of Asymmetric Cryptography and Diffie-Hellman Key Exchange

Is it possible to obtain a shared secret over an open channel without handing the key to anyone?

Slides: 24 PDF · 1.1 MB
Loading slides…

Keyboard: Left arrow Right arrow Slides; F — fullscreen

Summary

Students study the key-distribution problem of symmetric systems (the n(n−1)/2 explosion of keys and the 'first-key paradox'), the 1976 public-key idea, one-way and trapdoor functions, and the general model of an asymmetric system. The Diffie-Hellman protocol is built up with a paint-mixing analogy and the worked example p = 23, g = 5, and its security is tied to the discrete logarithm problem (DLP, p of at least 2048 bits). The lecture then covers the man-in-the-middle attack and its defences (digital signatures, certificates/PKI), ephemeral DH with forward secrecy (TLS 1.3), and a Python simulation with pow(g, a, p).

Key terms

Diffie-Hellman diskret logarifm (DLP) bir tomonlama funksiya yashirin eshik (trapdoor) ochiq kalit K = g^ab mod p MITM raqamli imzo ephemeral DH (DHE) forward secrecy TLS 1.3 X25519

Lecture outline

  1. The key-distribution problem — the n(n−1)/2 explosion
  2. 1976: the birth of the public-key idea
  3. One-way and trapdoor functions
  4. The general model of an asymmetric system
  5. Diffie-Hellman: the paint-mixing analogy
  6. The protocol mathematics and a full numeric example
  7. The discrete logarithm — the foundation of security
  8. The man-in-the-middle attack and authentication
  9. Ephemeral DH and forward secrecy
  10. Python simulation and summary
Related lesson Asymmetric Cryptography: RSA, Diffie-Hellman & ECC