[This post is based on a talk by Arnaud Sipasseuth at ACISP 2019 about the paper [1]]
Quantum computers are expected to appear in the foreseeable future. As a consequence, the traditional hardness assumptions on which public key cryptography is based will be broken, such as factorization and the discrete logarithm.
The threat of quantum computers pushed NIST (National Institute of Standards and Technology), to lunch a competition in 2016, in order to standardize post quantum cryptography. That is, standardize potential resistant schemes to quantum attacks.
NIST accepted for the first round a total of 69 submissions, between encryption and signature schemes. Those schemes are based on hardness assumptions believed to be post-quantum secure, such as lattices, coding theory etc.
The schemes were cryptanalysed during the first round, and earlier this year, NIST announced 26 schemes that advanced to the second round.
The eliminated schemes were basically outperformed by the qualified ones with respect to the NIST criteria. One of those schemes is the DRS signature scheme [2] (Diagonal-dominant Reduction Signature) which is based on lattices. The security of this scheme relies on the fact that solving the \({\mu}\)-Guaranteed Distance Decoding problem GDD\(_{\mu}\) (Given a basis \(B\) of a lattice \(L\), any point \(x\), and an approximation factor \(\mu \), find \(v \in L\) such that \(\|x – v\| \leq \mu\)) is hard, where \(\|.\|\) is the maximum norm. So the secret key in this scheme is a good basis of \(L\) (Informally speaking, a basis where vectors are short and somewhat orthogonal to each other. In such bases, the GDD\(_{\mu}\) is actually easy to solve) and the public key is a bad basis \(P\) (Informally speaking, a basis that has the opposite properties of good bases)
So to sign a message \(m\), the signer uses \(S\) to solve the GDD\(_{\mu}\) on \(m\) to find \(v\), which will be the signature of \(m\). To verify this signature, the verifier uses the basis \(P\) to check if \(v \in L\) and if \(\|m -v\|\) is small.
The lattice used in the DRS signature scheme is generated from a Diagonal Dominant matrix. That is, a matrix where the entries \(S_{ii} \geq \sum_{i \neq j} |S_{ij}| \) for all \(i\).
The way by which the matrix S was generated is the following: First, fix the row \(S[1]\) by picking the diagonal coefficient \(d\), and four non-zero values \(b, N_b, N_1, \Delta\) such that \(d = b \cdot N_b + N_1 + \Delta\). Then assign \(d\) to the entry \(S_{11}\), and assign in the other entries in \(S[1]\), \(N_b\) values \(b\), \(N_1\) values 1, and fill the remaining entries in \(S[1]\) with zeros. Then generate the other rows of the matrix by applying a circular shift on \(S[i]\) to get \(S[i+1]\), for \(i \in 1,\ldots, n-1\), where \(n\) is the dimension of the lattice. And finally, pick randomly some of the non-diagonal entries and change their sign.
Note that as \(\Delta \neq 0\), it is guaranteed that the generated matrix \(S\) is Diagonal Dominant.
So for example, the matrix S, can be:
\(
S =
\begin{bmatrix}
15 & 5 & 1 & 0 & -1 & 1\\
-1 & 15 & -5 & 1 & 0 & -1 \\
-1 & 1 & 15 & 5 & 1 & 0 \\
0 & 1 & 1 & 15 & 5 & -1 \\
1 & 0 & -1 & 1 & 15 & -5\\
1 & -1 & 0 & 1 & -1 & 15\\
\end{bmatrix}
\)
Which can be seen as the sum of a diagonal matrix with big entries and a random matrix with low entries
\[
S =
\begin{bmatrix}
15 & 0 & 0 & 0 & 0 & 0\\
0 & 15 & 0 & 0 & 0 & 0 \\
0 & 0 & 15 & 0 & 0 & 0 \\
0 & 0 & 0 & 15 & 0 & 0 \\
0 & 0 & 0 & 0 & 15 & 0\\
0 & 0 & 0 & 0 & 0 & 15\\
\end{bmatrix}
+
\begin{bmatrix}
0 & 5 & 1 & 0 & -1 & 1\\
-1 & 0 & -5 & 1 & 0 & -1 \\
-1 & 1 & 0 & 5 & 1 & 0 \\
0 & 1 & 1 & 0 & 5 & -1 \\
1 & 0 & -1 & 1 & 0 & -5\\
1 & -1 & 0 & 1 & -1 & 0\\
\end{bmatrix}
\]
This scheme was attacked by Ducas \(et\) \(al\) [3], exploiting the way the matrix \(S\) is generated, using machine learning techniques . As a consequence, the level of security provided has drastically decreased from \(2^{128}\) to \(2^{73}\)
The fix to the attack was introduced in [1], where authors presented a new way to generate \(S\) that overcomes the attack. The new method consists of generating \(S\), roughly speaking, in a more randomized way where we don’t bound the non-diagonal entries of \(S\) to be in \(\{0, \pm 1, \pm b\}\), and we remove the absolute circulant structure of \(S\). So following the new method, the matrix \(S\) can be for example:
\[ S =
\begin{bmatrix}
15 & 0 & 0 & 0 & 0 & 0\\
0 & 15 & 0 & 0 & 0 & 0 \\
0 & 0 & 15 & 0 & 0 & 0 \\
0 & 0 & 0 & 15 & 0 & 0 \\
0 & 0 & 0 & 0 & 15 & 0\\
0 & 0 & 0 & 0 & 0 & 15 \\
\end{bmatrix}
+
\begin{bmatrix}
4 & −2 & 0 & 3 & −1 & 4\\
−2 & 3 & −1 & 0 & −8 & 0 \\
6 & 1 & 2 & −1 & 1 & 3 \\
0 & 0 & −4 & 3 & 2 & 3\\
−3 & 2 & −1 & −3 & −1 & 3\\
1 & −1 & 2 & −4 & −4 & 2 \\
\end{bmatrix}
=
\begin{bmatrix}
19 & −2 & 0 & 3 & −1 & 4\\
−2 & 18 & −1 & 0 & −8 & 0\\
6 & 1 & 17 & −1 & 1 & 3\\
0 & 0 & −4 & 18 & 2 & 3\\
−3 & 2 & −1 & −3 & 14 & 3\\
1 & −1 & 2 & −4 & −4 & 17\\
\end{bmatrix}
\]
However, although this patch tackles the attack conducted by [3], it remains an open question whether there are some hidden weaknesses within Diagonal Dominant lattices
References:
[1]: Arnaud Sipasseuth, Thomas Plantard, and Willy Susilo, Improving the Security of the DRS Scheme with Uniformly Chosen Random Noise. ACISP 2019
[2]: Round 1 submissions of the post quantum NIST competition
[3]: Yang Yu and Léo Ducas, Learning strikes again: the case of the DRS signature scheme. ASIACRYPT 2018


