You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 20230206-DiceCTF2023-EN/README.md
+4-45Lines changed: 4 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1193,39 +1193,13 @@ if __name__ == '__main__':
1193
1193
1194
1194
### Membrane:
1195
1195
1196
-
In the beginning, I wanted to get "e"s(which is in [-10,10]) : $pk_b= pk_A * S+ 257 * e \pmod{q}$
1197
-
1198
-
In order to make the target small, I did this: $new\_pk_b=pk_b*(p^{-1})\pmod{q},new\_pk_A=pk_A*(p^{-1})\pmod{q}$ Then $|new\_pk_A\cdot S-new\_pk_b|<10$
1199
-
1200
-
but the Lattice is too large to be LLL & target is not small enough.
1201
-
1202
-
The Lattice is about 1000 dimensions.....XD
1203
-
1204
-
I spent 4 hours trying to find something odd.. Finally, I found that every A satisfying this LINEAR RELATIONSHIP: $c_{i} \cdot pk_A = A$ , $pk_A$ is matrix 612*512...
1205
-
1206
-

1196
+

1207
1197
1208
1198
**Here comes the key point.**
1209
1199
1210
-
The last 100 rows can be linearly represented by the former 512 rows in matrix $pk_A$.
1211
-
1212
-
$pk_{A,i-1}$ : the i-th row of $pk_A$. $pk_{A,i-1}=pk_{A,i-1},i\in[1,512]$ ; $pk_{A,i-1}=\sum_{j=0}^{511}x_{i,j}\cdot pk_{A,j-1},i\in[513,612]$
1213
-
1214
-
So get new expressions of 100 rows of $pk_A$.. $pk_A$ is just 512 components.
0 commit comments