Online Template Attack on ECDSA:
By: Niels Roelofs, Niels Samwel, Lejla Batina and Joan Daemen Africacrypt Conference 2020 July 2020
Online Template Attack on ECDSA: Extracting Keys Via The Other Side - - PowerPoint PPT Presentation
Online Template Attack on ECDSA: Extracting Keys Via The Other Side By: Niels Roelofs, Niels Samwel, Lejla Batina and Joan Daemen Africacrypt Conference 2020 July 2020 Side Channel Attack Introduction A side-channel is any unintentional
By: Niels Roelofs, Niels Samwel, Lejla Batina and Joan Daemen Africacrypt Conference 2020 July 2020
algorithms internal computations”*
2
Message Device Signed message Leakage
*Quote source: Introduction to Side-Channel Analysis: Basic Concepts and Techniques, L. Batina, March 2018, Hardware Security Lecture Notes
– Cryptographic
✴ Sign ✴ Verify
✴ Double And Add ✴ Montgomery Ladder ✴ Scalar Multiplication Optimization Tricks
3
4
5
6
7
8
– Homogeneous coordinates
Image Source: 18.783 Elliptic Curves Lecture, A Sutherland, February 2017
– Homogeneous coordinates
– Non-Adjacent Form (NAF)
– Shamir’s trick
– Homogeneous coordinates
– Non-Adjacent Form (NAF)
– Shamir’s trick
– Homogeneous coordinates
– Non-Adjacent Form (NAF)
– Shamir’s trick
11
12
13
14
15
16
17
ECDSA signature verification
18
ChipWhisperer-Lite Classic
19
19
19
Sign Verify
20
21
22
23
23
Identical key dependent operation in the Montgommery ladder can be mimicked in the publicly accessible Jacobian doubling operation!
24
Montgomery Double and add Sign Verify Standard projective Jacobian
25
Montgomery Double and add Sign Verify Standard projective Jacobian
– Bit flipping
26
Montgomery Double and add Sign Verify Standard projective Jacobian
27
– Relevant square operation in target trace – Square operation in both templates
28
29
After the correlation calculation, the template trace with the higher value is considered to represent the correct bit value.
– While signing – No longer build meaningful templates
30
– Standard implemented in big crypto libraries – However, not always supported by hardware
31