boringssl/crypto/rsa
Brian Smith 625475f3e3 Fix bits vs. bytes confusion in RSA encryption.
rsa_default_encrypt allowed an RSA modulus 8 times larger than the
intended maximum size due to bits vs. bytes confusion.

Further, as |rsa_default_encrypt| got this wrong while
|rsa_default_verify_raw| got it right, factor out the duplicated logic
so that such inconsistencies are less likely to occur.

BUG=576856

Change-Id: Ic842fadcbb3b140d2ba4295793457af2b62d9444
Reviewed-on: https://boringssl-review.googlesource.com/6900
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
2016-01-13 22:28:54 +00:00
..
blinding.c Constify more BN_MONT_CTX parameters. 2015-11-06 20:04:36 +00:00
CMakeLists.txt
internal.h Constify more BN_MONT_CTX parameters. 2015-11-06 20:04:36 +00:00
padding.c Simplify RSA key exchange padding check. 2015-12-22 00:10:14 +00:00
rsa_asn1.c Refuse to parse RSA pubkeys with invalid exponents. 2015-12-21 23:49:02 +00:00
rsa_impl.c Fix bits vs. bytes confusion in RSA encryption. 2016-01-13 22:28:54 +00:00
rsa_test.cc Refuse to parse RSA pubkeys with invalid exponents. 2015-12-21 23:49:02 +00:00
rsa.c Remove the CRYPTO_EX_new callback. 2015-12-15 21:29:46 +00:00