1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/keygen
Simon Tatham 6520574e58 Side-channel-safe rewrite of the Miller-Rabin test.
Thanks to Mark Wooding for explaining the method of doing this. At
first glance it seemed _obviously_ impossible to run an algorithm that
needs an iteration per factor of 2 in p-1, without a timing leak
giving away the number of factors of 2 in p-1. But it's not, because
you can do the M-R checks interleaved with each step of your whole
modular exponentiation, and they're cheap enough that you can do them
in _every_ step, even the ones where the exponent is too small for M-R
to be interested in yet, and then do bitwise masking to exclude the
spurious results from the final output.
2021-08-27 18:04:49 +01:00
..
CMakeLists.txt Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
dsa.c Spelling: standardise on "DSA", not "DSS". 2021-04-22 18:34:47 +01:00
ecdsa.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
millerrabin.c Side-channel-safe rewrite of the Miller-Rabin test. 2021-08-27 18:04:49 +01:00
mpunsafe.c Make mp_unsafe_mod_integer not be unsafe. 2021-08-27 17:43:40 +01:00
mpunsafe.h Make mp_unsafe_mod_integer not be unsafe. 2021-08-27 17:43:40 +01:00
pockle.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
prime.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
primecandidate.c Make mp_unsafe_mod_integer not be unsafe. 2021-08-27 17:43:40 +01:00
rsa.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00
smallprimes.c Move key-generation code into its own subdir. 2021-04-22 18:09:13 +01:00