Primitive Roots
Jim Hefferon · Elementary Number Theory · Ch. 7
A primitive root mod p is a number whose powers cycle through all nonzero residues. Every prime has one. Finding discrete logarithms (inverting this cycle) is believed to be hard, which is the foundation of Diffie-Hellman key exchange.
Order of an element
The order of a mod n is the smallest positive integer k such that a^k ≡ 1 (mod n). A primitive root mod p has order p - 1: its powers hit every nonzero residue exactly once.
Scheme
The discrete logarithm problem
Given g, h, p where g is a primitive root mod p, find x such that g^x ≡ h (mod p). Going forward (computing g^x) is fast. Going backward (finding x from h) is believed to be hard for large p. This asymmetry is the basis of Diffie-Hellman and related cryptosystems.
Scheme
Neighbors
- → Cryptography Ch.5 — Diffie-Hellman key exchange relies on the hardness of discrete logarithms
- 🔐 Cryptography Ch.5 — Diffie-Hellman key exchange is the discrete logarithm problem
- 🔗 Abstract Algebra Ch.1 — cyclic groups are the algebraic structure of primitive roots