3. Lattices

Draft

One grid, many descriptions

A lattice is a regular grid of points in space: every point reached by adding whole-number multiples of a few fixed vectors. Those generating vectors form a basis of the grid, and a single grid admits endlessly many bases, some short and nearly perpendicular, others long and nearly parallel. That geometric difference decides what a holder of the basis can compute. A short, nearly perpendicular basis tiles space with plump, box-like cells around each grid point, so finding the lattice point nearest to an off-grid target is simply a matter of expressing the target in that basis and rounding its coordinates. A long, nearly parallel basis of the very same grid stretches those cells into needle-thin slivers, so coordinate rounding sends the same target to a distant grid point. For a general lattice with no special symmetry, every known method for turning a skewed basis back into a short one pays for each gain in quality with running time that grows exponentially in the dimension. A task that is easy under a private description of an object and hard under a public one is what a public key is made of (Section 1), and in a general lattice no one has found a hidden period of the kind that the quantum algorithm of Section 2 exploits.

plane   one lattice (dots) and two of its bases, both drawn from the origin
        the basis in hand   b1 = (5, 4)    b2 = (7, 7)     sides 6.40 and 9.90, 6.3 degrees apart
        the shortest basis       (−1, 2)        (−3, −1)   sides 2.24 and 3.16, 81.9 degrees apart
        the cell            area 7 for both; how skewed (the sides multiplied, over the area): 9.06 and 1.01
move    add a whole multiple of one vector to the other: the points stay, the cell keeps its area
        [skew] makes random moves of this kind; [reduce] finds the shortest basis again (from here: 2 moves, 2 swaps);
        a tip can be dragged, and stops only where the lattice is kept
strip   the same moves on a basis of 768 vectors of the integer grid: after 3,072 moves the longest is 31.0
        long and the lengths multiply to a number of 596 digits; the volume of the cell is still 1
(the live figure needs JavaScript; it loads no data)
One lattice, many bases. Green: the basis in hand; ink arrows: the shortest basis of the same lattice; the washes are their cells, equal in area. Drag a green tip (it stops only where the lattice is kept), press skew for random moves, reduce for Gauss's reduction. The strip makes the same kind of move on 768 vectors, as many as the secret of ML-KEM-768 has coordinates: a bar to a vector, its length; there reduce only takes the recorded moves back. All of it is exact arithmetic on whole numbers, done in the page.

The two pairs of arrows in the figure, \((5, 4)\) with \((7, 7)\) and \((-1, 2)\) with \((-3, -1)\), reach the exact same integer grid points, and the fundamental parallelograms they span have the same area, 7. A lattice has no canonical basis of its own: each basis is one coordinate system for it among infinitely many. Writing the basis vectors as the columns of a matrix \(B\) turns whole-number combinations into matrix-vector products \(Bz\), identifies the cell volume with \(\lvert \det B \rvert\), and characterizes when two matrices describe the same grid.

Definition 3.1.1 (lattice, basis, determinant). Let \(b_1, \dots, b_n \in \mathbb R^n\) be linearly independent, and let \(B\) be the matrix whose columns they are. The lattice with basis \(B\) is

\[\mathcal L(B) = \{\, B z \;:\; z \in \mathbb Z^n \,\} .\]

The cell of the basis is the set of points \(B x\) with every coordinate of \(x\) in \([0, 1)\); its volume (in the plane, its area), \(\lvert \det B \rvert\), is the determinant of the lattice. Two bases \(B\) and \(B^{\prime}\) span the same lattice exactly when \(B^{\prime} = B U\) for a matrix \(U\) of whole numbers with \(\det U = \pm 1\).

An integer matrix of determinant \(\pm 1\) is called unimodular, and that condition explains why the determinant belongs to the lattice rather than to any single basis: when \(B^{\prime} = B U\), their cell volumes agree because \(\lvert \det B^{\prime} \rvert = \lvert \det B \rvert \lvert \det U \rvert = \lvert \det B \rvert\). To see why \(\det U\) must be \(\pm 1\), note that if \(B\) and \(B^{\prime}\) span the same grid, each basis is a whole-number combination of the other, \(B^{\prime} = B U\) and \(B = B^{\prime} V\); since the columns of \(B\) are linearly independent, \(U V\) is the identity matrix, and two whole-number determinants with product 1 must both be \(\pm 1\). Conversely, dividing the integer cofactor matrix of \(U\) by \(\det U = \pm 1\) produces an integer inverse \(U^{-1}\), so \(B\) and \(B U\) generate the exact same lattice points.

Example 3.1.2 (two bases of one lattice). For the planar lattice drawn in the figure, stack the short basis vectors as the columns of \(R\) and the skewed basis vectors as the columns of \(B\); a unimodular matrix \(U\) carries one basis to the other:

\[R = \begin{pmatrix} -1 & -3 \\ 2 & -1 \end{pmatrix}, \qquad B = \begin{pmatrix} 5 & 7 \\ 4 & 7 \end{pmatrix} = R\,U, \qquad U = \begin{pmatrix} 1 & 2 \\ -2 & -3 \end{pmatrix} .\]

Both \(R\) and \(B\) have determinant 7, and \(\det U = 1\). The columns of \(R\) have lengths 2.24 and 3.16 and meet at 81.9 degrees; those of \(B\) have lengths 6.40 and 9.90 and squeeze to 6.3 degrees apart. A single ratio captures how skewed a basis is: the product of its column lengths divided by \(\lvert \det B \rvert\), which compares the area the vectors would span if perpendicular against the cell area they actually span. That ratio is 1 for perpendicular vectors and grows as the angle collapses: 1.01 for \(R\), versus 9.06 for \(B\). ◁

Every unimodular matrix \(U\) factors into three elementary steps: adding a whole multiple of one basis vector to another, swapping two vectors, or negating one. Geometrically, adding a multiple of one vector to another shears the cell by sliding one arrow's tip along a line parallel to the other, preserving both base and height, while swapping or negating vectors flips at most the sign of the determinant. Scrambling a basis with such shears is effortless in any dimension. The strip of 768 bars in the figure applies them to 768 vectors, matching the number of secret coordinates in ML-KEM-768, the middle parameter set of the standard ML-KEM (Kyber) dissected in Section 6. Because its lattice is the plain integer grid \(\mathbb Z^{768}\), whose best basis is the 768 unit coordinate vectors, the distortion can be read off directly: after 3,072 additions or subtractions of one vector to another, the longest vector reaches length 31.0 and the product of the 768 lengths, which began at 1, swells to a 596-digit number, while the cell volume remains 1.

