Lattices · Hardness assumption
Ring Learning With Errors (RLWE)
Noisy multiples of a secret ring element are indistinguishable from random. The rank-1 case of Module-LWE.
Statement
Let Rq = ℤq[X]/(Xn + 1). Let s be a secret element of Rq and, for each sample, let a be uniformly random in Rq and e have small coefficients. Given samples
(a, b = a·s + e mod q)
the search problem is to find s; the decision problem is to distinguish the samples from uniform. Ring-LWE is Module-LWE of rank 1: a single ring element takes the place of the matrix. One sample encodes n scalar equations, which gives the smallest keys of the LWE family and the most algebraic structure.
Use in schemes
- No NIST standard relies on Ring-LWE directly. ML-KEM and ML-DSA use modules of rank 2 or more over a ring of the same kind.
- NewHope, a Ring-LWE KEM, reached round 2 of the NIST process and was not advanced. Kyber, the same design over modules, was.
- The homomorphic encryption schemes BGV, BFV and CKKS rely on Ring-LWE.
Relation to other assumptions
| Assumption | Relation | Consequence |
|---|---|---|
| Module-LWE | Ring-LWE is the rank-1 case. Conversely, Module-LWE of rank d and modulus q reduces to Ring-LWE over the same ring with modulus qd and a larger error rate (Albrecht and Deo, 2017). | A general Ring-LWE algorithm, effective at large modulus, breaks Module-LWE and with it ML-KEM and ML-DSA. An attack confined to rank 1 at small modulus does not. |
| LWE | A Ring-LWE sample expands to n LWE samples with a structured matrix. | A general LWE algorithm breaks Ring-LWE. The converse is not known. |
| NTRU | Decision NTRU reduces to search Ring-LWE. This bounds the hardness of NTRU from above only. | A Ring-LWE algorithm breaks NTRU, and with it FN-DSA key security. An NTRU attack does not imply a Ring-LWE attack. |
| Ideal-SVP | Ring-LWE is at least as hard as worst-case approximate SVP on ideal lattices. Equivalence is not known. | An efficient Ideal-SVP algorithm removes the worst-case guarantee. It does not by itself solve Ring-LWE. |
Evidence of hardness
- Lyubashevsky, Peikert and Regev (2010): a quantum reduction from worst-case approximate SVP on ideal lattices to search Ring-LWE, and a search-to-decision reduction for cyclotomic rings. Peikert, Regev and Stephens-Davidowitz (2017) extended the decision result to any ring and modulus.
- The reduction is from ideal lattices, a narrower class than module or general lattices. It is asymptotic and is not used to set parameters.
- No known algorithm exploits the ring structure of power-of-two cyclotomic instances with standard error distributions.
Best known attacks
- Lattice reduction. As for LWE and Module-LWE in dimension n: BKZ with sieving, primal and dual.
- Ideal-SVP. In cyclotomic rings, quantum algorithms find vectors within a subexponential approximation factor in polynomial time (Cramer, Ducas, Peikert and Regev, 2016; Cramer, Ducas and Wesolowski, 2017). The factors are far larger than those the reduction or the schemes depend on, and the algorithms do not solve Ring-LWE.
- Weak instances. Instances over specially chosen number fields or with non-standard error distributions were shown to be weak in 2015 and 2016. Power-of-two cyclotomic rings with standard errors are not affected.
Limitations
- Security is raised only by increasing the ring dimension, which for power-of-two cyclotomics doubles at each step. Module-LWE fixes the ring at dimension 256 and varies the rank instead.
- Rank 1 is the case with the most structure per unit of dimension. This is the stated reason for preferring modules in ML-KEM and ML-DSA: an attack exploiting ideal structure would not necessarily extend to rank 2 or more.