Number Theory × Cryptography

Primes, Curves, Zeros

Why the Riemann Hypothesis and the hardness of modern cryptography are two ends of a single question.

The question, sharpened

Public-key cryptography rests on the belief that primes and the points on elliptic curves behave as if random. The Riemann Hypothesis and its extensions say this apparent randomness is a rigid hidden order, encoded in one family of objects called L-functions. In what precise sense are these the same problem — and how could deep progress toward proving the Extended Riemann Hypothesis expose the structure that today keeps RSA and elliptic-curve cryptography safe, without that progress being, by itself, an attack?

Modern cryptography is a bet that primes and the points on elliptic curves behave as if random — random enough that no shortcut can exist. The Riemann Hypothesis and its extensions are the statements that this randomness is really a rigid, hidden order, and that one kind of object governs it: the L-function. Cryptography needs the answer to be that no exploitable structure is hiding inside these objects. The study of L-functions is the serious attempt to prove the structure is total.

01 — The foundation

What cryptography actually stands on

Two families cover almost everything deployed today.

RSA rests on the difficulty of factoring a large number back into its two prime factors. Its deeper subject is the primes themselves: how they are distributed, and how hard they are to pull apart.

Elliptic-curve cryptography and Diffie–Hellman rest on the discrete logarithm problem: given points P and Q = k·P on an elliptic curve, recover the secret multiplier k. Its deeper subject is the group of points on an elliptic curve.

The crucial thing: neither of these is proven hard. There is no theorem saying factoring takes exponential time. Cryptography is a wager that the apparent chaos of primes and curve-points hides no usable pattern. Security is, quite literally, our ignorance of the structure.

02 — The mechanism

What the Riemann Hypothesis really says

Most people hear "primes look random." The Riemann Hypothesis says something stranger: the primes are not random. They are the output of a precise set of hidden frequencies, and every one of those frequencies sits on a single line.

Riemann's zeta function has special points called zeros. An exact result, the explicit formula, lets you reconstruct the entire pattern of where primes fall from nothing but the list of these zeros. It works like Fourier analysis: a complicated sound is a sum of pure tones. The primes are the sound, and the zeros of zeta are the pure tones — the harmonics.

The Riemann Hypothesis is the claim that every one of these harmonics has the same "volume": all the zeros lie on one vertical line, the critical line. If true, the primes are distributed as evenly as mathematically possible. No single tone dominates, so no single pattern sticks out. The hypothesis is not a statement about randomness. It is a statement about maximal, rigid regularity.

Re(s) = ½ zero zero zero
Each dot is a nontrivial zero. The Riemann Hypothesis says every one of them lands exactly on the critical line — none drift off it. That single alignment is what forces the primes into their most even possible distribution.
03 — The substrate

L-functions, the family underneath everything

Zeta is only the simplest member of a vast family called L-functions. Each one is a spectral fingerprint attached to some arithmetic object, and the Riemann Hypothesis has a version for each: the same claim that every zero lands on the critical line, made about a different object. Walking up the family is the natural way to see the whole picture.

Zeta points at all the primes at once. Its version is the original Riemann Hypothesis.

Dirichlet L-functions L(s, χ) sort primes into remainder classes — primes that leave remainder 1 when divided by 7, and so on. The hypothesis for these is the Generalized Riemann Hypothesis (GRH): primes are maximally even within each remainder class, not merely overall.

Dedekind zeta functions ζ_K(s) describe how ordinary primes split into prime ideals once you step from the integers into a larger number ring — a "number field," the setting where factoring and class groups live. The hypothesis for these is the Extended Riemann Hypothesis (ERH): that splitting is maximally regular.

Elliptic-curve and modular-form L-functions describe curves and their deep symmetries. The hypothesis for these has no cozy three-letter name; it is part of the general Riemann Hypothesis for automorphic L-functions.

So GRH and ERH are siblings rather than one statement: GRH is about Dirichlet L-functions and primes in progressions, ERH is about Dedekind zetas and how primes split. Their overlap is only partial. For an abelian number field the Dedekind zeta factors into a product of Dirichlet L-functions, so there GRH implies ERH; for a general field it factors into Artin L-functions instead, so neither contains the other. Every one of them is a special case of a single grand hypothesis — the Riemann Hypothesis for all automorphic L-functions. (The names drift in the older literature, so the reliable habit is to name the object a result depends on rather than the acronym.)