Undoing those shears without a record of them is another matter. On the 768-vector strip the figure's reduce button merely replays its recorded list of moves backward, and for the standard integer grid everyone knows the unit vectors anyway. Start instead from a short basis that only its creator knows, scramble it by a secret unimodular matrix, and publish only the resulting long basis: anyone handed that public basis without the move list faces the reduction problem of Sections 3.4 and 3.5. That asymmetry, cheap to scramble and hard to unskew, has the one-way shape Section 1 asked for, and a survey of the field draws the parallel with RSA (Section 1.4): choosing a short basis and skewing it resembles choosing two primes and multiplying them.C. Peikert, "A decade of lattice cryptography", Foundations and Trends in Theoretical Computer Science 10(4), 2016 (ePrint 2015/939), Section 3.3, footnote 2.

Two problems, easy in the plane

Lattice cryptography rests on two geometric questions posed to someone who holds only an arbitrary, typically skewed basis \(B\).

Two problems on one latticethe lattice of Section 3.1; a row to a problem: what is given, what is asked, one instance

  1. 3.4shortest vector (SVP) given: a basis

    Find a shortest point of the lattice other than the origin, or one at most a factor gamma longer. Reduction algorithms answer the approximate form.

    answer: (−1, 2)

    length 2.24

  2. 3.3closest vector (CVP) given: a basis and a target

    Find the lattice point nearest to a target, which may lie anywhere in space.

    target (9.87, 2.50)

    answer: (9, 3), 1.00 away

  3. 3.3bounded-distance decoding given: a basis and a target promised to be close

    The closest vector problem under a promise: the target is a lattice point plus an error shorter than half the shortest vector, so the answer is unique. Decrypting poses this one.

green: the form a ciphertext poses

The first question asks for the grid's minimum spacing: find an integer combination of the long columns of \(B\) in which they nearly cancel out to produce a shortest nonzero lattice vector, or at least one within a factor \(\gamma\) of that shortest length.

Definition 3.2.1 (the shortest vector problem). Let \(\lambda_1(\mathcal L)\) be the length of a shortest nonzero vector of the lattice \(\mathcal L\). Given a basis of \(\mathcal L\), the shortest vector problem (SVP) asks for a lattice vector of length \(\lambda_1\). Its approximate form with factor \(\gamma \ge 1\) asks for a nonzero lattice vector of length at most \(\gamma \lambda_1\).

Where SVP measures steps from the origin to another grid point, encryption perturbs a lattice point \(v\) by a small noise vector \(e\) to produce an off-grid target \(t = v + e\). Recovering \(v\) from \(t\) poses the second question: find the grid point nearest to an arbitrary point in space, either unconditionally or under the promise that the noise is smaller than half the minimum distance \(\lambda_1\) between lattice points.

Definition 3.2.2 (the closest vector problem, bounded-distance decoding). Given a basis of \(\mathcal L\) and a target \(t \in \mathbb R^n\), the closest vector problem (CVP) asks for a lattice vector \(v\) that minimizes \(\lVert t - v \rVert\). Bounded-distance decoding is the same problem under a promise: \(t = v + e\) for a lattice vector \(v\) and an error with \(\lVert e \rVert < \lambda_1 / 2\). Under the promise the answer is unique, because two lattice vectors within \(\lambda_1 / 2\) of \(t\) would differ by a nonzero lattice vector shorter than \(\lambda_1\).

In the planar lattice of Section 3.1, the shortest nonzero vectors are \(\pm(-1, 2)\), giving \(\lambda_1 = \sqrt 5 \approx 2.24\); for the target \((9.87, 2.50)\), the closest lattice point is \((9, 3)\) at distance 1.00, well inside the unique-decoding radius \(\lambda_1 / 2 \approx 1.12\).

In two dimensions both problems are easy in the strongest sense: a few lines of arithmetic solve them exactly for any basis, however skewed. Gauss's reduction (Section 3.4) turns any planar basis into a shortest one in a handful of steps, and once a short basis is in hand, the grid point nearest to a target is among the few integer neighbors of its rounded coordinates. Nothing in the plane can be hidden behind a bad basis.

In \(n\) dimensions the landscape splits into three regimes according to the approximation factor \(\gamma\). At exponential factors \(\gamma = 2^{O(n)}\), a fast algorithm called LLL (Section 3.4) runs in polynomial time.D. Micciancio and O. Regev, "Lattice-based cryptography", in Post-Quantum Cryptography (Bernstein, Buchmann and Dahmen, eds.), Springer, 2009, Section 1. At the exact end \(\gamma = 1\), every known algorithm that finds a shortest vector of a general lattice takes time at least exponential in \(n\). Lattice cryptography lives in the middle regime, at factors \(\gamma\) polynomial in \(n\): here a family of block-reduction algorithms interpolates smoothly between LLL and exact search, paying steeper running times for tighter factors, and at the polynomial factors schemes rely on, no known method beats exponential time. None of this is a theorem proving that fast algorithms cannot exist; it is the empirical state of the art after more than forty years of work on basis reduction, measured directly in Section 3.5.

Remark 3.2.3 (NP-hardness is not the argument). Exact CVP is NP-hard: at least as hard as every problem whose solutions can be verified in polynomial time. Resting cryptographic security on that theorem is tempting and wrong, for two independent reasons. First, NP-hardness speaks only of worst-case instances, whereas a cryptosystem poses only the specific instances generated by its own key-generation algorithm; Section 3.6 shows what that gap cost the first lattice trapdoor. Second, NP-hardness applies to exact answers or tiny approximation factors, whereas at the polynomial factors arising in noisy-equation schemes a close relative of SVP is "likely not NP-hard".S. Chatterjee, N. Koblitz, A. Menezes and P. Sarkar, "Another look at tightness II: practical issues in cryptography", Mycrypt 2016, LNCS 10311 (ePrint 2016/360), Section 6.4. The relative is the problem of finding \(n\) short independent vectors. Confidence in lattice schemes rests on the measured cost of reduction algorithms, not on NP-completeness.

A good basis decodes by rounding

Faced with an off-grid target \(t\), the simplest candidate for CVP is Babai's rounding procedure: express \(t\) in the coordinates of the basis at hand, round each coordinate independently to the nearest integer, and output the resulting lattice point. Whether that naive rounding recovers the nearest lattice point or misses by several grid spacings depends entirely on the shape of the basis's cell.

plane   one lattice (dots), two of its bases, and the lattice point (9, 3), ringed
        good basis  (−1, 2), (−3, −1)   sides 2.24 and 3.16       bad basis  (5, 4), (7, 7)   sides 6.40 and 9.90
        rounding in a basis: write the target in the basis, round both coordinates to whole numbers
        target (9.87, 2.50): the ringed point plus an error 1.00 long
          good basis   −0.34, −3.18 → 0, −3    answers (9, 3), the nearest point, 1.00 away
          bad basis     7.37, −3.85 → 7, −4    answers (7, 0), 3.80 away
tiles   the targets a basis sends to the ringed point: for the good basis a cell close to the true cell of
        nearest targets (6.6% of it is wrong), for the bad basis a long sliver (64.9% of it is wrong, hatched)
