MIN_RSA_KEYLEN compare goes wrong
Hans Harder
hans at atbas.org
Thu Aug 27 13:36:26 AWST 2020
HI,
I noticed that I got warnings that the RSA key was too short.
Further investigation showed that I was using a 1024 bits RSA key but
the mp_count_bits function return 1023 count (probably 0 based)
in rsa.c it states: if (mp_count_bits(key->n) < MIN_RSA_KEYLEN)
Is this intentional or should I just define the MIN_RSA_KEYLEN as
1023 instead of the 1024 now in sysoptions.h
Hans
More information about the Dropbear
mailing list