The Core Equation:
ML-KEM's security, and the entire Learning With Errors (LWE) family of cryptographic primitives, rests on a single equation. NIST's own draft standard describes it directly:
In the LWE problem, the input is a set of random noisy linear equations in some secret variables , and the task is to recover — the noise in the equations is such that standard algorithms like Gaussian elimination are intractable.
In ML-KEM's actual key generation, this takes the concrete form:
Per the FIPS 203 specification itself: "the secret key is a set of secret variables, while the encryption key is a collection of noisy linear equations in the secret variables ."
The Components
| Symbol | Name | Role | Public? |
|---|---|---|---|
| Public matrix | A uniformly random matrix, regenerated from a public seed | Yes | |
| Secret vector | Effectively the private key — the value an attacker wants to recover | No | |
| Error vector | Small random noise added to every equation | No | |
| Result vector | Published as the public key | Yes |
What Makes This Equation Special
The structure is deliberately unbalanced. The defender knows and because they chose them. An attacker sees only and . To recover , they must solve:
where "" masks the fact that each equation is wrong by an unknown, small amount. The attacker cannot tell how much of is signal versus noise.
Without the error term — if — the system collapses to , an exact linear system solvable by Gaussian elimination in polynomial time. No quantum computer required; a laptop does it. The error term is what elevates the problem from trivial to (presumed) intractable.
The Geometric Interpretation
The equations describe a lattice point in high-dimensional space, blurred by a small Gaussian ball of noise. The attacker must find the lattice point closest to a given target — the closest vector problem (CVP) — a geometric search problem with no known efficient algorithm, classical or quantum.
This geometric framing is also where the formal security guarantee comes from. The hardness of LWE is supported by reductions from worst-case lattice problems such as GapSVP and SIVP — both are geometric problems about finding short or nearby points in high-dimensional lattices, believed intractable for classical and quantum computers alike.
What Means
The modulus defines the size of the number space. All operations happen modulo , meaning values wrap around when they exceed . A large relative to the noise provides more room for the error to hide, strengthening security. The choice of is one of the key parameters that distinguishes ML-KEM's three security levels.