With the advent of quantum supremacy seemingly just around the corner, the lifespan of much of the currently deployed public-key cryptographic protocols appears set to be cut short. This is because most of these protocols rely on the hardness of the integer factorisation or discrete logarithm problem and it is well known that Shor’s algorithm can break both problems, in theory, in polynomial time using a large enough quantum computer.
In the future we will need new classical protocols which rely on hard problems which remain hard even if attacked using quantum algorithms, that is we need post-quantum cryptography. To this end, the National Institute of Standards and Technology (NIST) in the US is currently running a post-quantum cryptography standardization process with the aim to ‘solicit, evaluate, and standardize one or more quantum-resistant public-key cryptographic algorithms’.
In total, NIST received 65 submissions of which the majority can be classed as lattice based or code based. At the beginning of 2019 it was announced that 26 of these candidates had progressed to the second round of the process; 11 of which NIST classifies as lattice based and another 7 as code based. Furthermore, the majority of lattice based submissions rely on the hardness of a problem from the learning with errors (LWE) family of problems. The problems in this family essentially consist of solving a system of linear equations except that a small element (or ‘error’) is added to the constant term of each equation.
One advantages of the LWE family of problems (as well as the SIS family) is that for certain parameters their security can be shown to be provably hard-on-average, assuming the worst-case hardness of certain problems in lattices.
Among the initial submissions to the NIST competition, a number of schemes based their hardness on a problem which looked a lot like the Ring or Module variants of the LWE problem but used large integer arithmetic in \( \mathbb{Z}_M \) instead of polynomial arithmetic in a quotient ring of the form \( R_q := \mathbb{Z}_q[X]/(f(X)) \); namely the Mersenne-756839, Ramstake, and Three Bears proposals, the last of which has progressed into the second round.
In both Mersenne-756839 and Ramstake, \( M \) is chosen to be a Mersenne prime, a prime number of the form \(2^m-1\) for some prime \(m\). While \(\mathbb{Z}_M\) might not look anything like the ring \(R_q\), when considering how the small elements used as errors are defined we start to see a connection. In \(\mathbb{Z}_M\), small elements are those integers which when written in base 2 have only a fixed small number of non-zero coefficients. Informally, small elements of \(R_q\) are those whose coefficients are small relative to \(q\) when taken in the symmetric interval about \(0\). In both cases the important point is that in some expansion the element has a vector of coefficients coming from some distribution of small integers. The only difference is that in \(R_q\) this expansion is with respect to the explicit base \(X\) while in \(\mathbb{Z}_M\) it is with respect to the implicit base 2.
This suggests that we can view the ring \(\mathbb{Z}_{M}\) as equivalent to the ring \(\mathbb{Z}[X]/(X^m-1,X-2)\) and this looks a lot more like \(R_q\) with \(f(X)=X^m-1\), the only difference is the second modulus \(q\) is replaced by \(X-2\). For the Three Bears scheme things are generalised further, \(M\) is now taken to be a generalised Mersenne prime (also called a Solinas prime): a prime of the form \(f(b)\) for some low-degree polynomial \(f\) having small coefficients. Three Bears explicitly uses \(M=2^{3120}-2^{1560}-1\) for example, so that \(f(X)=X^{312}-X^{156}-1\) and \(b=2^{10}\).
In this way, each of the three constructions relies for its hardness on an instance of a generalised LWE problem but instantiated with a slightly different base ring than used in ring-LWE. However, ring-LWE is not the only cryptographic problem to use rings of the form \(R_q\). Indeed, the NTRU problem used such rings well before the LWE problem was even proposed and one can ask if a similar generalisation can be applied here. This is indeed true and was considered by Aggarwal, Joux, Prakash and Santha. The ring variant of the SIS problem can likewise be modified.
In a recent paper, to be presented at the NutMiC conference, we consider generalising things even further and propose a catalogue of cryptographic problems coming from linear algebra encompassing all the problems mentioned above and revealing many gaps in the existing literature which can be filled with new plausibly post-quantum secure hard problems. We called our new generalised problems Ideal-LWE, Ideal-NTRU and Ideal-SIS.
One aspect of our work is to consider finite rings of the form \(\mathbb{Z}[X]/(f(X),g(X))\), which allows for a second modulus \(g(X)\) which can have degree larger than 1. The case when \(g(X)\) is constant gives the standard well-known problems and the case when \(g(X)\) is linear (and monic) gives their large integer arithmetic variants.
A main reason for introducing a general \(g\) is its impact on the security analysis of the problems. For the standard family of LWE problems with integer \(g\), the best known attacks use strong lattice reduction algorithms to look for short vectors corresponding to small elements from the ring \(R_q\), but when one switches to using \(g\) a linear polynomial with small coefficients such as \(X-2\), the same lattice reduction attacks stop working due to the fact that extremely short vectors corresponding to the polynomial \(g\) are present in the lattice. Instead, attacks have to guess a suitable subspace and consider the sublattice orthogonal to this subspace which enables simple lattice reduction algorithms working in smaller dimensions to recover the secret. Such attacks are very similar to those against the general information-set decoding problem from code based cryptography. The need to guess correctly means the attacks are of a combinatorial nature and lattice reduction is not the bottleneck, hence why schemes like Mersenne-756839 are not considered lattice based.
In this sense we can see \(g\) a large constant and \(g\) linear with small coefficients as two extremes of a spectrum where at one end lattice attacks are optimal and the other end where combinatorial attacks perform the best. Taking other choices for \(g\) will place you elsewhere on the spectrum. An interesting research question we are looking at is trying to determine a boundary between the regions where each type of attack is the most efficient.
This blog post was written by Carl Bootland (Based on joint work with Wouter Castryck, Alan Szepieniec and Frederik Vercauteren)