count   of 1,000 random errors of each length added to a lattice point, how many each basis removes
        the plane         error 1.00 long: good 1,000, bad 248   (all removed up to 1.10 and up to 0.35)
        200 dimensions    error as long as a good vector: good 1,000, bad 0
                          (the bad basis, the good one after 800 random moves, removes none from half that length)
(the live figure needs JavaScript; it loads no data and counts the 200 dimensions in the page)
The closest vector, by rounding. Green: the answer of the good basis; ink line: the answer of the bad basis for the same target, the ringed lattice point plus an error. Wash: the targets nearer to the ringed point than to any other; outlines: the tile each basis sends to it, hatched where that is wrong. Drag the target, set the error's length, draw a new error. The charts count how many of 1,000 random errors of each length each basis removes, in the plane and in 200 dimensions (bad basis there: the good one after 800 random moves), all in the page.

Writing \(t = v + e\) in the basis \(B\) means multiplying by \(B^{-1}\): the lattice point \(v = B z\) becomes the integer vector \(z\), and the error \(e\) becomes \(B^{-1} e\). Coordinate-by-coordinate rounding recovers \(z\) precisely when no coordinate of \(B^{-1} e\) reaches \(\tfrac12\) in size.

Proposition 3.3.1 (when rounding decodes). Let \(t = v + e\) with \(v \in \mathcal L(B)\). Rounding in the basis \(B\) returns

\[B \lfloor B^{-1} t \rceil ,\]

where \(\lfloor \cdot \rceil\) rounds each coordinate to the nearest whole number, a half going up, and this is \(v\) exactly when every coordinate of \(B^{-1} e\) lies in \([-\tfrac12, \tfrac12)\): when the error lies in the cell of the basis, centered on the origin.

Proof. Write \(v = B z\) with \(z \in \mathbb Z^n\). Then \(B^{-1} t = z + B^{-1} e\), and rounding returns the whole-number vector \(z\) if and only if each coordinate of \(B^{-1} e\) is at least \(-\tfrac12\) and less than \(\tfrac12\). ∎

In the page's JavaScript, basis vectors are stored as the rows of basis rather than its columns, so multiplying the row vector target on the right by the inverse matrix inv computes the exact coordinates x, rounds each entry into k, and reconstructs the rounded lattice point:

for (var j = 0; j < n; j++) {
  var s = 0;
  for (var i = 0; i < n; i++) s += target[i] * inv[i][j];
  x[j] = s; k[j] = Math.round(s) + 0;                 // + 0 turns -0 into 0
}
return { point: combination(basis, k), coefficients: k, coordinates: x };

Geometrically, the set of targets that round to a lattice point \(v\) is a shifted copy of the centered cell \(B[-\tfrac12, \tfrac12)^n\), forming a tile around \(v\). Because \(\lvert \det B \rvert\) is fixed by the lattice, every basis partitions space into tiles of the exact same volume, yet the basis dictates their shape. A nearly orthogonal basis produces a compact tile that holds a wide ball around \(v\), so every error inside that ball rounds back to \(v\). A skewed basis stretches the same volume into a thin needle whose tips poke deep into neighboring cells while its narrow waist pinches close to \(v\); even a modest error pointing across that waist crosses into an adjacent tile and decodes to the wrong lattice point. Specifically, if \(\beta_i\) denotes the \(i\)-th row of \(B^{-1}\), the \(i\)-th basis coordinate of an error \(e\) is \(\langle \beta_i, e \rangle\), which reaches \(\lVert \beta_i \rVert \lVert e \rVert\) when \(e\) points along \(\beta_i\). Every coordinate therefore stays below \(\tfrac12\) for all errors inside a ball of radius \(1 / (2 \max_i \lVert \beta_i \rVert)\). Rounding decodes reliably when \(B^{-1}\) has short rows, which happens when the vectors of \(B\) are short and nearly perpendicular.

Example 3.3.2 (one error, two bases). Take the planar lattice of Section 3.1 with its short basis \(R\) and skewed basis \(B\) from Example 3.1.2, and perturb the lattice point \((9, 3)\) by an error of length 1.00 to form the target \(t = (9.87, 2.50)\).

Expressed in the short basis \(R\), the target has coordinates \((-0.34, -3.18)\), which round to \((0, -3)\) and recover \(-3 \cdot (-3, -1) = (9, 3)\), the true nearest lattice point. Expressed in the skewed basis \(B\), the same target has coordinates \((7.37, -3.85)\), which round to \((7, -4)\) and land at \(7 \cdot (5, 4) - 4 \cdot (7, 7) = (7, 0)\), a distance 3.80 away. The underlying error has coordinates \((-0.34, -0.18)\) in \(R\), safely inside \([-\tfrac12, \tfrac12)^2\), versus \((1.37, -0.85)\) in \(B\). Because the rows of \(R^{-1}\) have lengths 0.32 and 0.45, no error shorter than \(1 / (2 \cdot 0.45) = 1.11\) can push a coordinate past \(\tfrac12\); for \(B^{-1}\) the row lengths jump to 0.91 and 1.41, shrinking that guaranteed decoding radius to 0.35. Testing 1,000 random errors at each length, the figure finds all 1,000 removed up to length 1.10 by \(R\) and up to 0.35 by \(B\); at length 1.00, \(R\) removes all 1,000 while \(B\) removes 248. ◁

Averaged across the entire plane, rounding in \(B\) misses the true nearest lattice point on 64.9% of targets, compared with 6.6% for \(R\): the true region of points closest to a grid point in the plane is a six-sided hexagon, whereas any basis's rounding tile is a four-sided parallelogram of equal area whose corners inevitably protrude slightly.A second procedure of Babai's, nearest plane, fixes one coordinate at a time along the Gram-Schmidt vectors of Section 3.4. The set it sends to a lattice point is a rectangle, and it is the better decoder. The argument here needs only rounding.

Now read the target as a message in transit, and the way back from it to the lattice point as bounded-distance decoding (Definition 3.2.2). In 1997 Goldreich, Goldwasser and Halevi proposed to build public-key cryptography on the difference between the two directions.

Our trapdoor function. The idea underling our construction is that, given any basis for a lattice, it is easy to generate a vector which is close to a lattice point (i.e., by taking a lattice point and adding a small error vector to it). However it seems hard to return from this "close-to-lattice" vector to the original lattice point (given an arbitrary lattice basis). Thus, the operation of adding a small error vector to a lattice point can be thought of as a one-way computation.

—O. Goldreich, S. Goldwasser and S. Halevi, "Public-key cryptosystems from lattice reduction problems" (1997).CRYPTO 1997, LNCS 1294, pp. 112 to 131; Section 1, the paragraph headed "Our trapdoor function". The text is that of the authors' early version, a technical report of November 1996, which may differ in details from the printed one.

A one-way computation becomes a trapdoor when one party can undo it, and here that party is whoever holds a good basis.

