A Tale of Three Signatures: Practical Attack of ECDSA with wNAF
Gabrielle De Micheli Joint work with R´ emi Piau and C´ ecile Pierrot
Universit´ e de Lorraine, Inria Nancy, France
Africacrypt 2020 Cairo, Egypt
1/32
A Tale of Three Signatures: Practical Attack of ECDSA with wNAF - - PowerPoint PPT Presentation
A Tale of Three Signatures: Practical Attack of ECDSA with wNAF Gabrielle De Micheli Joint work with R emi Piau and C ecile Pierrot Universit e de Lorraine, Inria Nancy, France Africacrypt 2020 Cairo, Egypt 1/32 How to attack ECDSA
Universit´ e de Lorraine, Inria Nancy, France
1/32
2/32
3/32
4/32
5/32
6/32
7/32
8/32
9/32
10/32
11/32
cryptanalytic applications.
ℓi
12/32
ℓ
ℓ
j=1 2λi,j+1sidi,j − (si ¯
13/32
ℓi
j=1 2λi,j+1sidi,j − (si ¯
14/32
α = r −1
1
ℓ1
2λ1,j+1s1d1,j + (s1¯ k1 − z1)
i :
j=1 (2λ1,j+1s1ri)
j=1 (−2λi,j+1sir1)
15/32
1, · · · , b∗ n}.
16/32
q ... ... q E ′
2
E ′
3
. . . E ′
u
2m−µ1,1 . . . . . . . . . . . . ... . . . . . . . . . . . . 2m−µu,ℓu 2m . . . 2m
17/32
1In practice 80 dim(lattice) 215. 18/32
19/32
20/32
⇒ probability of success of 1 trial ր
⇒ reduction time ր
21/32
22/32
implementation of ECDSA with a few signatures
Attack # signatures Probability of success Overall time [FWC2016] 5 4% 15 hours/18 minutes 6 35% 1 hour 21 minutes/18 minutes 7 68% 2 hours 23 minutes/34.5 minutes Our attack 3 0.2% 39 hours 4 4% 1 hour 17 minutes 5 20% 8 minutes 20 seconds 6 40% 5 minutes 7 45% 3 minutes 8 45% 2 minutes
23/32
24/32
Error 2 affects the probability of success of key recovery much more.
25/32
26/32
https://eprint.iacr.org/2019/861
27/32
Number of Total Parameters Probability of signatures time BKZ Preprocessing ∆ success (%) 3 39 hours 35 S11 ≈ 23 0.2 4 1 hour 17 25 S15 ≈ 23 0.5 5 8 min 20 25 S19 ≈ 23 6.5 6 3 min 55 20 Sall ≈ 23 7 7 2 min 43 20 Sall ≈ 23 17.5 8 2 min 25 20 Sall ≈ 23 29
28/32
Number of Probability of Parameters Total signatures success (%) BKZ Preprocessing ∆ time 3 0.2 35 S11 ≈ 23 39 hours 4 4 35 Sall ≈ 23 25 hours 28 5 20 35 Sall ≈ 23 2 hours 42 6 40 35 Sall ≈ 23 1 hour 04 7 45 35 Sall ≈ 23 2 hours 36 8 45 35 Sall ≈ 23 5 hours 02
29/32
Number of Our attack Fan et al signatures Time Success (%) Time Success (%) 3 39 hours 0.2% – – 4 1 hour 17 minutes 0.5% 41 minutes 1.5% 5 8 minutes 20 seconds 6.5% 18 minutes 1% 6 ≈ 5 minutes 25% 18 minutes 22% 7 ≈ 3 minutes 17.5% 34 minutes 24% 8 ≈ 2 minutes 29% – –
30/32
Number of Our attack Fan et al signatures Success (%) Time Success (%) Time 3 0.2% 39 hours – – 4 4% 25 hours 28 minutes 1.5% 41 minutes 5 20% 2 hours 42 minutes 4% 36 minutes 6 40% 1 hour 4 minutes 35% 1 hour 43 minutes 7 45% 2 hours 36 minutes 68% 3 hours 58 minutes 8 45% 5 hours 2 minutes – –
31/32
Number of Probability of success (%) signatures 0 errors 5 errors 10 errors 20 errors 30 errors 4 0.28 ≪ 1 5 4.58 0.86 0.18 ≪ 1 6 19.52 5.26 1.26 0.14 ≪ 1 7 33.54 10.82 3.42 0.32 ≪ 1 8 35.14 13.26 4.70 0.58 ≪ 1
32/32