Next, LLL algorithm is employed to reduce the basis matrix
, and the first output is expected to be the vector
. However, at present, what can meet this expectation are experimental conditions, and there is still a lack of theory. Now, the existing OL methods orthogonal to
are classified. According to the constructed lattice, they are divided into two categories. The first OL algorithm constructs lattice
with basis matrix
:
and its shape likes ∧, so it is called OL-∧ algorithm. This kind of algorithm can be referred to [GGM16,XSH18].
3.2.1. OL-∧ algorithm
This algorithm uses the lattice
mentioned above, and the basis matrix is
, then
where
is the identity matrix of order
t, and
Therefore,
(I) When =2
Let
in order to find the condition that
is orthogonal to
(
t dimension), it needs to be satisfied
so it forces the equation
to be true. In order to make the equation (
18) be established, Galbraith et al. ([
37]) gives the bounds of the short vectors in the lattice
:
Next, to show that under condition (
19), formulas (
17) and (
10) hold, the following proof is given. Let
, then
and
for
. Thus
Because (
19) is true and
,
. Hence
To prove that (
10) holds, suppose
, so
this is a contradiction.
To analyse the method, Galbraith et al. [
37] use Assumption 2. This shows that LLL algorithm can be used to find
linearly independent vectors as long as
and as well
Hence, the condition for success is
Ignoring constants and the exponential approximation factor
from the lattice reduction algorithm, Galbraith et al. [
37] gives a lower bound on sample
t:
Find vectors that satisfies the bound of the short vector by LLL algorithm, then the system of equations can be set up to solve, and then find .
(II) in the general case
Using the bound of (
6), the condition that
is orthogonal to
is constructed. Specific measures are as follows([
42]):
- ①
Let
, then
- ②
Using BKZ-
alogrithm, reduce the lattice matrix
. Let
be the
i-th reduce basis of
, Then
Thus
Let
then minimize
. Xu et al. [
42] offer the following conclusion: When
Using the minimum of
, the tighter bound of
was found:
where
As analyzed by Xu et al. [
42],
therefore
In order to make
, the right side of the upper bound has to be less than 1:
thus the condition
holds. The dominant calculation of OL attacks is the lattice reduction for finding
linearly independent homogeneous equations on
or
. Based on the condition (
21), it is expected that
Since
, the attack can work when
According to (
22), it is obtained that
which is equivalent
When
, the above expression is optimized as
Also notice that when
,
, then the logarithm term on
t of condition (
22) can reduce to get the following condition:
Similarly, taking
, the above condition is optimimized as
(III) Using the rounding technique, construct a deformed lattice
Construct a lattice
whose lattice basis matrix is
[
42]:
where
. Similar to the idea of the case (II), the condition for
was found by Xu et al. [XSH18-3.3]. The optimal value of
is:
and the condition (
21) holds as well. As discussed at the end of case (II), this attack can also be performed at
3.2.2. OL-∨ algorithm
This algorithm uses the lattice mentioned above with basis matrix or the lattice with basis matrix .
(I) When
Let
to find the condition that
is orthogonal to
(
dimension), it needs to be satisfied:
then it is to force the equation
To make the equation
true, Ding et al. [
30] and Yang et al. [
41] gave the bounds of the short vectors of the lattice
, they are shown in (
28) and (
29) respectively,
In order to show that under the condition (
28) or (
29), formulas (
26) and (
27) hold, the following proof is given. Here, only condition (
29) is used to prove.
Let , and .
Thus
Since
Therefore, there is no modular
N operation and
.
Next, it is easy to obtain that and hold.
(II) When
Let
in order to find the condition that
is orthogonal to
(
t dimension), it needs to be satisfied:
In order to make (
30) true, Yu et al. [
41] and Gebregiyorgis et al. [
36] gave the bounds of the short vectors in the lattice
and they were given by the following formulas respectively,
After analysis, (
32) is tighter than (
31). Similarly, it can be proved that (
30) holds under the condition (
31) or(
32). So the equations
and
can also be obtained.
(III) , lower bound estimating for the number of samples t
Under the GSA, Yu et al. use LLL algorithm to get the upper bound of
-th short vector
, by Theorem 1:
Due to
the bound of
t in [
30] is optimized, and the optimization result is given as follows [
41]:
Yu et al. also indicates the hypothesis in [
36]
is too strong and unreasonable, and
is too small, it should be increased by 10 or 20.
For OL algorithm in [
31], where
or
N works equally, the idea of this algorithm can be classified as OL-∨, and it is equivalent to the case
just
N is the same as length as x
, so the algorithm is a little bit more conservative.
In [
31], the lattices
and
were defined, their basis matrices were
and
:
Let
, then
For the sake of
, it is to force the equation
is true. Find a vector
, such that the corresponding vector
is orthogonal to
. The experiment in [
31] gives the following conditions that LLL algorithm can generate
vectors
(theoretically not proved):
condition 1: N is a large random integer with bits;
condition 2: ;
condition 3: ;
condition 4: ;
condition 5: .
Under the above conditions, the equation is true. So can be solved and p is recovered.
(IV) in general
Similar to the idea of OL-∧ when
is in general, the condition for
is found by [XSH18-3.2]. The conclusions are as follows: the optimal value of
is
and the condition
holds. The specific steps are below ([
42]):
- ①
Let
, Then
- ②
Using BKZ-
alogrithm, reduce the basic matrix
. Let
be the
i-th reduce basis of
, Then
Thus
A little bit of clarification here. When
, then the formula
is true. In order to make
, the formula
holds, then
For finding
linearly independent vectors orthogonal to
, the following condition
is established. Next, let
then minimize
. When
Using the minimum of
, the tighter bound of
was found:
where
As analyzed by Xu et al. [
42],
therefore
In order to make
, the right side of the upper bound has to be less than 1:
thus the condition
holds. The dominant calculation of OL attacks is the lattice reduction for finding
linearly independent homogeneous equations on
or
. Based on the condition (
34), it is expected that
Since
, the attack can work when
According to (
35), It is obtained that
which is equivalent
When
, the above expression is optimized as
Also notice that when
,
, then the logarithm term on
t of condition (
36) can reduce to get the following condition:
Similarly, taking
, this condition is optimimized as
3.2.3. Recover
or
(1) Recover by LLL algorithm
Let the general solution formula of (11) be
where
is a particular solution of (11),
are the basis vectors for the solution space of the corresponding homogeneous system of linear equations, and
are the integer parameters.
Next, find small positive integer solutions to (11) to get
. Constract the lattice
with basis matrix
Let
, then
where
are integers. Obviously, when
, (
40) = (
38). Reduce the lattice
to
:
To facilitate finding
, consider the explicit vectors
. It’s easy to deduce that only one of them is the solution to (11).
Let
is the solution to (11), and if
, then
is probably equal to
. With this in mind, Ding and Tao [
31] found the conditions that the algorithm can work well (see 3.2.2). In addition, if
, we find an interesting thing that the recovery value
is only 1 or 2 different from the true value
p in many cases of our experiment. And our experiments lead to the following general conclusions between
p and
:
Let
then
where
is the recovered value of
p. So, if
, using vector
,
can be restored. And since
is bounded,
p can be restored by
.
In summary, one of the outputs generated by the LLL algorithm can be used to recover under the appropriate conditions.
(2) Recover
Let
, which satisfies LLL
, where
, LLL
are the lattice basis matrix and LLL reduced lattice basis matrix respectively, then
is a unimodular matrix with
. Constract the system
Because
with probability
, where
is the function of Euler-Rieamann zeta, the probability that
is very high. Therefore
is the absolute value of the last column of
and
[
42]. It can be known from OL algorithm, the first
row vector of matrix
can be generated by LLL algorithm, but the
t-th row vector
has to satisfy the following equation:
If (
43) is considered in isolation, it is very possible for (
43) to be established. But from the above analysis, it can be seen that the matrix
is a transition matrix from a basis of a lattice to its reduced basis, and
is a unimodular matrix. Furthermore, through our experiments, it is difficult to guarantee that the last row vector
of
satisfies the equation (
43). So finding such a matrix
is still an open question.
3.2.3. An improved algorithm of OL-∨
In this part, an improved algorithm of OL-∨ is proposed. Constract a lattice
with the basis matrix
where
N is an integer with
bits. Using the lower bound of
t in [
41] and the upper bound of the short vector in [
36], the following improved Algorithm 1 is given.
When
this algorithm can successfully recover
p. It is an improvement of Ding and tao’s OL algorithm [
31]. Firstly, the lower bound of
t and the upper bound of the short vector
are modified. Secondly, the later step using the LLL algorithm has been cancelled in the recovery of
. This is because when the algorithm is implemented with isolve command of Maple, the special solution of the equations (11) is exactly the small positive integer solution under the condition (
44). Thirdly, unlike Ding and tao’s OL algorithm [
31] which is not proved theoretically, our algorithm is correct theoretically. And it can be seen that the attack range is extended greatly and the efficiency increases quickly.
Algorithm 1 An improved OL algorithm for GACD
|
Input: An appropriate positive integer and ACD samples . Output: Integer p.
1. Randomly choose .
2. Reduce lattice by LLL algorithm with . Let the reduced basis be , where
3. If , where , then solve the integer linear system with t unknowns as follows
Therefore, the integer solutions can be expressed as follow:
where is a special solution of the linear system, are integers, is a basis of integer solution space for the corresponding homogeneous linear equations.
4. .
5. Compute .
Return p.
|