1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-24 08:42:25 +00:00
putty-source/keygen
Simon Tatham 59409d0947 Make mp_unsafe_mod_integer not be unsafe.
I've moved it from mpunsafe.c into the main mpint.c, and renamed it
mp_mod_known_integer, because now it manages to avoid leaking
information about the mp_int you give it.

It can still potentially leak information about the small _modulus_
integer - hence the word 'known' in the new function name. This won't
be a problem in any existing use of the function, because it's used
during prime generation to check divisibility by all the small primes,
and optionally also check for residue 1 mod the RSA public exponent.
But all those values are well known and not secret.

This removes one source of side-channel leakage from prime generation.
2021-08-27 17:43:40 +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 Move key-generation code into its own subdir. 2021-04-22 18:09:13 +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