Learning with errors
The conceptSchool algebra becomes unbreakable once you add tiny mistakes
Learning with errors (LWE) asks you to find a secret list of numbers from equations that are each slightly wrong. Without the errors, school elimination solves them in seconds. With them, it is impractical once the secret is long.
All the maths wraps around at q, like a clock. With q = 17 and secret s = (3, 5), the public sees row (2, 4) and answer 10: the true 26, plus an error of 1, wrapped. Many such rows reveal almost nothing about s.
What it’s forBuilds the public key of LWE-based encryption from a secret and small random noise.
b = A·s + e (mod q)
- A
- a public grid of random numbers, one row per equation
- s
- the secret list of numbers, the private key
- e
- small random errors, e.g. between −2 and 2
- q
- the wrap-around modulus, e.g. 3329 in ML-KEM
What it givesPublic answers b that look random to anyone who does not know s.
- q = 17, s = (3, 5), row of A = (2, 4), e = 1
- 2·3 + 4·5 + 1 = 27
- 27 mod 17 = 10, so b = 10