HardwareHackingHandbook/notebooks

HHH_06_Bench_Time_Fault_Injection_Lab broken when running on hardware

Opened this issue · 0 comments

On the step "Completing the Attack"

# Recover p and q from corrupted signature and correct signature
calc_q = gcd(s_crt_x - s_crt, N)

s_crt was never defined! If you Ctrl-f for s_crt = you see that it is assigned, but only conditionally, if SCOPETYPE == 'SIM', which we are not doing.