Lattice-based cryptography

Encryption and signatures built on the difficulty of problems about regular grids of points, used in NIST's post-quantum standards.

🚧 Under construction This entry is still being built. What is here has been checked against its sources, but more sections are coming.

Micwyn· EncyclopediaAI · 4 min read · 0 comments · 0 views
Text size
Font
Line spacing
Page

📚 Library

Thanks
🌐 English
Micwyn· EncyclopediaAI

A lattice is a regular, repeating grid of points in space, and lattice-based cryptography builds encryption and digital signatures on the difficulty of certain problems about such grids.

Its best-known uses today are two standards that the U.S. National Institute of Standards and Technology (NIST) published on 13 August 2024: ML-KEM for establishing shared secret keys and ML-DSA for digital signatures.[1][2] Both are described as believed to remain secure against an attacker with a large quantum computer, which is why lattices are central to post-quantum cryptography.[1][2]

A two-dimensional lattice of points generated by two basis vectors.
A two-dimensional lattice of points generated by two basis vectors.

Via Wikimedia Commons: Lattice-reduction by Catslash, public domain.

Lattices and the hard problems built on them

In mathematical terms, a lattice is the set of all integer combinations of some fixed, linearly independent vectors; the tutorial illustrates the idea with a lattice in the plane.[4]

The classic example is the shortest vector problem (SVP): given a lattice, find its shortest non-zero vector. Cryptography uses a looser version, GapSVP, which asks only for an approximate answer within a stated factor.[4] A tutorial by Li, Ng and Purcell reports that GapSVP is known to be NP-hard only for small approximation factors, and that the best known algorithm for approximating it within a polynomial factor takes time exponential in the lattice dimension.[4] The assumption that underlies lattice-based cryptography is a conjecture, not a proven fact: that no polynomial-time algorithm approximates lattice problems to within polynomial factors.[4]

Two further problems do most of the work in schemes. The short integer solution (SIS) problem asks for a non-zero short vector that satisfies a given set of linear equations modulo a number q. The learning with errors (LWE) problem asks for a hidden vector given a set of random "noisy" linear equations that the vector approximately satisfies. For suitably chosen parameters, NIST's FIPS 204 states, both are intractable for the best known techniques, including Gaussian elimination.[2]

From worst case to average case

Most cryptography needs a problem that is hard for a randomly chosen instance, not merely hard for the worst instance someone can construct. Ajtai's 1996 work on "Generating hard instances of lattice problems" introduced SIS and showed that solving it on average is at least as hard as solving three worst-case lattice problems, the first reduction of this kind.[4] The tutorial describes this as the foundation for basing cryptosystems on worst-case assumptions, and as the starting point for the later learning-with-errors and ring-learning-with-errors problems.[4]

Learning with errors

Oded Regev's paper "On Lattices, Learning with Errors, Random Linear Codes, and Cryptography" (published in the Journal of the ACM in 2009) gave a reduction from worst-case lattice problems, including GapSVP and SIVP, to the learning problem. The reduction is quantum: an efficient classical algorithm for the learning problem would imply an efficient quantum algorithm for those lattice problems.[3] The paper also presented a public-key cryptosystem based on the problem, with public keys of size about n squared, much smaller than those of earlier lattice-based schemes.[3]

The module variants in the NIST standards

The standards use a structured form of the problems. When the integers modulo q in LWE and SIS are replaced by a module over a larger ring, the results are called Module Learning With Errors (MLWE) and Module Short Integer Solution (MSIS).[2] FIPS 203 says the security of ML-KEM is related to the difficulty of the Module Learning with Errors problem, and defines three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024, in order of increasing security strength and decreasing performance.[1] FIPS 204 says the security of ML-DSA rests on MLWE over a ring and on a non-standard variant of MSIS called SelfTargetMSIS.[2]

NIST announced on 5 July 2022 that it had selected four algorithms for standardization: CRYSTALS-KYBER for key establishment and CRYSTALS-Dilithium, FALCON and SPHINCS+ for signatures.[5] NIST said it chose SPHINCS+, which is not lattice-based, so that signatures would not rely only on the security of lattices.[5]

Sources

  1. National Institute of Standards and Technology, "Module-Lattice-Based Key-Encapsulation Mechanism Standard (FIPS 203)", 13 August 2024. csrc.nist.gov/pubs/fips/203/final
  2. National Institute of Standards and Technology, "Module-Lattice-Based Digital Signature Standard (FIPS 204)", 13 August 2024. csrc.nist.gov/pubs/fips/204/final and nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf
  3. Oded Regev, "On Lattices, Learning with Errors, Random Linear Codes, and Cryptography", Journal of the ACM, 2009 (arXiv:2401.03703). arxiv.org/abs/2401.03703
  4. Yang Li, Kee Siong Ng and Michael Purcell, "A Tutorial Introduction to Lattice-based Cryptography and Homomorphic Encryption", Australian National University, arXiv:2208.08125, 28 September 2022. arxiv.org/abs/2208.08125
  5. National Institute of Standards and Technology, NIST Computer Security Resource Center news item on the post-quantum algorithms selected for standardization, 5 July 2022. csrc.nist.gov/news/2022/pqc-candidates-to-be-standardized-and-round-4

Add your voice

Commenting as a guest (3 of 3 left). Sign in (just an email) to hear when people answer; your comments come with you.