Closed cpereida closed 8 years ago
+1
I verified with gdb that both BN_mod_exp_mont_consttime and BN_mod_inverse_no_branch are getting called with this PR.
@Pereida Great work!
@tedu @bob-beck Please merge this because 136ed09d5042463d64478452fbfa48fe2b863517 is not optimal wrt side-channel security. Fixed the bigger bug but introduced a smaller one :\
Thanks, I sent this patch to tech@openbsd.org for review.
The recent change in DSA introduced a bug, the inversion was performed in non-constant time. Additionally, the DSA flag DSA_FLAG_NO_EXP_CONSTTIME is not used and therefore the code is simplified and cleaned.