The first lattice trapdoor, 1997three ladders, each read downward; only the bad basis and the ciphertext are public

GENERATE

  1. 3.1choose a good basis private key R · Short, nearly perpendicular vectors. They fix the lattice, and only their owner knows them.

  2. 3.1skew it B = R U, U random · Multiply by a random whole-number matrix of determinant 1 or −1: the same points, described by long and nearly parallel vectors.

  3. 3.3publish the bad basis public key B · Enough to compute lattice points. Rounding in it lands far from the nearest point.

ENCRYPT

  1. 3.3pick a lattice point a whole-number combination of B · The coefficients of the combination carry the message.

  2. 3.2add a small error of size at most sigma · Easy with any basis. Undoing it is bounded-distance decoding.

  3. 3.3send the sum the ciphertext · A point of space next to the lattice, not on it.

DECRYPT

  1. 3.3write it in the good basis with the private key R · The coordinates of the ciphertext in R are whole numbers plus a little.

  2. 3.3round every coordinate Babai's rounding · Right exactly when the error lies in the cell of R, centered on the origin.

  3. 3.3read off the lattice point and from it the message · The sender's point, hence the coefficients that carried the message.

green: where the private basis is used

The key owner chooses a good basis \(R\) and keeps it, derives from it a bad basis \(B = R U\) of the same lattice with a random \(U\) as in Definition 3.1.1, and publishes \(B\). The paper states the function and its inverse in three sentences.

The input to the function is a lattice point (which is specified by an integral linear combination of the columns of B) and an error vector whose size is bounded by σ. The value of the function on this input is just the vector sum of the two points. To invert the function, we use a reduced basis R in one of Babai's nearest-vector approximation algorithms [4] to find a lattice point which is at most σ away from the given vector.

—Goldreich, Goldwasser and Halevi (1997).The same section, further on. \(B\) is the public basis, \(R\) the private one, \(\sigma\) the bound on the size of the error. Reference [4] is Babai's paper with the two procedures, rounding and nearest plane.

Correctness follows directly from Proposition 3.3.1: rounding in \(R\) recovers the sender's lattice point whenever the error stays inside the centered cell of \(R\). Security rests on a two-part conjecture: that no procedure using the skewed public basis \(B\) directly can strip off such errors, and that no efficient algorithm can turn \(B\) back into a short basis that does.

The 200-dimensional counts in the figure test that mechanism at the scale of the original proposal, whose public challenges began at dimension 200.P. Q. Nguyen and O. Regev, "Learning a parallelepiped: cryptanalysis of GGH and NTRU signatures", EUROCRYPT 2006 (Journal of Cryptology 22(2), 2009), Sections 1 and 5.2: five challenges, in dimensions 200 to 400. For errors matching the length of the shortest vector in the good basis, rounding in the good basis removed all 1,000 errors, whereas rounding in the bad basis (produced by 800 random shears of the good one) removed none. The bad basis removed every error only down at a tenth of that length, 10 of 1,000 at four tenths, and zero from half that length upward. In the plane a skewed basis still guesses right roughly a third of the time; in 200 dimensions it failed 1,000 times out of 1,000 where the good basis succeeded every time, turning the private basis into a working trapdoor. This experiment isolates the rounding mechanism at dimension 200 rather than replicating the full GGH scheme, which generated its private bases, public matrices and error vectors by specific distributions of its own.

Notice that an error as long as a basis vector violates the worst-case promise \(\lVert e \rVert < \lambda_1 / 2\) of Definition 3.2.2, yet the good basis removes it every time. That promise guards against an error aimed straight along a shortest vector; a random error in 200 dimensions spreads its length across 200 coordinates, keeping every coordinate small enough that the good basis removed all 1,000 errors up to 1.5 times its shortest vector's length, and none at three times.

The practical cost of the design already shows. Specifying an \(n\)-dimensional basis takes \(n^2\) numbers: the authors noted that public keys grow as \(k^2\) in their security parameter \(k\), compared with order \(k\) for RSA, judging the larger key "more than compensated by the decrease in computation time".Goldreich, Goldwasser and Halevi (1997), Section 1. Publishing a scrambled description of an object that only its creator can decode mirrors the code-based trapdoor McEliece had proposed twenty years earlier (Section 9.3). Everything now hangs on the second half of the security conjecture: whether an attacker can unskew \(B\).

Reduction, the way back from a bad basis

Anyone handed only the skewed public basis has a natural line of attack: unskew it. Because every unimodular transformation is invertible over the integers, the same elementary shears and swaps that lengthened and aligned the basis vectors can shorten and separate them again, and in the plane a greedy rule finds the exact steps.

plane   Gauss's reduction of the basis (5, 4), (7, 7); its profile is the two sides of the box on b1:
        the length of b1 and the height b2* (the part of b2 at right angles to b1)
        start        (5, 4), (7, 7)        6.40 by 1.09
        b2 − 2 b1    (5, 4), (−3, −1)      6.40 by 1.09    a subtraction leaves the profile alone
        swap         (−3, −1), (5, 4)      3.16 by 2.21    a swap flattens it
        b2 + 2 b1    (−3, −1), (−1, 2)     3.16 by 2.21
        swap         (−1, 2), (−3, −1)     2.24 by 3.13    reduced in 4 steps; the area, 7, never changed
chart   a basis of 40 vectors (a random lattice with the modulus 3,329): the lengths of its Gram-Schmidt vectors
        on a logarithmic scale, after each algorithm; flat would be 57.7 for all 40
        reduced by       slope, a vector   first vector   work
        start                −26.2%           3,329
        LLL                   −4.1%           110.4       9,495 swaps
        block size 10         −2.9%           100.4       37,533 nodes searched
        block size 20         −2.8%            97.5       338,571
        block size 30         −2.8%            97.5       2,041,889
        block size 40         −2.8%            97.5       8,584,811   (the whole basis: 97.5 is the shortest vector)
(the live figure needs JavaScript; it loads no data, reduces the 40 vectors in the page and times each algorithm)
Reduction flattens the profile. Green: the profile after the latest reduction; ink: the profiles before it; the hairline: every length equal. In the plane, Gauss's reduction: the box on the first vector keeps its area, a subtraction keeps its sides, a swap makes it squarer. In 40 dimensions, a basis reduced in the page by LLL and by block reduction with growing block size; the table gives each profile's slope (how much shorter each vector is than the one before), the first vector's length, the work and the time in this browser. Step or run the plane; reduce again; take a new lattice.

