Ring learning with errors
In post-quantum cryptography, ring learning with errors (RLWE) is a computational problem which serves as the foundation of new cryptographic algorithms, such as NewHope, designed to protect against cryptanalysis by quantum computers and also to provide the basis for homomorphic encryption. Public-key cryptography relies on construction of mathematical problems that are believed to be hard to solve if no further information is available, but are easy to solve if some information used in the problem construction is known. Some problems of this sort that are currently used in cryptography are at risk of attack if sufficiently large quantum computers can ever be built, so resistant problems are sought. RLWE is more properly called learning with errors over rings and is simply the larger learning with errors (LWE) problem specialized to polynomial rings over finite fields. Because of the presumed difficulty of solving the RLWE problem even on a quantum computer, RLWE based cryptography may form the fundamental base for public-key cryptography in the future just as the integer factorization and discrete logarithm problem have served as the base for public key cryptography since the early 1980s.…
In post-quantum cryptography, ring learning with errors (RLWE) is a computational problem which serves as the foundation of new cryptographic algorithms, such as NewHope, designed to protect against cryptanalysis by quantum computers and also to provide the basis for homomorphic encryption. Public-key cryptography relies on construction of mathematical problems that are believed to be hard to solve if no further information is available, but are easy to solve if some information used in the problem construction is known. Some problems of this sort that are currently used in cryptography are at risk of attack if sufficiently large quantum computers can ever be built, so resistant problems are sought. RLWE is more properly called learning with errors over rings and is simply the larger learning with errors (LWE) problem specialized to polynomial rings over finite fields. Because of the presumed difficulty of solving the RLWE problem even on a quantum computer, RLWE based cryptography may form the fundamental base for public-key cryptography in the future just as the integer factorization and discrete logarithm problem have served as the base for public key cryptography since the early 1980s. An important feature of basing cryptography on the ring learning with errors problem is the fact that the solution to the RLWE problem can be used to solve a version of the shortest vector problem (SVP) in a lattice (a polynomial-time reduction from this SVP problem to the RLWE problem has been presented ). The ring learning with errors (RLWE) problem is built on the arithmetic of polynomials with coefficients from a finite field. A typical polynomial a(x) is expressed as: a(x) = a_0 + a_1x + a_2x^2 + \ldots + a_{n-2}x^{n-2} + a_{n-1}x^{n-1} Polynomials can be added and multiplied in the usual fashion. In the RLWE context the coefficients of the polynomials and all operations involving those coefficients will be done in a finite field, typically the field \mathbf{Z}/q\mathbf{Z} = \mathbf{F}_q for a prime integer q . The set of polynomials over a finite field with the operations of addition and multiplication forms an infinite polynomial ring ( \mathbf{F}_q[x] ). The RLWE context works with a finite quotient ring of this infinite ring. The quotient ring is typically the finite quotient (factor) ring formed by reducing all of the polynomials in \mathbf{F}_q[x] modulo an irreducible polynomial \Phi(x) . This finite quotient ring can be written as \mathbf{F}_q[x]/\Phi(x) though many authors write \mathbf{Z}_q[x]/\Phi(x) . If the degree of the polynomial \Phi(x) is n , the quotient ring becomes the ring of polynomials of degree less than n modulo \Phi(x) with coefficients from F_q . The values n , q , together with the polynomial \Phi(x) partially define the mathematical context for the RLWE problem. Another concept necessary for the RLWE problem is the idea of "small" polynomials with respect to some norm. The typical norm used in the RLWE problem is known as the infinity norm (also called the uniform norm). The infinity norm of a polynomial is simply the largest coefficient of the polynomial when these coefficients are viewed as integers. Hence, ||a(x)||_\infty = b states that the infinity norm of the polynomial a(x) is b . Thus b is the largest coefficient of a(x) . The final concept necessary to understand the RLWE problem is the generation of random polynomials in \mathbf{F}_q[x]/\Phi(x) and the generation of "small" polynomials . A random polynomial is easily generated by simply randomly sampling the n coefficients of the polynomial from \mathbf{F}_q , where \mathbf{F}_q is typically represented as the set \{-(q-1)/2, ..., -1, 0, 1, ..., (q-1)/2\} . Randomly generating a "small" polynomial is done by generating the coefficients of the polynomial from \mathbf{F}_q in a way that either guarantees small coefficients or makes them very likely. When q is a prime integer, there are two common ways to do this: Using Uniform Sampling – The coefficients of the small polynomial are uniformly sampled from a set of small coefficients. Let b be an integer that is much less than q . If we randomly choose coefficients from the set: \{ -b, -b+1, -b+2, \ldots , -2, -1, 0, 1, 2, \ldots , b-2, b-1, b \} the polynomial will be small with respect to the bound ( b ). Using discrete Gaussian sampling – For an odd value for q , the coefficients of the polynomial are randomly chosen by sampling from the set \{ -(q-1)/2, \ldots , (q-1)/2 \} according to a discrete Gaussian distribution with mean 0 and distribution parameter \sigma . The references describe in full detail how this can be accomplished. It is more complicated than uniform sampling but it allows for a proof of security of the algorithm. The paper "Sampling from Discrete Gaussians for Lattice-Based Cryptography on a Constrained Device" by Dwarakanath and Galbraith provides an overview of this problem. b_i(x) = (a_i(x)\cdot s(x)) + e_i(x) . The Search version entails finding the unknown polynomial s(x) given the list of polynomial pairs ( a_i(x), b_i(x) ) . The Decision version of the problem can be stated as follows. Given a list of polynomial pairs ( a_i(x), b_i(x) ) , determine whether the b_i(x) polynomials were constructed as b_i(x) = (a_i(x)\cdot s(x)) + e_i(x) or were generated randomly from \mathbf{F}_q[x]/\Phi(x) with coefficients from all of \mathbf{F}_q . The difficulty of this problem is parameterized by the choice of the quotient polynomial ( \Phi(x) ), its degree ( n ), the field ( \mathbf{F}_q ), and the smallness bound ( b ). In many RLWE based public key algorithms the private key will be a pair of small polynomials s(x) and e(x) . The corresponding public key will be a pair of polynomials a(x) , selected randomly from \mathbf{F}_q[x]/\Phi(x) , and the polynomial t(x)= (a(x)\cdot s(x)) + e(x) . Given a(x) and t(x) , it should be computationally infeasible to recover the polynomial s(x) . ==References==
References
No reference rows published for this article.
Cite this article
MLA
"Ring learning with errors." encyclopegia.org, 2025, https://encyclopegia.org/wiki/ring-learning-with-errors. Accessed 24 November 2026.
Chicago
"Ring learning with errors." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/ring-learning-with-errors.
APA
encyclopegia.org. (2025). Ring learning with errors. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/ring-learning-with-errors
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON