diff options
author | Sohaib ul Hassan <sohaibulhassan@tuni.fi> | 2020-07-09 18:51:51 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-10 18:33:11 +0000 |
commit | dcab408a5fbbe08a706904462b680c8daf299409 (patch) | |
tree | d8fec2f20569874520b1c55184d71fa755af2617 /security/nss/lib/util/pkcs11.h | |
parent | 407c503fa4f7a57f89195421eb004d3028013105 (diff) | |
download | UXP-dcab408a5fbbe08a706904462b680c8daf299409.tar UXP-dcab408a5fbbe08a706904462b680c8daf299409.tar.gz UXP-dcab408a5fbbe08a706904462b680c8daf299409.tar.lz UXP-dcab408a5fbbe08a706904462b680c8daf299409.tar.xz UXP-dcab408a5fbbe08a706904462b680c8daf299409.zip |
[NSS] Implement constant-time GCD and modular inversion
The implementation is based on the work by Bernstein and Yang
(https://eprint.iacr.org/2019/266)
"Fast constant-time gcd computation and modular inversion".
It fixes the old mp_gcd and s_mp_invmod_odd_m functions. The patch also fixes
mpl_significant_bits s_mp_div_2d and s_mp_mul_2d by having less control flow to
reduce side-channel leaks.
Co-authored by : Billy Bob Brumley
Diffstat (limited to 'security/nss/lib/util/pkcs11.h')
0 files changed, 0 insertions, 0 deletions