mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +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:
parent
13f594f02d
commit
5a9bfca3d5
@ -7,7 +7,7 @@
|
|||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "mpint.h"
|
#include "mpint.h"
|
||||||
|
|
||||||
#define RSA_EXPONENT 37 /* we like this prime */
|
#define RSA_EXPONENT 65537
|
||||||
|
|
||||||
static void invent_firstbits(unsigned *one, unsigned *two,
|
static void invent_firstbits(unsigned *one, unsigned *two,
|
||||||
unsigned min_separation);
|
unsigned min_separation);
|
||||||
|
Loading…
Reference in New Issue
Block a user