Skip to content
Mohit Narayan — Mathematics & Research
All Articles
Cryptography·2 min read

An Introduction to Lattices in Post-Quantum Cryptography

Exploring integer lattices, the Shortest Vector Problem, and why noisy linear equations form the backbone of modern post-quantum standards.

Written by Mohit Narayan
Share:XLinkedIn

Why Look Beyond RSA and Elliptic Curves?

For decades, public-key cryptography has relied on problems like factoring large integers N=pqN = pq or computing discrete logarithms over finite fields and elliptic curves. In 1994, Peter Shor demonstrated that a sufficiently large quantum computer could solve both problems efficiently via quantum period-finding.

To prepare communications for a post-quantum era, cryptographers turned toward mathematical structures where no polynomial-time quantum algorithm is known to break the underlying hardness assumptions. One of the strongest candidates is lattice-based cryptography.

What Is a Lattice?

Formally, given mm linearly independent vectors b1,b2,…,bm∈Rn\mathbf{b}_1, \mathbf{b}_2, \dots, \mathbf{b}_m \in \mathbb{R}^n, the lattice Λ\Lambda generated by the basis matrix B=[b1∣⋯∣bm]\mathbf{B} = [\mathbf{b}_1 \mid \dots \mid \mathbf{b}_m] is the set of all integer linear combinations:

Λ(B)={Bz=∑i=1mzibi  |  z∈Zm}\Lambda(\mathbf{B}) = \left\{ \mathbf{B}\mathbf{z} = \sum_{i=1}^{m} z_i \mathbf{b}_i \;\middle|\; \mathbf{z} \in \mathbb{Z}^m \right\}

Unlike a vector space over R\mathbb{R}, where scaling is continuous, a lattice is a discrete subgroup of Rn\mathbb{R}^n. Every lattice in dimension n≥2n \ge 2 has infinitely many different bases—some "good" (nearly orthogonal, short vectors) and many "bad" (skewed, very long vectors).

The Shortest Vector Problem (SVP)

The foundational hard problem on lattices is the Shortest Vector Problem (SVP): given an arbitrary basis B\mathbf{B} for a lattice Λ\Lambda, find a nonzero vector v∈Λ∖{0}\mathbf{v} \in \Lambda \setminus \{\mathbf{0}\} minimizing the Euclidean norm ∥v∥2\|\mathbf{v}\|_2.

In two dimensions, Gauss's lattice reduction algorithm solves SVP effortlessly. As the dimension nn grows into the hundreds, however, finding short vectors—or even approximating the shortest vector within small polynomial factors—requires exponential time in the best known classical and quantum algorithms.

From Geometry to Learning With Errors (LWE)

In 2005, Oded Regev introduced the Learning With Errors (LWE) problem, connecting worst-case lattice problems to an algebraic formulation ideally suited for encryption and key exchange.

In LWE, we fix a modulus qq, a dimension nn, and an error distribution χ\chi over Zq\mathbb{Z}_q producing small noise ee. Given pairs (ai,bi)(\mathbf{a}_i, b_i) where ai∈Zqn\mathbf{a}_i \in \mathbb{Z}_q^n is uniform and:

bi≡⟨ai,s⟩+ei(modq)b_i \equiv \langle \mathbf{a}_i, \mathbf{s} \rangle + e_i \pmod{q}

the task is to recover the secret vector s∈Zqn\mathbf{s} \in \mathbb{Z}_q^n. Without the error terms eie_i, Gaussian elimination solves the system in O(n3)O(n^3) operations. Adding small random noise destroys exact linear algebra—turning an easy system into a problem conjectured to be intractable even for quantum computers.

Connection to NIST PQC Standards

Modern standardized schemes—such as ML-KEM (FIPS 203) for key encapsulation and ML-DSA (FIPS 204) for digital signatures—build on Module-LWE, replacing unstructured vectors with modules over polynomial rings Rq=Zq[X]/(Xn+1)R_q = \mathbb{Z}_q[X]/(X^n + 1). This algebraic structure enables fast computation using the Number Theoretic Transform (NTT) while keeping key sizes practical for real-world protocols.

#Post-Quantum Cryptography#Lattices#Number Theory
Share:XLinkedIn