Cryptography & Communication
Lattice-Based Cryptography
A family of post-quantum encryption and signature schemes based on the hardness of problems about points in high-dimensional lattices.
Definition
Lattice-based cryptography builds encryption and digital signatures from mathematical problems about lattices, which are regular grids of points in many dimensions. Problems such as learning with errors are believed to be hard even for quantum computers, and the first NIST post-quantum standards, ML-KEM and ML-DSA, are lattice-based.
In depth
A tiny version of learning with errors shows the idea. Take modulus q = 17 and secret s = (5, 11, 2) as in the toy example in our post-quantum lesson. Each equation gives b = a·s + e mod 17 for a random vector a and a small error e such as −1, 0 or +1. With three equations and no errors you would solve for s directly. With the errors you cannot simply solve, and with hundreds of dimensions and many equations the problem becomes hard in practice.
The trade-off is size. Lattice-based keys and signatures are larger than those of RSA or elliptic-curve schemes: ML-KEM public keys are around a thousand bytes and signatures in ML-DSA run to a few kilobytes, according to the NIST and Open Quantum Safe documents opened for our post-quantum lesson, compared with a few dozen bytes for an elliptic-curve key. That affects network handshakes and certificates.
NIST published the first three finalised post-quantum standards on 13 August 2024, including ML-KEM (FIPS 203) and ML-DSA (FIPS 204), and selected HQC, a code-based scheme, as a fifth algorithm in March 2025. Migration planning guidance sets dates for deprecating RSA and elliptic-curve algorithms.
Technical Definition
The learning with errors problem asks to recover a secret vector s given many noisy linear equations b = As + e mod q, where e is small noise. Without the noise the problem is simple linear algebra, and with the noise it is believed to be hard. Schemes such as ML-KEM, standardised as FIPS 203, use structured variants over polynomial rings to reduce key sizes. No efficient quantum algorithm is known for these problems.
Visual Explanation: An Analogy
Imagine a huge grid of dots in a space with hundreds of directions, and someone tells you that a point is near, but not exactly on, a grid point, and asks which grid point is nearest. In two dimensions that is easy. In several hundred dimensions it appears to be extraordinarily hard, and that difficulty is the lock.
Key facts
| Item | Detail |
|---|---|
| Core problem | Learning with errors and related lattice problems |
| NIST standards | ML-KEM (FIPS 203), ML-DSA (FIPS 204) |
| Trade-off | Larger keys and signatures than RSA or elliptic curves |
| Quantum attack | No efficient algorithm known |
Where the idea comes from
The learning with errors problem was introduced by Oded Regev in 2005. NIST began its post-quantum standardisation process in 2016 and published the first standards in 2024.
Real-World Use Cases
- Key establishment with ML-KEM in web and messaging protocols
- Digital signatures with ML-DSA
- Fully homomorphic encryption schemes
How it differs from related ideas
- Lattice schemes rely on different hardness assumptions from RSA, which Shor's algorithm breaks.
- Hash-based signatures rely only on hash functions and are larger but conservative.
Common Misconceptions
- Lattice-based schemes are not proven secure against all quantum attacks. They resist all known ones, and cryptographers continue to study them.
- They are not quantum technology. They run on ordinary computers.
Frequently asked questions
Is lattice cryptography safe from quantum computers?
No known quantum algorithm breaks it, but absolute security is not proven.
What is ML-KEM?
A lattice-based key-encapsulation standard, FIPS 203.
Do I need a quantum computer to use it?
No. It runs on ordinary hardware.
Related Terms
- Post-Quantum Cryptography
- Shor's Algorithm
- Harvest Now, Decrypt Later
- Quantum Key Distribution
- BB84 Protocol
- Trusted Node