openssl/crypto/rsa
Sebastian Andrzej Siewior cac19d19e7 rsa: Do not allow less than 512 bit RSA keys
As per documentation, the RSA keys should not be smaller than 64bit (the
documentation mentions something about a quirk in the prime generation
algorithm). I am adding check into the code which used to be 16 for some
reason.
My primary motivation is to get rid of the last sentence in the
documentation which suggest that typical keys have 1024 bits (instead
updating it to the now default 2048).
I *assume* that keys less than the 2048 bits (say 512) are used for
education purposes.
The 512 bits as the minimum have been suggested by Bernd Edlinger.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4547)
2017-12-11 12:53:07 +01:00
..
build.info Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
rsa_ameth.c Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
rsa_asn1.c Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
rsa_chk.c rsa/rsa_gen.c: harmonize keygen's ability with RSA_security_bits. 2017-11-28 20:05:48 +01:00
rsa_crpt.c Remove unnecessary #include <openssl/lhash.h> directives. 2017-09-29 07:38:56 +10:00
rsa_depr.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
rsa_err.c Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
rsa_gen.c rsa: Do not allow less than 512 bit RSA keys 2017-12-11 12:53:07 +01:00
rsa_lib.c rsa/rsa_lib.c: make RSA_security_bits multi-prime aware. 2017-11-28 20:04:57 +01:00
rsa_locl.h rsa: Do not allow less than 512 bit RSA keys 2017-12-11 12:53:07 +01:00
rsa_meth.c Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
rsa_mp.c rsa/rsa_lib.c: make RSA_security_bits multi-prime aware. 2017-11-28 20:04:57 +01:00
rsa_none.c Fix coding style in crypto/rsa directory 2017-08-25 16:23:07 +01:00
rsa_oaep.c Fix an information leak in the RSA padding check code. 2017-07-31 21:47:52 +02:00
rsa_ossl.c Add missing range checks on number of multi primes in rsa_ossl_mod_exp 2017-12-08 15:38:59 +01:00
rsa_pk1.c Fix coding style in crypto/rsa directory 2017-08-25 16:23:07 +01:00
rsa_pmeth.c rsa: Do not allow less than 512 bit RSA keys 2017-12-11 12:53:07 +01:00
rsa_prn.c Fix coding style in crypto/rsa directory 2017-08-25 16:23:07 +01:00
rsa_pss.c Consistent formatting for sizeof(foo) 2017-12-07 19:11:49 -05:00
rsa_saos.c This part fixes braces around if-else. 2017-08-25 16:23:07 +01:00
rsa_sign.c Implement RSASSA-PKCS1-v1_5 as specified. 2016-11-07 21:04:54 +01:00
rsa_ssl.c Fix coding style in crypto/rsa directory 2017-08-25 16:23:07 +01:00
rsa_x931.c This part fixes braces around if-else. 2017-08-25 16:23:07 +01:00
rsa_x931g.c This part fixes braces around if-else. 2017-08-25 16:23:07 +01:00