Learn Lesson 4 of 5 about 5 minutes
A new kind of hard problem
Grids of points, and why they resist both kinds of computer
The new lock is built on finding the nearest point of an enormous grid, which no known method does quickly on any kind of computer.
The replacement has to rest on a problem with no hidden rhythm for a quantum computer to find. The one the web has chosen is about regular grids of points, called lattices.
Picture a grid of dots that goes on for ever, and a point dropped somewhere among them. Which dot is nearest? If the grid is described by two short arrows at a healthy angle, the answer is easy: measure along each arrow and round to the nearest whole step. Now describe the very same grid with two long arrows that point almost the same way. Every dot can still be reached by whole steps, yet rounding now lands a long way from the right answer.
Try thisDrag the pink point, then switch to the long arrows and watch rounding miss.
…
- the dropped point
- where rounding lands
- the dot that is really nearest
That gap is a lock. The long arrows can be published for anyone to use. With them a sender can hide a message as a small nudge away from some lattice point. Only someone holding the short arrows can find that point again and read the nudge.
In two dimensions you could cheat by checking the dots around your wrong answer. The lattices in real use have hundreds of dimensions, and the number of neighbours grows faster than anything else in these lessons.
Try thisAdd dimensions and watch how many neighbours a single point has.
26
…
Real attacks are cleverer than checking neighbours. The best ones known still take time that grows exponentially with the dimension, on quantum computers as well as ordinary ones. The scheme the web uses is called ML-KEM. The US standards body NIST published it in 2024 as FIPS 203, after a public competition that began in 2016 and eliminated most of the other candidates. It builds its lattice out of equations with a little random noise added, which is the closest-point problem seen from another side. ML-KEM-768, the size browsers use, is rated at least as hard to break as a 192-bit AES key.
What to remember
- A lattice is a regular grid of points.
- With short arrows the nearest point is easy to find. With long ones it is hard, and that gap is the lock.
- Real lattices have hundreds of dimensions.
- The standard is called ML-KEM, published as FIPS 203.
Words used here: lattice, ML-KEM, post-quantum, quantum computer.