Bounds on the complexity of computing Groebner bases for HFE systems

[This post is based on a talk by Elisa Gorla at the SIAM Conference on Applied Algebraic Geometry at 9/7/2019]

It is well known that today’s public key cryptography (RSA, ECC) is vulnerable to devastating attacks from quantum computers. Therefore, it is important to design new cryptosystems that do not rely on problems such as factoring or discrete logarithms that are known to be solvable in polynomial time by a quantum computer. The talk of Elisa Gorla was about “Hidden Field Equations” (HFE), one of the proposed quantum resistant cryptosystems, which relies on the problem of finding a solution to a system of multivariate quadratic equations.

Hidden Field Equations in a nutshell

HFE is a cryptographic trapdoor function (a function that is easy to evaluate, but hard to invert unless you know a secret piece of information). This trapdoor is a multivariate quadratic map \( \mathcal{P} \) of \( n \) equations in \( n\) variables over a finite field \( GF(q) \). The trapdoor is constructed as follows:

  • First, sample a particular quadratic map \( \mathcal{Q} \) that is easy to evaluate and is easy to invert.
  • Then you hide the structure of \( \mathcal{Q} \), by composing it with affine linear maps \( \mathbf{T},\mathbf{S} \) to get the trapdoor function \( \mathcal{P} = \mathbf{T} \circ \mathcal{Q} \circ \mathbf{S} \).

The hope is that the affine maps hide the structure of \( \mathcal{Q} \) well enough such that \( \mathcal{P} \) looks random (and hence it is hard to invert). However, if you know the factorization \(
\mathbf{T} \circ \mathcal{Q} \circ \mathbf{S} \), then \( \mathcal{P} \) is easy to invert (just invert the maps \( \mathbf{T} , \mathcal{Q} , \mathbf{S} \) one by one). These trapdoors allow to construct PKE and signatures. In the case of HFE, the central map \( \mathcal{Q} \) is essentially a univariate polynomial over a field extenstion \( GF(q^n) \), written out as a set of multivariate polynomials over \( GF(q) \). The univariate polynomial is chosen in such a way that the corresponding multivariate polynomials are quadratic. Since finding roots of a univariate polynomial over \( GF(q^n) \) is easy, the system \( \mathcal{Q} \) can be inverted easily.

Groebner Basis Attacks

If the affine maps \( \mathbf{S},\mathbf{T} \) do their job of hiding the structure of \( \mathcal{Q} \), then \( \mathcal{P} \) essentially looks like a random system, for which finding solutions is very hard. This is good, because if an adversary can invert the trapdoor functions he could decrypt ciphertexts or forge signatures. However, it is known that in the case of HFE, the trapdoor functions are “not random enough”, because computing a Groebner basis for these systems of polynomials can be much easier than for truly random systems of multivariate quadratic equations. This is a problem, because from a Groebner basis for the lexicographic term order one can essentially read off the solutions. Therefore, it is essential for the security of the HFE system to know exactly how fast this Groebner basis computation is in the case of HFE public keys. This is what the recent work of Elisa and her coworkers is about.

They study the last fall degree (denoted by \( d_f \) ) of the HFE public keys. An informal definition goes as follows: For a system of polynomials \( \mathcal{P} = \{p_1,p_2,\cdots, p_n\} \) we can define a chain of vector spaces \( V_1 \subset V_2 \subset V_3 \subset \cdots \), where \( V_d \) is essentially the vector space of polynomials that can be computed from \( \{p_1, \cdots, p_n\} \) by taking linear combinations and multiplying with monomials, without ever using a polynomial of degree higher than \( d \). The last fall degree is then defined as the minimal value \( d \) such that for all \( f \) in the ideal generated by \( \mathcal{P} \) we have \( f \in V_{\max(d,\deg(f))} \). Current algorithms have a running time that is exponential in \( d_f \) , so the last fall degree is a good measure to capture the complexity of a Groebner basis computation. Moreover, unlike similar notions, the last fall degree is independent of the choice of basis, and independent of the term order, which makes it a nicer mathematical property.

Elisa and her coauthors proved that for HFE systems the last fall degree is bounded by \[ d_f \leq (q-1)(n+1) +1 \]
which is tighter than previously known bounds by roughly a factor of 2.