This year, the Asiacrypt best paper award went to
The function itself is very simple: It is the syndrome function of a code with parity check matrix \( \mathbf{H} \in \mathbb{F}_q^{r \times n} \) restricted to the set inputs with fixed weight equal to \(w\). Concretely, the trapdoor function is defined as
\( F_{w,\mathbf{H}} : S_{w,n} \rightarrow \mathbb{F}_q^r : x \mapsto x \mathbf{H}^T \)
where \(S_{w,n}\) is the set of codewords of length \(n\) and weight \(w\). The parity check matrix \(\mathbf{H}\) looks like the parity check matrix of a random linear code, but it has some hidden structure that allows the owner of the trapdoor information to invert the syndrome function. To keep the explanation in this blogpost simple, we will pretend that \(\mathbf{H}\) is the parity check matrix of a \((U|U+V) \)-code. The actual scheme uses generalized \((U|U+V)\)-codes, because they are likely to be harder to distinguish from random linear codes.
Inverting without trapdoor:
When \( w \) is not too big or not too small, it is easy to invert the function \(F_{w,\mathbf{H}}\), even without knowledge of the trapdoor. Indeed, this can be done with a slightly generalized version of the Prange Decoder: For a given syndrome \(s \in \mathbf{F}_q^r\), in order to find a vector \( e \) of length \(n\) and weight \(w\), an attacker first fixes the first \(n-r\) entries of \(e\) to some arbitrary vector of weight \(w’ \approx w – r (q-1)/q\). Then, the attacker simply solves a linear system to obtain the remaining \(r\) entries of \(e\). Since the weight of the remaining \(r\) entries is roughly \(r(q-1)/q\) the total weight of \( e \) is is close to the required weight \(w\). Clearly, this approach only works if \(w\) is larger than \(r\frac{q-1}{q}\) and smaller than \( n-\frac{r}{q} \), because this corresponds to \(w’ = 0\) and \(w’ = n-r\) respectively. Moreover, it is believed that for random linear codes finding preimages for the function \(F_{w,\mathbf{H}}\) is exponentially hard when \(w\) is not in the easy interval \( [r\frac{q-1}{q} , n-\frac{r}{q}] \).
Inverting with the trapdoor:
The trapdoor function exploits the fact that knowledge of the \((U,U+V)\) structure allows one to invert the \(F_{w,\mathbf{H}}\) function on a slightly larger range of values of \( w \). Before we can understand how this works, we need to explain what a \((U,U+V)\)-code is: Given two arbitrary codes \(U\) and \(V\) of length \(n/2\), the \((U|U+V)\)-code is the linear code that consists of all codewords of the form \((u,u+v)\), where \(u \in U\) and \(v \in V\). A parity check matrix of this code is
\( \mathbf{H} = \begin{pmatrix} \mathbf{H}_U & 0 \\ -\mathbf{H}_V & \mathbf{H}_V \end{pmatrix} \, .\)
So how can the \(U|U+V\) structure be exploited to find preimages for the \(F_{w,\mathbf{H}}\) function? Note that if we put \(e = (e^{(1)},e^{(1)}+e^{(2)})\) we have that \(e\mathbf{H}^t = s\) if and only if
\( e^{(1)}\mathbf{H}^T_U = s^{(1)} \) and \( e^{(2)} \mathbf{H}_V^T = s^{(2)} \, ,\)
where \(s = (s^{(1)},s^{(2)})\). Therefore, we can use the followin strategy to find \(e\) and control its weight:
- First solve \( e^{(2)} \mathbf{H}_V^T = s^{(2)} \) with the Prange decoder.
- Then solve \( e^{(1)}\mathbf{H}^T_U = s^{(1)} \) with the Prange decoder, controlling simultaneously the weight of \(e^{(1)}\) and \(e^{(1)} + e^{(2)}\).
To illustrate this approach, let’s try to solve \(e\mathbf{H}^t = s\) while maximizing the weight of \( e \). First we fix a solution \(e^{(2)}\) such that \( e^{(2)} \mathbf{H}_V^T = s^{(2)} \) (and we do not care about the weight of \(e^{(2)}\)). In the second step, we again use the Prange decoder to solve \( e^{(1)}\mathbf{H}^T_U = s^{(1)} \), however, instead of just fixing the first \(n/2-r^{(1)} \) entries of \(e^{(1)}\) to some non-zero values (here \(r_U\) is the co-dimension of \(U\)), we can be smarter and fix them such that the first \( n/2 – r_U\) entries of \( e^{(1)} + e^{(2)}\) are also zero. If \(q > 2\) then this is always possible. Since the remaining \(2r_U \) entries of \( e \) have an expected weight of \( 2r_U (q-1)/q \), the total expected weight of \(e\) is \( n – 2r_U/q \).
Conrete example:
For the 128 bit secure instantiation of the trapdoor, the WAVE paper proposes:
\( \begin{matrix} q &=& 3 \\ n &=& 8492 \\ w &=& 7980 \\ r_U &=& 688 \\ r_V &=& 2199 \end{matrix} \)
This means that without the trapdoor, the highest \(w\) for which one can find preimages of \(F_{w,\mathbf{H}}\) is \( n – \frac{r_U + r_V}{q} = 7540\), while with knowledge of the trapdoor it is possible to find preimages as long as \(w\) is smaller than \(n – 2r_U/q = 8033 \). Therefore, we see that for the chosen value of \(w = 7980\) it is not possible to find preimages for \(F_{w,\mathbf{H}}\) unless the trapdoor is known. To prevent leaking information by using the trapdoor one has to randomize the information set (i.e. fix a random subset of size \(n/2 – r_U\) instead of always fixing the first \(n/2 – r_U\) entries) and one has to use rejection sampling. This parameter set results in a public key size of 3.2 MB and a signature size of 1.6KB.


