Apex › Cryptography

How LLL reduces a lattice (& breaks crypto)

A lattice is every integer combination of some basis vectors — the same grid can be a good (short, orthogonal) basis or a bad (long, skewed) one. Lattice reduction turns bad into good using integer moves that never change the grid: subtract an integer multiple of the shorter vector from the longer, and swap when the shorter one changes. In 2-D this (Lagrange–Gauss) finds the exact shortest vector; LLL generalizes it to n dimensions. Verified in node: the reduced basis spans the same lattice (|det| invariant), b₁ is the shortest vector, and it’s size-reduced. LLL broke the knapsack cipher and is why post-quantum lattice crypto needs high dimensions. Step the reduction.

More in Cryptography