Abstract
We prove that the Ring Learning With Errors (RLWE) and the Polynomial Learning With Errors (PLWE) problems over the cyclotomic field \({\mathbb {Q}}(\zeta _n)\) are not equivalent. Precisely, we show that reducing one problem to the other increases the noise by a factor that is more than polynomial in n. We do so by providing a lower bound, holding for infinitely many positive integers n, for the condition number of the Vandermonde matrix of the nth cyclotomic polynomial.
Similar content being viewed by others
1 Introduction
Since the theoretical results of Ajtai [1], lattice-based cryptography has gained increasing interest. Indeed, numerous lattice-based encryption and digital signature schemes, with performance comparable or even superior to that of their number-theoretic counterparts, have been proposed [2, 10, 13, 16]. In particular, because of their presumed resistance against quantum attacks, lattice-based proposals are the most numerous in the final phase of the NIST post-quantum standardization process, with finalist candidates in both key encapsulation [3, 5, 11] and digital signature schemes [4, 15].
The main building block of lattice-based cryptographic schemes is the Learning With Errors (LWE) problem [19], which, roughly speaking, consists of retrieving a secret vector \(s \in {\mathbb {Z}}_q^n\) from a noisy random sample of matrix products. On the one hand, LWE-based encryption schemes enjoy good computational efficiency and solid theoretical security bases. On the other hand, they require the ciphertexts or the public keys to be nearly quadratic with respect to the security parameters. To overcome this inefficiency, algebraic variants of the LWE problem have been introduced, which consider the problem no longer over \({\mathbb {Z}}_q\) but over the quotient ring \({\mathbb {Z}}_q[X]/(f)\), where \(f\in {\mathbb {Z}}_q[X]\) is a monic and irreducible polynomial. The variant known as Polynomial-LWE (PLWE), was first proposed using power-of-two degree cyclotomic polynomials [22]. Later, Lyubashevsky, Peikert, and Regev [18] introduced the Ring-LWE (RLWE) variant over the ring of integers \({\mathcal {O}}_K\) of a number field \(K = {\mathbb {Q}}(\theta )\) (for surveys on RLWE, see [7, 14]).
The main advantage of RLWE (and of later generalizations such as Module-LWE [17]) is the provable-security link with hard computational problems over (ideal) lattices, as for plain LWE. Nevertheless, most of the concrete constructions of lattice-based schemes, while enjoying the security proofs of RLWE, are expressed in the simpler formalism of PLWE. The latter is in fact preferable in implementations, where the modular arithmetic between polynomials can be efficiently implemented. For these reasons, it is interesting to study for which families of polynomials f the RLWE and PLWE problems are equivalent, that is, every solution of the first problem can be turned in polynomial time into a solution of the second problem, and viceversa, incurring in a noise increase that is polynomial in the degree of f. From a theoretical point of view, the problem of equivalence between RLWE and PLWE was formalized for the first time by Rosca, Stehlé, and Wallet [24], who also explained the relationship between the noise increase and the condition number of a certain Vandermonde matrix associated with f, as detailed below.
More precisely, let \(K = {\mathbb {Q}}(\theta )\) be a monogenic number field of degree m, and let \(f \in {\mathbb {Z}}[X]\) be the minimal polynomial of \(\theta\), so that \({\mathcal {O}}_K \cong {\mathbb {Z}}[X]/(f)\). The geometric notion of short element derives from a choice of a norm on K by embedding the number field in \({\mathbb {C}}^m\). On the one hand, RLWE makes use of the canonical embedding (or Minkowski embedding) \(\sigma\) from K to \({\mathbb {C}}^m\), where \(\sigma _i(\theta )\) (\(i=1,\ldots ,m\)) are the Galois conjugates of \(\theta\). On the other hand, PLWE makes use of the coefficient embedding, which maps each \(x \in {\mathcal {O}}_K\) to the vector \((x_0, \ldots , x_{m-1}) \in {\mathbb {Z}}^m\) of its coefficients with respect to the power basis \(1, \theta , \ldots , \theta ^{m-1}\). As a linear map, the canonical embedding \(\sigma\) has a matrix representation \(V \in {\mathbb {C}}^{m \times m}\), so that, for each \(x \in {\mathcal {O}}_K\), we have \(\sigma (x) = V \cdot (x_0, \dots , x_{m-1})^\intercal\). For the equivalence between RLWE and PLWE, it is important to determine when, whether \(\Vert x\Vert\) is small, then so is \(\Vert \sigma (x)\Vert\), and vice versa. This notion is quantified by V having a small condition number \({\text {Cond}}(V) := \Vert V\Vert \Vert V^{-1}\Vert\), where \(\Vert V\Vert := \sqrt{{\text {Tr}}(V^*\!\,V)}\) is the Frobenius norm of V, and \(V^*\) is the conjugate transpose of V. Precisely, for the equivalence of the RLWE and PLWE problems it must be \({\text {Cond}}(V) = O(m^r)\) for some constant \(r > 0\), depending only on the family of polynomials f.
The equivalence problem can be studied in general for any number field. Although equivalence has been proved for restricted families of polynomials defining number fields [24], the greatest interest arguably concerns cyclotomic fields, which are the most used in cryptographic applications. For cyclotomic fields, the equivalence is well known for the power-of-two case [22] and recently the problem has received more attention both from a theoretical point of view [6, 12] and in practical applications [25]. However, to the best of our knowledge, prior to this work a general result on RLWE and PLWE equivalence for cyclotomic fields was still missing. When \(K = {\mathbb {Q}}(\zeta _n)\) is the \(n\hbox {th}\) cyclotomic field, \(V_n := V\) is the Vandermonde matrix of the \(n\hbox {th}\) cyclotomic polynomial \(\varPhi _n(X)\), that is,
where \(\zeta _{n,0}, \ldots , \zeta _{n,m-1}\) are the primitive nth roots of unity, and \(m = \varphi (n)\) is the Euler totient function of n. Note that \(\varPhi _n(X)\) has degree m. If n is a power of 2, then it is easy to show that \(V_n\) is a scaled isometry, so that \({\text {Cond}}(V_n) = m\) and consequently RLWE and PLWE are equivalent. Blanco-Chacón [6] (see also [8, 9]) proved that \({\text {Cond}}(V_n) = O(n^{r_k})\), where \(r_k > 0\) is a constant depending only on the number k of distinct prime factors of n. Therefore, RLWE and PLWE restricted to the positive integers n with a bounded number of prime factors are equivalent. Furthermore, in a previous work [12], the authors gave an explicit formula for the condition number of \(V_n\) when n is a prime power or a power of 2 times an odd prime power.
Our main result is the following.
Theorem 1
There exist infinitely many positive integers n such that
In particular, for every fixed \(r > 0\), we have that \({\text {Cond}}(V_n) \ne O(n^r)\).
As a consequence of Theorem 1 and the previous considerations, one immediately gets the following corollary.
Corollary 1
RLWE and PLWE over cyclotomic fields are not equivalent.
Corollary 1 settles the question of the equivalence between RLWE and PLWE over cyclotomic fields by answering it negatively. Therefore, from both a practical and a theoretical point of view, future investigations have to keep in mind that, in general, results on RLWE over cyclotomic fields cannot be translated into results on PLWE over cyclotomic fields, and vice versa, unless further restrictions on the generating polynomials are imposed.
An interesting direction would be to determine the maximal order of \({\text {Cond}}(V_n)\) and, in particular, if the lower bound of Theorem 1 can be improved significantly. For a plot of the values of \({\text {Cond}}(V_n)\) up to \(n=10,000\), see Fig. 1. The library used for the calculation of \({\text {Cond}}(V_n)\) is available in [21].
2 Proof of Theorem 1
Throughout this section, let n be a positive integer and put \(m := \varphi (n)\). We write \({\text {Id}}_k\) for the \(k \times k\) identity matrix, and we count rows and columns starting from 0, so that the first row or column is the 0th. Furthermore, let
be the \(m \times mn\) matrix obtained by “continuing” \(V_n\) to the right.
Lemma 1
We have \(W_n W_n^* = mn {\text {Id}}_m\).
Proof
The scalar product of the ith row of \(W_n\) and the jth column of \(W_n^*\) is equal to
where we used the formula for the sum of a geometric progression. The claim follows. \(\square\)
Let \(a_n(j)\) denote the coefficient of \(X^j\) in the nth cyclotomic polynomial \(\varPhi _n(X)\), that is,
The study of the coefficients of the cyclotomic polynomials has a very long history, which goes back at least to Gauss. For a survey, see [20]. Let A(n) be the maximum of the absolute values of \(a_n(0), \dots , a_n(m - 1)\). We need the following result of Vaughan [23].
Theorem 2
We have \(A(n) > \exp \!\left( n^{\log 2 / \log \log n} \right)\) for infinitely many positive integers n.
Let \(C_n\) be the companion matrix of \(\varPhi _n(X)\), which is the \(m \times m\) matrix defined as
and let
be the \(m \times mn\) matrix obtained by the juxtaposition of the first n powers of \(C_n^m\).
Lemma 2
We have \(V_n^{-1} W_n = S_n\).
Proof
Let \(K := {\mathbb {Q}}(\zeta _{n})\) be the nth cyclotomic field. For each \(k \in \{0, \dots , m-1\}\) we have that \(1, \zeta _{n,k}, \zeta _{n,k}^2, \dots , \zeta _{n, k}^{m - 1}\) is a basis of K over \({\mathbb {Q}}\). Moreover, multiplication by \(\zeta _{n, k}\) is a \({\mathbb {Q}}\)-linear map \(K \rightarrow K\) whose transformation matrix respect to the aforementioned basis is equal to \(C_n\). Therefore, if \(z_0, \dots , z_{m-1} \in K\) satisfy
for some \(c_0, \dots , c_{m-1} \in {\mathbb {Q}}\), then it follows that
for every integer \(j \ge 0\). Consequently, we have that
for every integer \(j \ge 0\). Therefore, by juxtaposition of (1) for \(j = 0, m, 2m, \dots , (n - 1)m\), we obtain that \(W_n = V_n S_n\). The claim follows. \(\square\)
Lemma 3
We have \(\Vert V_n^{-1}\Vert ^2 = \tfrac{1}{mn}\sum _{k = 0}^{n - 1} \Vert C_n^{km}\Vert ^2\).
Proof
From Lemmas 1 and 2, it follows that
Moreover, by the definition of \(S_n\), we have that
and the claim follows.
Lemma 4
Let k be a positive integer and let
Then, for every integer \(j \in [1, k]\), the \((k - j)\)th column of \(C^j\) is equal to \(\begin{pmatrix}c_0&c_1&\cdots&c_{k-1} \end{pmatrix}^\intercal\).
Proof
Actually, a stronger claim holds: For every integer \(j \in [1, k]\), the 0th, 1th, ..., \((k - j)\)th columns of \(C^j\) are equal to the \((j - 1)\)th, jth, ..., \((k - 1)\)th columns of C, respectively. This follows easily by induction on j.
We are ready to prove Theorem 1. From Lemmas 3 and 4, it follows that
In turn, this implies that
As a consequence, Theorem 2 yields that
for infinitely many positive integers n. Therefore, for every fixed \(r > 0\), we have that
so that \({\text {Cond}}(V_n) \ne O(n^r)\). The proof is complete.
Change history
20 July 2022
Missing Open Access funding information has been added in the Funding Note
References
Ajtai, M.: Generating hard instances of lattice problems. In: Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, pp. 99–108 (1996)
Alkim, E., Ducas, L., Pöppelmann, T., Schwabe, P.: Post-quantum key exchange a new hope. In: 25Th USENIX Security Symposium (USENIX Security 16), pp. 327–343 (2016)
Avanzi, R., Bos, J., Ducas, L., Kiltz, E., Lepoint, T., Lyubashevsky, V., Schanck, J.M., Schwabe, P., Seiler, G., Stehlé, D.: CRYSTALS-Kyber: Algorithm specifications and supporting documentation, Tech. report
Bai, S., Ducas, L., Kiltz, E., Lepoint, T., Lyubashevsky, V., Schwabe, P., Seiler, G., Stehlé, D.: CRYSTALS-Dilithium: Algorithm specifications and supporting documentation, Tech. report, (2021) https://pq-crystals.org/dilithium/data/dilithium-specification-round3-20210208.pdf
Basso, A., Bermudo Mera, J.M., D’Anvers, J.-P., Karmakar, A. Roy, S.S., Van Beirendonck, M., Vercauteren, F.: SABER: Algorithm specifications and supporting documentation, Tech. report, (2020), https://www.esat.kuleuven.be/cosic/pqcrypto/saber/files/saberspecround3.pdf
Blanco-Chacón, I.: On the RLWE/PLWE equivalence for cyclotomic number fields. Appl. Algebra Eng. Commun. Comput. (2020)
Blanco-Chacón, I.: Ring learning with errors: a crossroads between post-quantum cryptography, machine learning and number theory. Irish Math. Soc. Bull. 86, 17–46 (2020)
Blanco-Chacón, I.: RLWE/PLWE equivalence for totally real cyclotomic subextensions via quasi-Vandermonde matrices. J. Algebra Appl. (2021)
Blanco-Chacón , I., López-Hernanz, L.: RLWE/PLWE equivalence for the maximal totally real subextension of the \(2^r pq\) -th cyclotomic field, arXiv:2111.13484
Bos, J., Ducas, L., Kiltz, E., Lepoint, T., Lyubashevsky, V., Schanck, J.M., Schwabe, P., Seiler, G., Stehlé, D.: CRYSTALS-Kyber: A CCA-secure module-lattice-based KEM. In: 2018 IEEE European Symposium on Security and Privacy (EuroS&P), IEEE, pp. 353–367 (2018)
Chen, C., Danba, O., Rijneveld, J., Schanck, J.M., Saito, T., Schwabe, P., Whyte, W., Xagawa, K., Yamakawa, T., Zhang, Z.: NTRU: Algorithm specifications and supporting documentation, Tech. report (2020) http://web.archive.org/web/20211110120032/https://ntru.org/release/NIST-PQ-Submission-NTRU-20201016.tar.gz
Di Scala, A.J., Sanna, C., Signorini, E.: On the condition number of the Vandermonde matrix of the \(n\)th cyclotomic polynomial. J. Math. Cryptol. 15(1), 174–178 (2021)
Ducas, L., Kiltz, E., Lepoint, T., Lyubashevsky, V., Schwabe, P., Seiler, G., Stehlé, D.: CRYSTALS-Dilithium: a lattice-based digital signature scheme. IACR Trans. Cryptograph. Hardw. Embed. Syst. 2018, 238–268 (2018)
Elias, Y., Lauter, K.E., Ozman, E., Stange, K.E.: Ring-LWE cryptography for the number theorist, Directions in Number Theory, Assoc. Women Math. Ser., vol. 3, Springer, Cham, pp. 271–290 (2016)
Fouque, P.-A., Hoffstein, J., Kirchner, P., Lyubashevsky, V., Pornin, T., Prest, T., Ricosset, T., Seiler, G., Whyte, W., Zhang, Z.: Falcon: Algorithm specifications and supporting documentation, Tech. report (2020) https://web.archive.org/web/20211215114823/https://falcon-sign.info/falcon.pdf
Hülsing, A., Rijneveld, J., Schanck, J., Schwabe, P.: High-speed key encapsulation from NTRU. In: International Conference on Cryptographic Hardware and Embedded Systems. Springer, pp. 232–252 (2017)
Langlois, A., Stehlé, D.: Worst-case to average-case reductions for module lattices. Des. Codes Crypt. 75(3), 565–599 (2015)
Lyubashevsky, V., Peikert, C., Regev, O.: Learning with Errors over Rings, Algorithmic Number Theory, vol. 6197, pp. 3–3. Springer, Berlin (2010)
Regev, O.: On lattices, learning with errors, random linear codes, and cryptography. J. ACM 56, 84–93 (2005)
Sanna, C.: A survey on coefficients of cyclotomic polynomials. Expo. Math. https://doi.org/10.1016/j.exmath.2022.03.002
Signorini, E.: Condition number of cyclotomic Vandermonde matrices, (2022), v1.0.0, GitHub: https://github.com/edoars/cyclovandermonde
Stehlé, D., Steinfeld, R., Tanaka, K., Xagawa, K.: Efficient public key encryption based on ideal lattices. In: International Conference on the Theory and Application of Cryptology and Information Security. Springer, pp. 617–635 (2009)
Vaughan, R.C.: Bounds for the coefficients of cyclotomic polynomials. Michigan Math. J. 21(1974), 289–295 (1975)
Rosca, M., Stehlé, D., Wallet, A.: On the ring-LWE and polynomial-LWE problems. In: EUROCRYPT 2018-37th Annual International Conference on the Theory and Applications
Lyubashevsky, V., Seiler, G.: NTTRU: truly fast NTRU using NTT. TCHES 2019(3), 180–201 (2019)
Acknowledgements
The authors are members of CrypTO, the group of Cryptography and Number Theory of Politecnico di Torino. A. J. Di Scala and C. Sanna are members of GNSAGA of INdAM. A. J. Di Scala is a member of DISMA Dipartimento di Eccellenza MIUR 2018-2022. E. Signorini is a cryptographer at Telsy S.p.A.
Funding
Open access funding provided by Politecnico di Torino within the CRUI-CARE Agreement.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visithttp://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Di Scala, A.J., Sanna, C. & Signorini, E. RLWE and PLWE over cyclotomic fields are not equivalent. AAECC 35, 351–358 (2024). https://doi.org/10.1007/s00200-022-00552-9
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00200-022-00552-9