Gauss's planar reduction algorithm, which goes back to Lagrange, alternates two moves.M. R. Albrecht, R. Player and S. Scott, "On the concrete hardness of learning with errors", Journal of Mathematical Cryptology 9(3), 2015 (ePrint 2015/046), Section 3.1, which also states what the result satisfies. Project the longer vector \(v\) onto the shorter vector \(u\) and subtract the nearest integer multiple \(m = \lfloor \langle u, v \rangle / \langle u, u \rangle \rceil\) of \(u\), leaving \(v - m u\) as short and as nearly perpendicular to \(u\) as whole-number steps allow. If the shortened vector is now shorter than \(u\), swap their roles and repeat; otherwise stop. In the page's code, u and v hold the two vectors while two omitted lines record each step for the drawing:

for (;;) {
  if (dot2(u, u) > dot2(v, v)) {
    var t = u; u = v; v = t;
    // ...
  }
  var m = nearestInteger(dot2(u, v), dot2(u, u));
  if (m === 0) break;
  v = [v[0] - m * u[0], v[1] - m * u[1]];
  // ...
}

Starting from \((5, 4)\) and \((7, 7)\), the loop halts after four steps at \((-1, 2)\) and \((-3, -1)\), and when it halts the first vector is guaranteed to be a shortest nonzero vector of the lattice.

How those two moves make progress is clearest on a rectangle. Stand a box on \(b_1\) reaching as high as \(b_2\) rises perpendicular to \(b_1\): its base is \(\lVert b_1 \rVert\), its height is the component of \(b_2\) orthogonal to \(b_1\), and its area equals the cell area, 7, regardless of the basis. Subtracting a multiple of \(b_1\) from \(b_2\) slides \(b_2\) parallel to the base and leaves the box untouched. Swapping the vectors reshapes the box: 6.40 by 1.09 at the start, 3.16 by 2.21 after the first swap, and 2.24 by 3.13 at the end. Reduction makes that orthogonal box squarer. Extending the same perpendicular projection step by step to \(n\) basis vectors yields an \(n\)-dimensional orthogonal box of the same volume \(\lvert \det B \rvert\); although the orthogonalized vectors themselves usually have fractional coordinates and do not lie in the lattice, their lengths track the quality of the basis.

Definition 3.4.1 (Gram-Schmidt vectors, profile). For a basis \(b_1, \dots, b_n\) let \(b_1^{\ast} = b_1\) and, for \(i > 1\), let \(b_i^{\ast}\) be the part of \(b_i\) at right angles to \(b_1, \dots, b_{i-1}\):

\[b_i^{\ast} = b_i - \sum_{j < i} \mu_{i,j}\, b_j^{\ast}, \qquad \mu_{i,j} = \frac{\langle b_i, b_j^{\ast} \rangle}{\langle b_j^{\ast}, b_j^{\ast} \rangle} .\]

The profile of the basis is the list of lengths \(\lVert b_1^{\ast} \rVert, \dots, \lVert b_n^{\ast} \rVert\), drawn on a logarithmic scale.

Because the determinant is the product of all \(n\) orthogonal heights \(\lVert b_i^{\ast} \rVert\) (base times height repeated \(n\) times), no basis reduction can lower the whole profile; it can only level it by trading early lengths against later ones. At the same time, no nonzero lattice vector can be shorter than the smallest profile entry: if \(v = \sum_i z_i b_i\) has last nonzero integer coefficient \(z_k\), then \(b_1, \dots, b_{k-1}\) are all orthogonal to \(b_k^{\ast}\), so \(\langle v, b_k^{\ast} \rangle = z_k \lVert b_k^{\ast} \rVert^2\) and therefore \(\lVert v \rVert \ge \lvert z_k \rvert \lVert b_k^{\ast} \rVert \ge \lVert b_k^{\ast} \rVert\). A basis with a flat profile must therefore start with a vector \(b_1 = b_1^{\ast}\) nearly as short as \(\lambda_1\), whereas a steeply falling profile lets \(b_1\) stay exponentially longer than \(\lambda_1\).

In \(n\) dimensions, the 1982 algorithm of Lenstra, Lenstra and Lovász (LLL) applies Gauss's two moves locally to adjacent pairs.A. K. Lenstra, H. W. Lenstra Jr. and L. Lovász, "Factoring polynomials with rational coefficients", Mathematische Annalen 261, 515 to 534 (1982). The lattice algorithm is the tool of that paper, not its subject. At index \(k\), it first subtracts integer multiples of \(b_{k-1}, \dots, b_1\) from \(b_k\) until every size-reduction coefficient satisfies \(\lvert \mu_{k,j} \rvert \le \tfrac12\), leaving the entire profile unchanged. Next, it projects \(b_{k-1}\) and \(b_k\) orthogonally to \(b_1, \dots, b_{k-2}\): in that two-dimensional slice, \(b_{k-1}\) becomes \(b_{k-1}^{\ast}\) and \(b_k\) becomes \(b_k^{\ast} + \mu_{k,k-1} b_{k-1}^{\ast}\), whose squared length is \(\lVert b_k^{\ast} \rVert^2 + \mu_{k,k-1}^2 \lVert b_{k-1}^{\ast} \rVert^2\) by Pythagoras. Swapping \(b_{k-1}\) and \(b_k\) would replace \(b_{k-1}^{\ast}\) with that projected vector. Fix a parameter \(\delta\) strictly between \(\tfrac14\) and 1 (0.99 in the page): if swapping would shrink \(\lVert b_{k-1}^{\ast} \rVert\) below \(\sqrt\delta\) of its current length, LLL swaps \(b_{k-1}\) and \(b_k\) and steps back to \(k - 1\); otherwise it advances to \(k + 1\). Rearranging the Pythagorean sum gives Lovász's condition for advancing without a swap:

\[\lVert b_k^{\ast} \rVert^2 \;\ge\; \bigl(\delta - \mu_{k,k-1}^2\bigr)\, \lVert b_{k-1}^{\ast} \rVert^2 . \tag{3.1}\]

In the page's code, norms2 holds the squared profile lengths \(\lVert b_i^{\ast} \rVert^2\), so checking (3.1) and swapping when it fails takes eight lines:

var m = this.mu[k][k - 1];
if (this.norms2[k] >= (this.delta - m * m) * this.norms2[k - 1]) { this.k = k + 1; return 'advance'; }
var t = this.b[k]; this.b[k] = this.b[k - 1]; this.b[k - 1] = t;
this.gramSchmidtRow(k - 1);
this.swaps++;
this.k = Math.max(k - 1, 1);
return 'swap';

Each swap shrinks \(\lVert b_{k-1}^{\ast} \rVert\) by at least \(\sqrt\delta\) and raises \(\lVert b_k^{\ast} \rVert\) by the reciprocal factor, keeping their product unchanged; requiring strict slack \(\delta < 1\) prevents tiny, dragging improvements and forces LLL to halt in polynomial time. Once every index \(k\) passes (3.1) with \(\lvert \mu_{k,j} \rvert \le \tfrac12\), the basis is LLL-reduced, and bounding the drop between adjacent profile entries immediately bounds the length of \(b_1\).

