When the curve
shatters
The elliptic curve you saw drawn as a smooth loop doesn't live on paper when it does real work. It lives over a finite field — a world with only finitely many numbers, where the curve becomes a scatter of dots. This is where the discrete logarithm becomes hard.
A field with no infinity
A finite field 𝔽ₚ is arithmetic modulo a prime p: the only numbers are 0, 1, …, p−1, and everything wraps around. Add, subtract, multiply, and — crucially — divide, all staying inside that finite set. Every nonzero element has an inverse, which is what makes it a field rather than just a ring.
The same elliptic-curve equation, y² = x³ + ax + b, now asks: for which pairs (x, y) in this finite world does the equation hold? The answer is a finite set of points — no smooth curve, just dots.
The curve, over 𝔽ₚ
Below is y² = x³ + 2x + 2 over 𝔽ₚ. Change p and watch the point set redraw. Notice the vertical symmetry — for every point (x, y) there's a mirror (x, p−y) — the finite-field ghost of the real curve's reflection.
Adding points in the dark
The chord-and-tangent rule still works — but algebraically, not geometrically. Pick a starting point G and repeatedly add it to itself. Over the reals you could watch it slide along the curve. Here it jumps. Press step and follow G, 2G, 3G… as they scatter with no visible pattern.
This is the ground floor of ECC
Real elliptic-curve cryptography uses this exact machinery over a prime with 256 bits — a field with more elements than there are atoms in the observable universe. Your ECDH shared secret is some kG; your ECDSA signature proves you know a k without revealing it. This exhibit is why it all works.
AES uses a finite field too, but a different kind of one, and the distinction is worth drawing. This exhibit builds GF(p) — arithmetic modulo a prime. The AES S-box lives in GF(2⁸), an extension field of 256 elements whose members are polynomials, added bitwise and multiplied modulo a fixed irreducible polynomial. Same guarantee — every nonzero element has an inverse — reached by different construction, and the S-box takes that inverse and then applies an affine map on top. The polynomial machinery is next door in Polynomial Rings.
Companion: The Ground Beneath the Curve shows the smooth real-number version and the deep theory of why these curves are so well-behaved.