Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSA Module Refactor #273

Merged
merged 1 commit into from
Dec 12, 2023
Merged

RSA Module Refactor #273

merged 1 commit into from
Dec 12, 2023

Conversation

skmcgrail
Copy link
Member

@skmcgrail skmcgrail commented Nov 13, 2023

Just draft at the moment, contains a mostly complete step towards some of the API changes introduced in 0.17.X (the backwards compatible ones), but doesn't introduce any of the new types like KeyPairComponenets. I've opted for a different module hierarchy internally, and use it as an opportunity to cleanup our very big rsa.rs file.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@skmcgrail skmcgrail force-pushed the rsa-cleanup-refactor branch 2 times, most recently from 8acbe30 to a71a9d4 Compare November 16, 2023 22:51
@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2023

Codecov Report

Attention: 47 lines in your changes are missing coverage. Please review.

Comparison is base (f3aa3ed) 95.48% compared to head (768ed16) 95.21%.

Files Patch % Lines
aws-lc-rs/src/rsa/signature.rs 81.86% 33 Missing ⚠️
aws-lc-rs/src/rsa/key.rs 93.63% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #273      +/-   ##
==========================================
- Coverage   95.48%   95.21%   -0.27%     
==========================================
  Files          53       55       +2     
  Lines        6929     6980      +51     
==========================================
+ Hits         6616     6646      +30     
- Misses        313      334      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skmcgrail skmcgrail force-pushed the rsa-cleanup-refactor branch 6 times, most recently from 30f712c to 1d23ab4 Compare November 30, 2023 23:02
@skmcgrail skmcgrail marked this pull request as ready for review November 30, 2023 23:10
@skmcgrail skmcgrail requested a review from a team as a code owner November 30, 2023 23:10
justsmth
justsmth previously approved these changes Dec 11, 2023
@@ -390,133 +397,133 @@ impl<B: AsRef<[u8]>> UnparsedPublicKey<B> {
}

/// Verification of signatures using RSA keys of 1024-8192 bits, PKCS#1.5 padding, and SHA-1.
pub static RSA_PKCS1_1024_8192_SHA1_FOR_LEGACY_USE_ONLY: RsaParameters = RsaParameters(
pub static RSA_PKCS1_1024_8192_SHA1_FOR_LEGACY_USE_ONLY: RsaParameters = RsaParameters::new(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NP: Should we migrate these pub static variables to instead be pub const?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to do this one is a separate PR, mainly as moving these to const will require moving the digest module statics to const as well.

aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
@skmcgrail skmcgrail merged commit fa6733a into aws:main Dec 12, 2023
102 of 107 checks passed
@skmcgrail skmcgrail deleted the rsa-cleanup-refactor branch December 12, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants