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. Homomorphic encryption is a form of encryption that allows computation on ciphertext, such as arithmetic on numeric values stored in an encrypted database.
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.[1] 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 security of modern cryptography, in particular public-key cryptography, is based on the assumed intractability of solving certain computational problems if the size of the problem is large enough and the instance of the problem to be solved is chosen randomly. The classic example that has been used since the 1970s is the integer factorization problem. It is believed that it is computationally intractable to factor the product of two prime numbers if those prime numbers are large enough and chosen at random.[2] As of 2015 research has led to the factorization of the product of two 384-bit primes but not the product of two 512-bit primes. Integer factorization forms the basis of the widely used RSA cryptographic algorithm.
The ring learning with errors (RLWE) problem is built on the arithmetic of polynomials with coefficients from a finite field. A typical polynomial is expressed as:
a(x)=a0+a1x+
2 | |
a | |
2x |
+\ldots+an-2xn-2+an-1xn-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 for a prime integer . The set of polynomials over a finite field with the operations of addition and multiplication forms an infinite polynomial ring (). 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 modulo an irreducible polynomial . This finite quotient ring can be written as
Fq[x]/\Phi(x)
Zq[x]/\Phi(x)
If the degree of the polynomial
\Phi(x)
n
\Phi(x)
Fq
\Phi(x)
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
a(x)
b
b
a(x)
The final concept necessary to understand the RLWE problem is the generation of random polynomials in
Fq[x]/\Phi(x)
n
Fq
Fq
\{-(q-1)/2,...,-1,0,1,...,(q-1)/2\}
Randomly generating a "small" polynomial is done by generating the coefficients of the polynomial from
Fq
q
0
The RLWE problem can be stated in two different ways: a "search" version and a "decision" version. Both begin with the same construction. Let
ai(x)
Fq[x]/\Phi(x)
Fq
ei(x)
b
Fq[x]/\Phi(x)
s(x)
b
Fq[x]/\Phi(x)
bi(x)=(ai(x) ⋅ s(x))+ei(x)
s(x)
(ai(x),bi(x))
The Decision version of the problem can be stated as follows. Given a list of polynomial pairs
(ai(x),bi(x))
bi(x)
bi(x)=(ai(x) ⋅ s(x))+ei(x)
Fq[x]/\Phi(x)
Fq
The difficulty of this problem is parameterized by the choice of the quotient polynomial (
\Phi(x)
n
Fq
b
s(x)
e(x)
a(x)
Fq[x]/\Phi(x)
t(x)=(a(x) ⋅ s(x))+e(x)
a(x)
t(x)
s(x)
In cases where the polynomial
\Phi(x)
Z[x]/\Phi(x)
"... we give a quantum reduction from approximate SVP (in the worst case) on ideal lattices in
R
s\inRq
s
In that quote, The ring
R
Z[x]/\Phi(x)
Rq
Fq[x]/\Phi(x)
The α-SVP in regular lattices is known to be NP-hard due to work by Daniele Micciancio in 2001, although not for values of α required for a reduction to general learning with errors problem.[5] However, there is not yet a proof to show that the difficulty of the α-SVP for ideal lattices is equivalent to the average α-SVP. Rather we have a proof that if there are any α-SVP instances that are hard to solve in ideal lattices then the RLWE Problem will be hard in random instances.
Regarding the difficulty of Shortest Vector Problems in Ideal Lattices, researcher Michael Schneider writes, "So far there is no SVP algorithm making use of the special structure of ideal lattices. It is widely believed that solving SVP (and all other lattice problems) in ideal lattices is as hard as in regular lattices."[6] The difficulty of these problems on regular lattices is provably NP-hard. There are, however, a minority of researchers who do not believe that ideal lattices share the same security properties as regular lattices.[7]
Peikert believes that these security equivalences make the RLWE problem a good basis for future cryptography. He writes: "There is a mathematical proof that the only way to break the cryptosystem (within some formal attack model) on its random instances is by being able to solve the underlying lattice problem in the worst case" (emphasis in the original).[8]
A major advantage that RLWE based cryptography has over the original learning with errors (LWE) based cryptography is found in the size of the public and private keys. RLWE keys are roughly the square root of keys in LWE. For 128 bits of security an RLWE cryptographic algorithm would use public keys around 7000 bits in length.[9] The corresponding LWE scheme would require public keys of 49 million bits for the same level of security. On the other hand, RLWE keys are larger than the keys sizes for currently used public key algorithms like RSA and Elliptic Curve Diffie-Hellman which require public key sizes of 3072 bits and 256 bits, respectively, to achieve a 128-bit level of security. From a computational standpoint, however, RLWE algorithms have been shown to be the equal of or better than existing public key systems.[10]
Three groups of RLWE cryptographic algorithms exist:
See main article: Ring learning with errors key exchange. The fundamental idea of using LWE and Ring LWE for key exchange was proposed and filed at the University of Cincinnati in 2011 by Jintai Ding. The basic idea comes from the associativity of matrix multiplications, and the errors are used to provide the security. The paper[11] appeared in 2012 after a provisional patent application was filed in 2012.
In 2014, Peikert[12] presented a key transport scheme following the same basic idea of Ding's, where the new idea of sending additional 1 bit signal for rounding in Ding's construction is also utilized. An RLWE version of the classic MQV variant of a Diffie-Hellman key exchange was later published by Zhang et al.[13] The security of both key exchanges is directly related to the problem of finding approximate short vectors in an ideal lattice.
See main article: Ring learning with errors signature. A RLWE version of the classic Feige–Fiat–Shamir Identification protocol was created and converted to a digital signature in 2011 by Lyubashevsky.[14] The details of this signature were extended in 2012 by Gunesyu, Lyubashevsky, and Popplemann in 2012 and published in their paper "Practical Lattice Based Cryptography – A Signature Scheme for Embedded Systems."[15] These papers laid the groundwork for a variety of recent signature algorithms some based directly on the ring learning with errors problem and some which are not tied to the same hard RLWE problems.[16]
See main article: Homomorphic encryption. The purpose of homomorphic encryption is to allow the computations on sensitive data to occur on computing devices that should not be trusted with the data. These computing devices are allowed to process the ciphertext which is output from a homomorphic encryption. In 2011, Brakersky and Vaikuntanathan, published "Fully Homomorphic Encryption from Ring-LWE and Security for Key Dependent Messages" which builds a homomorphic encryption scheme directly on the RLWE problem.[17]