Proposition 3.4.2 (what LLL guarantees). Let \(b_1, \dots, b_n\) be LLL-reduced with parameter \(\delta\), and put \(c = (\delta - \tfrac14)^{-1/2}\). Then no entry of the profile is more than a factor \(c\) below the one before it, and

\[\lVert b_1 \rVert \;\le\; c^{\,n-1}\, \lambda_1 .\]

Proof. With \(\mu_{k,k-1}^2 \le \tfrac14\), the test (3.1) gives \(\lVert b_k^{\ast} \rVert \ge \lVert b_{k-1}^{\ast} \rVert / c\). Chaining these, \(\lVert b_1 \rVert = \lVert b_1^{\ast} \rVert \le c^{\,k-1} \lVert b_k^{\ast} \rVert\) for every \(k\), and the smallest \(\lVert b_k^{\ast} \rVert\) is at most \(\lambda_1\). ∎

At \(\delta = 0.99\), \(c \approx 1.1625\): each profile entry drops by at most 14% from the one before it, guaranteeing \(\lVert b_1 \rVert \le 1.1625^{\,n-1} \lambda_1\), a factor of about 355 in dimension 40 that grows exponentially with \(n\). That is the worst-case guarantee; on random lattices LLL flattens the profile much further, as the 40-dimensional chart in the figure illustrates. The lattice there has the \(q\)-ary structure measured in Section 3.5 and used in Section 4: the integer vectors satisfying 20 random linear equations modulo 3,329 in 40 unknowns, initialized with a cliff-shaped profile of 20 entries at 3,329 followed by 20 entries at 1. LLL's 9,495 swaps smooth that cliff into a gentle slope losing 4.1% per vector rather than 14%, leaving a first vector of length 110.4, just 1.13 times this lattice's true shortest length of 97.5 instead of 355 times.

Even so, LLL's vision is strictly pairwise: it stops as soon as no swap of two neighbors helps, even when combining ten or twenty consecutive vectors would cancel down to something far shorter. Block reduction, introduced by Schnorr in 1987, widens that local window from two vectors to \(b\).Micciancio and Regev (2009), Section 1: blocks of larger size in place of the \(2 \times 2\) blocks of LLL, shorter vectors at the price of a longer running time. Sliding a window of \(b\) consecutive vectors along the basis, and projecting out all vectors before the window just as LLL did, it finds an exact shortest vector of that \(b\)-dimensional projected lattice, inserts it at the front of the window, and steps the window one position forward. One sweep across all windows is called a tour, and tours repeat until nothing changes. Setting \(b = 2\) recovers LLL's rule; setting \(b = n\) solves exact SVP on the entire lattice in one step. The designers of ML-KEM summarize the resulting algorithm, known as BKZ, in a sentence.

The algorithm BKZ proceeds by reducing a lattice basis using an SVP oracle in a smaller dimension b. It is known [53] that the number of calls to that oracle remains polynomial, yet concretely evaluating the number of calls is rather painful, and this is subject to new heuristic ideas [32, 31, 11].

—Avanzi et al., "CRYSTALS-Kyber Algorithm Specifications and Supporting Documentation", version 3.02 (2021).The specification of 4 August 2021, Section 5.1.1. An oracle is a subroutine counted as a single step: here, a solver for the exact shortest vector problem in dimension \(b\).

All the computational weight of BKZ sits inside that block subroutine: solving exact SVP in dimension \(b\). In the page's implementation, that subroutine is enumeration, a depth-first search through the tree of integer combinations whose work is counted in visited nodes. On the 40-dimensional lattice, the node count climbs from 37,533 at block size 10 to 8,584,811 at block size 40, while the first vector shortens to 100.4 and then, at block size 20, reaches 97.5 and stays there: a block of 40 spans the entire basis, making the search exhaustive and proving that 97.5 is \(\lambda_1\). This example was not cherry-picked: across the first 30 random lattices the figure steps through, raising the block size to 20 shortened \(b_1\) further in 15 cases, and block size 30 shortened it in 7. Each turn of the block-size dial multiplies the search cost, yet in dimension 40 LLL already lands so close to \(\lambda_1\) that large blocks have little left to gain. What happens when the dimension grows is the next question.

The wall, measured

No theorem proves that a skewed basis of a high-dimensional lattice stays hard to reduce. Confidence comes instead from running the algorithms of Section 3.4 across growing dimensions and recording both the quality of the vectors they find and the processor time they spend.

chart 1  first vector of the reduced basis over the predicted shortest length; random q-ary lattices, q = 3,329,
         median of 5 lattices a dimension
         dimension           40     60     80    100    120    140    160    180    fitted: the factor doubles every
         LLL               1.22   1.43   2.02   2.85   4.42   6.14   9.29  13.86  36.1 (80 to 180)
         block size 20     1.04   1.16   1.37   1.59   1.93   2.53   3.31   4.42  59.0 (80 to 180)
         block size 40     1.03   1.03   1.21   1.35   1.68   2.02   2.58   3.10  71.5 (80 to 180)
         block size 60            1.01   1.06   1.23   1.40   1.61   1.91   2.26  84.1 (120 to 180)
         in the basis      35.5   29.5   25.8   23.2   21.2   19.7   18.5   17.5    a ceiling: no line goes past 180
         LLL alone at 200, 220, 240, 260: 16.6, 15.8, 15.2, 14.6: a vector it was given (4, 5, 5, 5 of 5 lattices)
chart 2  seconds of one tour of block reduction in dimension 100, the median
         block size         10      20      30      40      50      60      70
         seconds         0.022   0.026   0.034   0.051    0.57     4.5      62    doubles about every 3 block sizes from 40 to 70
         past 70: not run here | 210: the challenge record for a short vector (sieving, 2026) |
         406, 626, 878: estimated for attacks on ML-KEM-512, 768, 1024; nobody can run these; no line reaches them
(the live figure needs JavaScript and loads about 0.3 MB of measurements)
What reduction finds, and what it costs. Green: runs of block reduction; grey: LLL; every dot is one run on a random q-ary lattice (q = 3,329) on one machine. Lines are fits and end where the measurements end; the hairline: the vectors already in the basis. The second panel times one tour against the block size (a doubling every 2.5 to 4.3 block sizes, step by step); past block size 70 nothing was run, and beyond a break stand the record and the block sizes estimated for attacks on ML-KEM. The rows are not equally converged (5 to 40 tours). Choose a dimension; point at a dot.

Raw Euclidean lengths cannot be compared fairly across dimensions, because even a unit-volume grid spreads its points further apart as \(n\) grows. Two standard yardsticks normalize the dimension away: the Gaussian heuristic estimates \(\lambda_1(\mathcal L)\) as the radius of an \(n\)-dimensional ball whose volume matches one lattice cell \(\det(\mathcal L)\), and the root Hermite factor \(\delta_0\) measures the per-dimension exponential rate at which \(\lVert b_1 \rVert\) exceeds the normalized cell side \(\det(\mathcal L)^{1/n}\).

