[SAC2019]

The authors describe a new chosen-plaintext attack on the Giophantus encryption scheme.

Akiyama & al. [1] introduced the indeterminate equation version of the learning with errors (IE-LWE) problem. Given a prime \( p \), denote by \( R_{p} \) the ring \( \mathbb{F}_{p}[t]/(t^{n}-1) \). In what follows \( \ell \) will denote an integer much smaller than \( p \). Given a finite subset \( \Gamma_{A} \subset \mathbb{Z}^{2}_{\geq 0}\), we set

\( A(x, y) = \sum_{(i,j) \in \Gamma_{a}} a_{ij}x^{i}y^{j}\)    with \(a_{ij} \in \mathbb{F}_{p} \).

Define the following sets:

\( \Phi_{\Gamma}/R_{p} = \left\{ \chi : \chi = \sum_{(i,j) \in \Gamma} a_{ij}x^{i}y^{j}, a_{ij} \in R_{p} \right\} \)

\( \psi\left( \Gamma_{X}, \ell \right) = \left\{ X \in \Phi/R_{p} : \exists u_{x}(t), u_{y}(t) \in R_{\ell}, X\left( u_{x}, u_{y} \right) = 0 \right\} \)

The IE-LWE problem consists of deciding whether a multivariate polynomial comes from the noisy set

\( T_{X} = \left\{ \left( X, Xr+e \right) : X \in \psi\left( \Gamma_{X}, \ell \right), r \in \Phi_{\Gamma_{r}}/R_{\ell} \right\} \)

or from the uniform set

\( U_{X} = \psi \left( \Gamma_{X}, \ell \right) \times \Psi_{\Gamma_{Xr}}/R_{p} \).

In other words, given a pair of polynomials \( X, Y \), decide whether \( Y = Xr + e \) or \( Y \) is a random elemnt in \( R_{p}[x, y] \).

Based on the IE-LWE problem, Akiyama & al proposed a post-quantum encryption scheme, called Giophantus. at a very high level, the Giophantus encryption algorithm works as follows:

  • Key generation:
    • secret key: \( \left(u_{x}, u_{y} \right) \leftarrow R_{\ell} \times R_{\ell}\)
    • public key: \( X \leftarrow R_{p}[x,y] \) such that \(X\left( u_{x}, u_{y} \right) = 0 \)
  • Encryption: to sign a message \( m \in R_{p} \), choose two random polynomials \( r, \ell \in R_{\ell}[x, y] \) and then compute \( c(x,y) = m(t)+X(x, y)r(x,y)+\ell \cdot e(x,y) \in R_{p}[x,y] \)

Giophantus is IND-CPA secure under the assumption that the IE-LWE problem is hard.

Akiyama & al described a lattice attack on Giophantus. Theattack works as follows. Given a pair \( \left( X, Y \right) \) do the following operations:

  1. Build the equation system \( Y = Xr+e \), where the coefficients of \( r \) and \(e \) are treated as variables.
  2. Find a solution to the above system
  3. Build the lattice as the solution space of the system of equations obtained from \( 0 = Xr+e \)
  4. Solve the CVP with respect to the above solution and lattice to get a short vector corresponding to \( e \)
  5. If we get \( r \in \Phi/R_{p} \) and \( e \in \Phi/R_{\ell} \) such that \( Y = Xr+e \) return 1, otherwise return 0.

The main problem of this attack is the size of the rank of the lattice, which is equal to \(6n\), which makes solving the CVP unfeasible. The authors set the parameters of the scheme accordingly.

The evaluation attack proposed by Vercauteren & al. [2] is another chosen-plaintext attack on Giophantus. The attacker chooses two plaintexts \(m_{0}, m_{1} \) such that \( m_{0}(1) \not\equiv m_{1}(1) \) mod \( \ell \). Upon receiving a challenging ciphertext \( c \) encrypting \(m_{0} \) or \(m_{1} \), do the following:

  1. Define the map \( \varphi: R_{p}[x,y] \rightarrow \mathbb{F}_{p}[x,y] \) by \( \sum f_{ij}(t)x^{i}y^{j} \mapsto \sum f_{ij}(1)x^{i}y^{j} \)
  2. Compute \( X(x,y,1):= \varphi \left( X(x,y) \right) \) and \( c(x, y, 1):= \varphi(c(x, y)) \)
  3. Find \( \left( u_{x}(1), u_{y}(1) \right) \) by exhaustive search
  4. Compute \( c\left( u_{x}(1), u_{y}(1), 1 \right) = m(1) + \ell \cdot e\left(u_{x}(1), u_{y}(1), 1\right) \) and obtain \( m^{\prime}_{b}(1) \equiv c\left( u_{x}(1), u_{y}(1), 1 \right) \) mod \(\ell\)
  5. If \(m^{\prime}_{b}(1) \equiv m_{b}(1) \) mod \(\ell \) return \(b\), otherwise abort.

As \( u_{x}(1), u_{y}(1) \in \left\{0, \dots, n(\ell – 1) \right\} \) we need to search at most \( n^{2}\left( \ell-1\right)^{2}\) elements. However, if \( m^{\prime}_{b}(1)+\ell \cdot e\left( u_{x}(1), u_{y}(1), 1 \right) > p \) ( in \( \mathbb{Z} \) ), the attack fails in recovering \( m_{b}(1) \) mod \( \ell\).

However, in case\( m^{\prime}_{b}(1)+\ell \cdot e\left( u_{x}(1), u_{y}(1), 1 \right) > p \) Vercauteren & al. assert that \( c(u_{x}(1), u_{y}(1), 1) \) mod \( \ell \) might leak partial information on \(m_{b}(1) \) mod \( \ell \). On the other hand, Akiyama & al. claimed that this attack is unfeasible with the recommended parameters.

The authors then propose a new attack that somehow combines the linear algebra attack and the evaluation attack. Given \( X, Y \in R_{p}[x,y] \) the attacks reduces the IE-LWE problem to the CVP on low rank lattices as follows:

  1. Evaluate \( X, Y \) at \( t = 1 \)
  2. Set a lattice
  3. Find \(e_{ij}(1) \) that are coefficients of \( e \left( x, y, 1 \right) \) by solving the CVP
  4. If all \(e_{ij}(1) \leq n\left( \ell -1 \right) \) output 1 (meaning that \(X, Y\) is an IE-LWE instance), otherwise output 0

For the recommended parameters the attack uses 9-dimensional lattices of rank 6, which allows one to exactly solve the CVP. The efficiency of this attack is mainly due to the fact that one does not require exhaustive search. Finally, after a number of experiments, the authors were able to conclude that the attack has success with a probability close to one.

References.

[1] K. Akiyama, Y. Goto, S. Okumura, T. Takagi, K. Nuida, & G. Hanaoka: A public key encryption scheme based on non-linear indeterminate equations. In: Selected Areas in Crypptography – SAC 2017 – 24th International Conference, Ottawa, ON, Canada, August 16-18, 2017, Revised Selected Papers. pp 215-234 (2017)

[2] W. Beullens, W. Castryck & F. Vercauteren: Ind-cpa attack on giophantus. In the official-comments to giophantus for nist round-1-submissions (2018)