1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

RSA generation: change exponent to 2^16+1.

This is probably overdue; everyone else seems to have settled on it as
the preferred RSA key exponent for some time. And now that the
descendant of mp_mod_short supports moduli up to 2^32 instead of 2^16,
I can actually add it without the risk of assertion failures during
prime generation.
This commit is contained in:
Simon Tatham 2020-02-17 19:53:19 +00:00
parent 13f594f02d
commit 5a9bfca3d5

View File

@ -7,7 +7,7 @@
#include "ssh.h"
#include "mpint.h"
#define RSA_EXPONENT 37 /* we like this prime */
#define RSA_EXPONENT 65537
static void invent_firstbits(unsigned *one, unsigned *two,
unsigned min_separation);