Definition 3.5.1 (the Gaussian heuristic, the root Hermite factor). For a lattice \(\mathcal L\) of dimension \(n\), the Gaussian heuristic predicts the length of a shortest vector as the radius of the ball whose volume is the determinant:

\[\operatorname{gh}(\mathcal L) = \frac{\Gamma(n/2 + 1)^{1/n}}{\sqrt{\pi}}\, \det(\mathcal L)^{1/n} \;\approx\; \sqrt{\frac{n}{2 \pi e}}\; \det(\mathcal L)^{1/n} .\]

The root Hermite factor of a reduced basis is the number \(\delta_0\) with \(\lVert b_1 \rVert = \delta_0^{\,n} \det(\mathcal L)^{1/n}\).

The Gaussian heuristic rests on a simple density count: a lattice averages one point per unit of cell volume, so a ball centered at the origin with volume \(\det(\mathcal L)\) should enclose roughly one nonzero grid point (together with its negation). It is a statistical estimate rather than a hard bound: on the 40-dimensional lattice of Section 3.4 it predicts 93.8 where exhaustive search proved \(\lambda_1 = 97.5\), and one 80-dimensional lattice in Example 3.5.2 yielded a vector 0.96 times the heuristic.

Example 3.5.2 (reduction against dimension). Take 40 random \(q\)-ary lattices of the kind introduced in Section 3.4, formed by the integer vectors satisfying \(n/2\) random linear equations modulo ML-KEM's modulus \(q = 3{,}329\), with five lattices at each even step of 20 from dimension 40 to dimension 180. Using the open-source library fplll 5.5.0 on a single core of a 16-core server, each lattice was reduced once by LLL and then sequentially by BKZ at block sizes 10, 20, and so on up to 60 (up to 40 in dimension 40), each stage warm-starting from the previous stage's basis, with 14 lattices continuing to block size 70. At every stage we record the ratio \(\lVert b_1 \rVert / \operatorname{gh}(\mathcal L)\) and the processor time per tour.

After LLL alone, the median ratio \(\lVert b_1 \rVert / \operatorname{gh}(\mathcal L)\) over the five lattices climbs from 1.22 in dimension 40 to 13.86 in dimension 180, doubling every 36.1 dimensions between dimensions 80 and 180. Raising the block size slows that exponential drift without stopping it: in dimension 180 the median ratio drops to 4.42 at block size 20, 3.10 at block size 40, and 2.26 at block size 60, with doubling intervals of 59.0, 71.5, and 84.1 dimensions (the last fitted across dimensions 120 to 180). An approximation ratio that compounds exponentially with \(n\) is the signature of a reduced profile with a nearly constant per-index slope, captured concisely by the root Hermite factor \(\delta_0\): on these lattices LLL achieves a mean \(\delta_0\) of 1.0204 across dimensions 80 to 180 (standard deviation 0.0011), compared with 1.0219 in published experiments, while BKZ at block size 60 tightens \(\delta_0\) to 1.0112 across dimensions 120 to 180.The published value is the one of Gama and Nguyen (2008), as quoted by Albrecht, Player and Scott (2015), Section 3.1. A survey by one of ML-KEM's designers notes that until experiments reached dimension 100 or so "it wasn’t even clear whether the real approximation factor of LLL for random lattices was exponential or just linear. As it turns out, the approximation factor is indeed exponential in the dimension, but the base of the exponent is rather small."V. Lyubashevsky, "Basic lattice cryptography: the concepts behind Kyber (ML-KEM) and Dilithium (ML-DSA)", ePrint 2024/1287, Section 3.2, which adds a rule of thumb: a root Hermite factor of 1.01 is within reach, and 1.005 may never be achieved in dimensions above 500.

Tighter factors are paid for steeply in running time. In dimension 100, a single tour took a median of 0.051 seconds at block size 40, 0.57 seconds at 50, 4.5 seconds at 60, and 62 seconds at 70 (the last over four lattices). Across the 17 ten-step increments measured from block size 40 upward in dimensions 60 to 180, tour time doubled every 2.5 to 4.3 block sizes, or roughly every three. In dimension 160, the largest dimension timed at standard hardware floating-point precision, LLL finished in 0.63 seconds with a ratio of 9.29, whereas running the full chain through block size 60 took 240 seconds and reached 1.91: roughly 380 times the compute time bought a vector five times shorter. ◁

Where the experiment stops is itself part of the lesson. Block size 70 ran on only 14 lattices in dimensions 80 to 140 and nothing larger was attempted, because the allotted compute budget ended there; the hatching on the chart marks "not run here", not impossibility. Nor does LLL's 36-dimension doubling continue indefinitely on these \(q\)-ary bases. Because the starting basis already begins with trivial vectors of length \(q\) (multiples of the modulus) and reduction never lengthens \(b_1\), the ratio \(\lVert b_1 \rVert / \operatorname{gh}(\mathcal L)\) hits a ceiling at \(q / \operatorname{gh}(\mathcal L)\), which equals 17.5 in dimension 180. LLL's fitted exponential curve meets that ceiling near dimension 193; run alone in dimensions 200, 220, 240, and 260, LLL simply left one of those initial length-\(q\) vectors untouched at the front on 4, 5, 5, and 5 out of 5 lattices, which is why every fitted line stops at dimension 180. Several experimental details also qualify the numbers: the chart tracks \(\lVert b_1 \rVert\), the quantity theoretical bounds govern, even though a later basis vector after LLL was sometimes up to 27% shorter; stages ran between 5 and 40 tours and often hit a tour cap (at most 12 tours for block size 60); and every timing is a single run, with dimension 180 using higher-precision floating-point arithmetic that slowed each tour roughly threefold, so seconds are comparable only within a single dimension.

Four landmarks sit far past these runs, and no fitted line is extrapolated to them. The first is a public record: as of November 2026, the highest-dimensional random challenge lattice in which a vector near \(\operatorname{gh}(\mathcal L)\) has been exhibited publicly has dimension 210, solved not by tree enumeration (which uses tiny memory) but by sieving, which repeatedly subtracts pairs inside an exponentially large list of vectors in memory.The hall of fame of the shortest-vector challenge at latticechallenge.org, read on 30 November 2026: dimension 210, a vector 1.045 times the Gaussian heuristic, found by sieving and submitted in January 2026. The other three landmarks are the BKZ block sizes that ML-KEM's designers estimate an attacker would need against its three parameter sets: 406, 626, and 878, or 413, 637, and 894 under their refined gate model.Avanzi et al. (2021), Table 4; the cost of a search is in its Section 5.1.1. Those security estimates price one SVP call in dimension \(b\) at roughly \(2^{0.292\,b}\) operations for classical sieving and \(2^{0.265\,b}\) on a quantum computer. Under the classical formula, cost doubles every 3.4 block sizes; purely as arithmetic on that formula rather than as an empirical measurement, block size 406 sits \(0.292 \times (406 - 210) \approx 57\) doublings beyond the dimension-210 record. Nothing measured here speaks to block size 406, and the three-step tour doublings observed between block sizes 40 and 70 do not confirm the sieving exponent, because those runs used enumeration rather than sieving. Section 4.6 shows how standardized parameter sizes are chosen from such cost models, and Section 10.4 weighs how far published records stand below them.

