-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RSA key check consolidation part 1a (#1349)
This is the first PR in a series of PRs that will attempt to consolidate the RSA key checking in AWS-LC. The high level plan is to do the following: 1. Implement `RSA_check_key|` that performs checks equivalent to those in OpenSSL 1.x versions and 3.x non-FIPS versions of `RSA_check_key` with the exception of the primality tests, while retaining the ability to process public keys. 2. Implement `RSA_check_fips` that performs SP 800-56b checks as OpenSSL 3.x `RSA_check_key` does when built in FIPS mode. 3. When ready, modify `RSA_check_key` function to call `RSA_check_fips` when AWS-LC is built in FIPS mode, and deprecate `RSA_check_fips`. Two temporary functions will be introduced and used for development, until the whole solution is done: - `wip_do_not_use_rsa_check_key`, - `wip_do_not_use_rsa_check_key_fips`. After completing step 1 from above, `wip_do_not_use_rsa_check_key` should become `RSA_check_key` function. After completing step 2 from above, `wip_do_not_use_rsa_check_key_fips` should become `RSA_check_fips` function. After completing step 3 from above, `RSA_check_key` function should perform the `RSA_check_fips` checks when built in FIPS mode, and `RSA_check_fips` could be deprecated. This change introduces the two temporary functions, implements a few checks and adds tests alongside the existing tests for `RSA_check_key`.
- Loading branch information
Showing
3 changed files
with
319 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.