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>kris/onging/CECPQ3_patch15