boringssl/crypto/rsa
Brian Smith febf77190f Verify consistency of RSA keys after generation & parsing.
Call |RSA_check_key| after parsing an RSA private key in order to
verify that the key is consistent. This is consistent with ECC key
parsing, which does a similar key check.

Call |RSA_check_key| after key generation mostly as a way of
double-checking the key generation was done correctly. A similar check
was not added to |EC_KEY_generate| because |EC_KEY_generate| is used
for generating ephemeral ECDH keys, and the check would be too
expensive for that use.

Change-Id: I5759d0d101c00711bbc30f81a3759f8bff01427c
Reviewed-on: https://boringssl-review.googlesource.com/7522
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2016-12-16 17:37:03 +00:00
..
blinding.c Add |BN_mod_inverse_blinded| and use it in RSA blinding. 2016-07-29 18:30:34 +00:00
CMakeLists.txt Add a run_tests target to run all tests. 2015-10-26 20:33:44 +00:00
internal.h Require the public exponent to be available in RSA blinding. 2016-04-18 23:34:46 +00:00
padding.c Clarify signed/unsigned math in RSA_padding_add_PKCS1_PSS_mgf1. 2016-08-09 19:10:18 +00:00
rsa_asn1.c Verify consistency of RSA keys after generation & parsing. 2016-12-16 17:37:03 +00:00
rsa_impl.c Verify consistency of RSA keys after generation & parsing. 2016-12-16 17:37:03 +00:00
rsa_test.cc Verify consistency of RSA keys after generation & parsing. 2016-12-16 17:37:03 +00:00
rsa.c Use C99 for size_t loops. 2016-09-12 19:44:24 +00:00