On a quantum computer, that sieving exponent drops modestly rather than collapsing. Grover-style quantum search speeds up neighbor lookup inside the sieve (as in Section 2.6), lowering \(0.292\,b\) to \(0.265\,b\), and as of November 2026 no quantum period-finding shortcut akin to Section 2 is known for a general unstructured lattice. Lattices carrying the extra ring or module symmetries used in the standards raise a separate question, examined in Section 5.6.

A lattice has good bases and bad ones, and the one you hold decides what you can do: a good basis finds the nearest lattice point by rounding, a bad one does not. Every method known for improving a basis of a general lattice buys quality with time, each notch at a multiple of the last, and that measured behavior of the best algorithms, not a theorem, is the ground lattice cryptography stands on.

Remark 3.5.3 (the dimension is not the price). What prices a lattice attack is the BKZ block size \(b\) required, not the ambient dimension \(n\) of the lattice: \(n\) together with the modulus and noise determines how flat a profile (how small a root Hermite factor \(\delta_0\)) the attacker needs, and \(\delta_0\) dictates \(b\). In the designers' estimate for ML-KEM-512, the attacker embeds the key into a 999-dimensional lattice and needs block size 406 inside it.

What went wrong with the first trapdoor

Sections 3.4 and 3.5 are the attack that the designers of the first lattice trapdoor expected, and they had measured it themselves. With LLL they could rebuild a good basis only up to dimension 60 to 80, and they judged that the attacks they knew "should be intractable in practice for dimension 300 or so".Goldreich, Goldwasser and Halevi (1997), Sections 1.2 and 5. They published five challenges, in dimensions 200 to 400. Two years later four of the five were solved, and what gave way was not the wall of Section 3.5 but the design.

Recent results of Ajtai on the hardness of lattice problems have inspired several cryptographic protocols. At Crypto '97, Goldreich, Goldwasser and Halevi proposed a public-key cryptosystem based on the closest vector problem in a lattice, which is known to be NP-hard. We show that there is a flaw in the design of the scheme which has two implications: the cryptosystem is not semantically secure (each ciphertext leaks a non-negligible fraction of the plaintext), and the problem of decrypting ciphertexts can be reduced to a special closest vector problem which is much easier than the general problem. As an application, we solved four out of the five numerical challenges proposed on the Internet by the authors of the cryptosystem. At least two of those four challenges were conjectured to be intractable. We discuss ways to prevent the flaw, but conclude that, even modified, the scheme cannot provide sufficient security without being impractical.

—P. Q. Nguyen, "Cryptanalysis of the Goldreich-Goldwasser-Halevi cryptosystem from Crypto '97" (1999).CRYPTO 1999, LNCS 1666, pp. 288 to 304: the abstract, as printed on the author's publication page. The paper itself was not among the sources read for this series, so the flaw is described here only as far as the abstract goes.

Nguyen's abstract highlights two distinct failures, neither of which says that general CVP became easy. First, each ciphertext leaked partial information about the plaintext, violating semantic security (the requirement that an eavesdropper learn nothing usable from a ciphertext). Second, the specific error structure turned decryption into a restricted special case of CVP, "much easier than the general problem". The broader lesson mirrors Remark 3.2.3: an attacker never faces CVP in the abstract, only the concrete distribution of instances produced by a scheme's key generation and encryption, and nothing in GGH tied that distribution back to general lattices.

Inspired by Ajtai’s seminal work [Ajt96] along with McEliece’s code-based cryptosystem [McE78], Goldreich, Goldwasser, and Halevi (GGH) [GGH97] proposed a public-key encryption scheme and digital signature scheme based on lattice problems. Unlike the works of Ajtai and Ajtai-Dwork [AD97], the GGH proposals did not come with any worst-case security guarantees; their conjectured security was merely heuristic. Indeed, the GGH encryption scheme was successfully cryptanalyzed for practical parameter sizes (but not broken asymptotically) [Ngu99], and the GGH signature scheme was later broken completely [NR06]. However, the central ideas underlying the GGH proposals were later resurrected and instantiated in ways that admit security proofs under worst-case hardness assumptions, and have subsequently led to an enormous variety of applications (see Sections 5.4 and 5.5 for details).

—C. Peikert, "A decade of lattice cryptography" (2016).Section 3.3, its first paragraph; the two sections named at its end are the survey's own. The scheme of Ajtai and Dwork (1997) came with such a guarantee and was impractical in its instantiations; NTRU, devised in 1996 and published in 1998, is the third proposal of those years, and the survey knows of no reduction from a worst-case lattice problem to it.

Saying that GGH encryption was "not broken asymptotically" means that scaling to much higher dimensions could restore security, though as the 1999 abstract noted, keys growing quadratically in the dimension would make those sizes impractical. The companion GGH signature scheme failed even more completely. To sign a message hashed to a point \(t\) in space, the signer uses the private short basis \(R\) to round \(t\) to a nearby lattice point \(v\) (as in Section 3.3), so the residual difference \(t - v\) always lands inside the centered fundamental parallelepiped of \(R\). Every published signature thus reveals one more sample dot inside that secret parallelepiped, and in 2006 a statistical attack that reconstructs the parallelepiped's faces from accumulated signatures recovered the private key across the signature analogues of all five challenge dimensions.Nguyen and Regev (2006), abstract. For NTRUSign-251 without perturbation, a scheme of the same design, the abstract reports that 400 signatures were enough, thanks to symmetries in its lattices. Section 7.4 demonstrates that geometric leak live, and Section 7.5 shows how modern lattice signatures use a short basis without betraying its shape.

What survives from GGH is its one-way forward step: adding a small error vector to a lattice point is the starting point of Section 4. What changes completely is how the lattice is chosen and how decryption works. Rather than growing a lattice out of someone's private short basis, modern encryption starts from a public matrix of uniformly random integers modulo \(q\), defining a random \(q\)-ary lattice of the kind measured in Section 3.5 for which nobody, not even the key holder, possesses a short basis. Instead, the key holder's secret is the single unperturbed lattice point itself, and Section 4.3 shows how to encrypt and decrypt using that secret without any basis trapdoor. Because the public matrix is drawn uniformly at random, the attacker faces the average case of a clean random problem rather than a designer's structured trapdoor, and Section 4.5 states the theorem linking that average case to worst-case lattice problems alongside what the theorem leaves open.

← Back to all posts