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 OAEP Support #303

Merged
merged 14 commits into from
Apr 10, 2024
Merged

RSA OAEP Support #303

merged 14 commits into from
Apr 10, 2024

Conversation

skmcgrail
Copy link
Member

Description of changes:

Implements support for RSA OAEP encryption and decryption to support usage in a broader key-transport scheme. Additionally adds support for RSA key generation (#296).

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 changed the title RSA Key Generation and OAEP Support RSA Key Generation and RSA OAEP Support Dec 20, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2023

Codecov Report

Attention: Patch coverage is 95.27363% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 95.79%. Comparing base (a29a615) to head (08e0cc5).

Files Patch % Lines
aws-lc-rs/src/rsa/encryption.rs 95.00% 12 Missing ⚠️
aws-lc-rs/src/rsa/encoding.rs 93.24% 5 Missing ⚠️
aws-lc-rs/src/evp_pkey.rs 85.71% 1 Missing ⚠️
aws-lc-rs/src/rsa/key.rs 98.14% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #303      +/-   ##
==========================================
- Coverage   95.82%   95.79%   -0.04%     
==========================================
  Files          60       61       +1     
  Lines        7865     8128     +263     
==========================================
+ Hits         7537     7786     +249     
- Misses        328      342      +14     

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

@skmcgrail skmcgrail marked this pull request as ready for review December 21, 2023 18:07
@skmcgrail skmcgrail requested a review from a team as a code owner December 21, 2023 18:07
aws-lc-rs/src/rsa/oaep.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/oaep.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/oaep.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/oaep.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/oaep.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/error.rs Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encoding.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/ptr.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
@skmcgrail
Copy link
Member Author

Moving this to draft for the time being. Currently splitting out the key generation from the OAEP support to reduce the feature scope for our next release.

@skmcgrail skmcgrail marked this pull request as draft January 19, 2024 19:38
@skmcgrail skmcgrail changed the title RSA Key Generation and RSA OAEP Support RSA OAEP Support Feb 12, 2024
@skmcgrail skmcgrail marked this pull request as ready for review February 12, 2024 23:28
.github/workflows/tests.yml Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encoding.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa.rs Show resolved Hide resolved
aws-lc-rs/src/rsa/encryption.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encoding.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encryption.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encryption.rs Outdated Show resolved Hide resolved
@skmcgrail skmcgrail requested a review from justsmth April 5, 2024 22:35
Copy link
Contributor

@justsmth justsmth left a comment

Choose a reason for hiding this comment

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

There are CI failures for clippy and semver. I'm not worried about clippy, but for semver we'll need to add back a rsa::KeySize::len before release.

Otherwise, it looks great!

aws-lc-rs/src/rsa/key.rs Outdated Show resolved Hide resolved
@skmcgrail skmcgrail requested a review from justsmth April 9, 2024 16:30
justsmth
justsmth previously approved these changes Apr 9, 2024
aws-lc-rs/src/rsa.rs Show resolved Hide resolved
aws-lc-rs/src/rsa.rs Show resolved Hide resolved
aws-lc-rs/src/rsa/encoding.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encoding.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encoding.rs Outdated Show resolved Hide resolved
aws-lc-rs/tests/data/rsa_from_pkcs8_tests.txt Show resolved Hide resolved
aws-lc-rs/tests/rsa_test.rs Outdated Show resolved Hide resolved
aws-lc-rs/tests/rsa_test.rs Show resolved Hide resolved
aws-lc-rs/tests/rsa_test.rs Show resolved Hide resolved
aws-lc-rs/src/rsa/encryption.rs Show resolved Hide resolved
andrewhop
andrewhop previously approved these changes Apr 10, 2024
justsmth
justsmth previously approved these changes Apr 10, 2024
@skmcgrail skmcgrail dismissed stale reviews from justsmth and andrewhop via 0272ce5 April 10, 2024 17:55
@skmcgrail skmcgrail merged commit 34283fa into aws:main Apr 10, 2024
166 checks passed
@skmcgrail skmcgrail deleted the oaep branch April 10, 2024 20:54
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.

5 participants