boringssl/crypto/evp
David Benjamin fd67f61bb4 Fix bounds check in RSA_verify_PKCS1_PSS_mgf1 when sLen is -2.
(Imported from upstream's 04cf39207f94abf89b3964c7710f22f829a1a78f.)

The other half of the change was fixed earlier, but this logic was still
off. This code is kind of a mess and needs a rewrite, but import the
change to get it correct and sufficiently tested first.

(If we could take the sLen = -2 case away altogether, that would be
great...)

Change-Id: I5786e980f26648822633fc216315e8f77ed4d45b
Reviewed-on: https://boringssl-review.googlesource.com/14321
Reviewed-by: Steven Valdez <svaldez@google.com>
Commit-Queue: Steven Valdez <svaldez@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-03-21 16:17:19 +00:00
..
CMakeLists.txt Convert evp_extra_test into GTest. 2017-03-01 18:32:29 +00:00
digestsign.c
evp_asn1.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
evp_ctx.c Tidy up EVP_PKEY_CTX_dup and fix malloc error crash. 2017-02-16 23:24:53 +00:00
evp_extra_test.cc Convert evp_extra_test into GTest. 2017-03-01 18:32:29 +00:00
evp_test.cc Improve RSA-PSS test coverage around length bounds. 2017-03-21 16:15:32 +00:00
evp_tests.txt Fix bounds check in RSA_verify_PKCS1_PSS_mgf1 when sLen is -2. 2017-03-21 16:17:19 +00:00
evp.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
internal.h Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_dsa_asn1.c Remove direct calls to BN_mod_exp. 2017-02-28 18:00:02 +00:00
p_ec_asn1.c Fix memory leak on invalid ecPublicKey parameters. 2016-04-15 19:43:26 +00:00
p_ec.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p_rsa_asn1.c Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_rsa.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
pbkdf_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
pbkdf.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
print.c Use C99 for size_t loops. 2016-09-12 19:44:24 +00:00
sign.c