What binds the family together is the Langlands program, the deepest unifying vision in modern number theory. It conjectures, and in landmark cases such as Wiles' proof of Fermat proves, that these are not a zoo of unrelated animals but shadows of one underlying structure. An elliptic curve's L-function is a modular form's L-function. The fingerprint of a curve and the fingerprint of a pure-tone object turn out to be the same fingerprint seen from two sides. The objects under RSA (primes) and under ECC (elliptic curves) each carry an L-function, and all of them belong to this one family. That family is the substrate.

04 — The architecture

A tower, not a single hypothesis

Because the family splits into these storeys, no single hypothesis illuminates both RSA and ECC. The structure is a tower, and the Langlands program is the claim that the whole tower is one object seen at different heights.

Top storey · beyond ERH and GRH
Automorphic / modular L-functions
Governs elliptic curves — the ground ECC stands on
Middle storey · ERH
Dedekind zeta functions
Governs number fields — class groups, the number field sieve, factoring
Ground storey · GRH
Dirichlet L-functions
Governs primes in progressions — residues, witnesses, hiding places
RSA's analytic attack surface lives mostly on the GRH and ERH storeys. Elliptic-curve cryptography sits one storey higher, on L-functions that neither ERH nor GRH touches in their narrow senses.

Spelled out as a table of what depends on what:

Cryptography-relevant factL-function it really needs
Smallest quadratic non-residue / smallest witness below about (log n)² (Ankeny, Bach); Miller's deterministic primality test Dirichlet → GRH
Class-group and regulator computation, solving norm equations, the arithmetic beneath the number field sieve Dedekind → ERH
The elliptic-curve substrate: point counts, Sato–Tate, the Birch–Swinnerton-Dyer conjecture automorphic / modular
05 — The spectral clue

Why this feels like physics

In the 1970s Hugh Montgomery computed the spacing between zeta's zeros and showed it to Freeman Dyson, who recognized it at once: it matched the spacing of energy levels in the quantum systems he studied — the random-matrix statistics of heavy atomic nuclei.

This revived an old idea, due to Hilbert and Pólya: perhaps the zeros are the eigenvalues of some unknown operator, like the resonant frequencies of a hidden quantum drum whose vibrations are the primes. Nobody has found the drum. If someone did, it would be a direct mechanical window into the machinery that generates primes.

The kicker: the same random-matrix statistics also govern the zeros of elliptic-curve L-functions (Katz, Sarnak, and others). The spectra of the objects under RSA and under ECC appear to obey one universal law. Understand that law, and you understand the hidden order of both at once.

06 — The connection to cryptography

How this actually touches the ciphers

The honest story is more interesting than "the Riemann Hypothesis breaks RSA," which is false. The relationship shows up in concrete, already-visible ways.

a. The hypotheses remove hiding places, and cryptography lives in hiding places

Under GRH there is a theorem (Bach, building on Ankeny) that the smallest "special" element you are looking for — a quadratic non-residue, a generator — must appear below roughly 2(log n)². In plain terms: if the structure is maximally regular, nothing exotic can hide far out; the thing you want is forced to show up early. Security depends on secrets being able to hide. These hypotheses are, in part, theorems that certain things cannot hide.

b. Many algorithms are already conditionally fast

Miller's primality test runs in deterministic polynomial time assuming GRH (Miller, 1976; AKS later made it unconditional but slower). Computing class groups, regulators, and certain number-field equations have their best complexity bounds conditional on ERH. A proof would convert a stack of "fast if the hypothesis holds" algorithms into "fast, period," and sharpen the analysis of the subexponential attacks already in use, such as index calculus and the number field sieve. Those sieves already lean on analytic number theory: the distribution of smooth numbers they exploit is a fact of the same lineage.

c. ECC's own machinery is L-function machinery

Counting points on an elliptic curve — the Schoof–Elkies–Atkin algorithm, essential to generating secure curves — runs through modular structure, the exact bridge modularity describes. The number of points is read off the curve's L-function. The Sato–Tate law describing how point counts fluctuate is a statement about that L-function's spectrum. ECC is already built with the applied face of the top-storey substrate. The gap between using that structure to build curves and using it to break them is the gap that deep progress narrows.

d. The deepest point is epistemic

Cryptographic hardness is not a proven wall; it is fog. "We don't know a fast algorithm" is a statement about our ignorance of the structure. The Langlands and L-function program is the most concerted effort in mathematics to dispel exactly that fog — to describe the arithmetic of these objects completely. A full understanding would not be guaranteed to hand anyone an attack. It would remove the darkness in which we cannot currently tell whether an efficient attack even exists. The randomness that cryptography trusts is precisely what these hypotheses say is an illusion.

