Math 2.0

Information and communication theory, circuits Example

Diffie–Hellman key exchange

Builds on Primitive root modulo nDiscrete logarithmModular exponentiation

Example

The Diffie–Hellman key exchange is an example of public-key cryptography. Two parties, Alice and Bob, use it to agree on a secret key over a public channel. They agree in public on a prime pp and an integer gg, often a primitive root modulo pp. Alice chooses a secret integer aa and sends A=ga mod pA = g^a \bmod p. Bob chooses a secret integer bb and sends B=gb mod pB = g^b \bmod p. Alice computes Ba mod pB^a \bmod p, and Bob computes Ab mod pA^b \bmod p. Both are equal to gab mod pg^{ab} \bmod p, the shared secret. A small case: p=11p = 11, g=2g = 2, a=3a = 3 and b=4b = 4. Then A=8A = 8, B=16 mod 11=5B = 16 \bmod 11 = 5, and 53≡84≡4(mod11)5^3 \equiv 8^4 \equiv 4 \pmod{11}.

Remarks

An eavesdropper sees pp, gg, AA and BB. To find gabg^{ab}, a natural method is to compute a discrete logarithm, which is believed to be hard for large pp. The same method works in any finite cyclic group, for example the group of points of an elliptic curve. Whitfield Diffie and Martin Hellman published the method in 1976.

Reading path

To understand this page from the ground up, read these 11 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Divisibility definition
  2. Modular exponentiation concept
  3. Congruence modulo n definition
  4. Greatest common divisor definition
  5. Coprime integers definition
  6. Euler's totient function definition
  7. Euler's theorem statement
  8. Multiplicative order definition
  9. Primitive root modulo n definition
  10. Discrete logarithm definition
  11. Diffie–Hellman key exchange example

Further reading

  1. Web https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange, lead section
  2. Web https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange, Cryptographic explanation
About this page
Tag01TKKESHSB
URIm2://01TKKESHSB
Kindexample
WritingW2 usable
MSC94A60
Instance ofPublic-key cryptography
UsesPrimitive root modulo n, Discrete logarithm, Modular exponentiation
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W3

  • a person confirmed each agent-written section: rule P04 (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.