Skip to content

Commit 6b0ece0

Browse files
authored
Update crack_weak_ECDSA_nonces_with_LLL.py
1 parent 3acb50c commit 6b0ece0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crack_weak_ECDSA_nonces_with_LLL.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ def make_matrix_fpylll(msgs, sigs, B, order):
7676

7777

7878
def reduce_matrix(matrix, algorithm="LLL"):
79-
if algorithm == "LLL":
80-
LLL.reduction(matrix)
81-
else:
82-
LLL.reduction(matrix)
79+
LLL.reduction(matrix)
80+
if algorithm == "BKZ":
8381
bkz = BKZ(matrix)
8482
param = BKZ.Param(block_size=20)
8583
bkz(param)

0 commit comments

Comments
 (0)