07 — The limits

What this does not mean

A proof of ERH or GRH would not, by itself, break RSA or ECC. There is no known theorem of the form "the Riemann Hypothesis implies fast factoring" or "implies fast elliptic discrete logarithms." Anyone claiming otherwise is overselling.

The risk lives in the methods, not the statement. A proof would almost certainly require a genuinely new handle on the arithmetic substrate — plausibly the hidden operator of the spectral picture, or a major Langlands advance. That handle is the thing with unpredictable downstream power. History rhymes here: the techniques invented to prove deep results, such as modularity and étale cohomology, reshaped entire fields and enabled things their inventors never aimed at.

The concrete, known break of RSA and ECC is Shor's quantum algorithm, and it has nothing to do with the Riemann Hypothesis — it is a different mechanism, period-finding on a quantum computer. The Riemann Hypothesis is the classical, structural risk vector: not a machine that brute-forces the hidden order, but a human understanding of it so complete that shortcuts become visible.

08 — Postscript · December 2026

The Alpöge–Claude proof, and what it moves

This essay was written as RH and GRH stood open. In November 2026 that changed. Levent Alpöge, working with Claude, released a proof of RH for the zeta function and GRH for Dirichlet L-functions — not as a paper but as a formal development in the Lean proof assistant, together with a short note. It is machine-verified to an unusually high bar: accepted by two independent proof kernels, its statements checked to match Mathlib's own definitions of the hypotheses, and depending only on Lean's three standard axioms. What it does not yet have is a refereed, humanly-absorbed account; several leading number theorists are withholding mathematical judgment while they digest it.

The method is the striking part. Read at the source level, it is not an analytic argument about zeros. It ports the function-field proof — Weil and Stepanov's bound on points of curves over finite fields — to the integers. It reduces the hypothesis to a one-sided bound on a sum over primes that stay inert in an imaginary quadratic field, and controls that bound with a chain of theta lifts between automorphic forms on unitary groups, closed off using the heights of arithmetic geometry and the modularity-lifting machinery (Selmer groups, patching, Galois representations) that underlies the modularity of elliptic curves. Terence Tao's reported description fits what the code shows: it uses the full power of the Langlands program and arithmetic geometry.

What it moves on the tower

The ground and middle storeys shift. GRH for every Dirichlet character is now proved, and because the Dedekind zeta of an abelian number field factors into a product of Dirichlet L-functions, ERH for abelian fields follows immediately, with no new work. The non-abelian part of ERH and the whole automorphic top storey do not: reaching them means re-proving the decisive bound for higher-degree L-functions, which is unproved. But the method's own materials — theta lifts, unitary groups, Galois representations — are the materials of the top storey itself. Of every route to RH anyone has tried, this is the one whose machinery already lives in the automorphic world, which makes it the best-positioned starting point toward the Grand Riemann Hypothesis even though that remains a research program rather than a corollary.

Where it touches the locks

No theorem here computes a factoring or a discrete logarithm, and none was expected to. The relevance is structural, and the code makes it concrete rather than metaphorical. The function-field bound the proof borrows is the same Hasse–Weil point-count that elliptic-curve cryptography was built on; that has been settled mathematics for decades and is not new exposure. What is new is that the engine now operates directly in the Galois-representation and CM substrate where elliptic-curve L-functions and imaginary-quadratic class groups live — the terrain this essay named as where a structural attack would be sought, now occupied by a working method rather than a hope. Its concrete consequences are sharp but modest: conditional algorithms (small-witness bounds, deterministic primality, class-group computation) become unconditional, tightening rigor and the security accounting of class-group schemes without toppling a primitive.

The deeper shift is in the nature of the thing. The structural knowledge this essay described as the terrain of a future break is no longer only hypothetical: a piece of it now exists as a verified object, discovered with AI assistance and not yet understood by the people who would extend it. That gap — between what can be checked and what can be read — is itself the new variable.

The mental model

One crystal, many windows

Picture every cryptographic primitive as a locked box, and the lock as the claim that the contents look random. The Riemann Hypothesis, its extensions, and Langlands are the slow, century-long proof that the contents were never random — they were a crystal, the same crystal, seen through different windows. Nobody has yet learned to read the crystal well enough to pick the locks. Cryptography is the bet that nobody will. The study of L-functions is the most serious attempt to learn to read it, which is why, even though a proof would not be a break, the mathematics around it is the terrain on which a future break would most naturally be found.