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 PKCS1 v1.5 Encryption Support #492

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Conversation

skmcgrail
Copy link
Member

Issues:

CryptoAlg-2596

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 requested a review from a team as a code owner August 7, 2024 18:39
@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 8 lines in your changes missing coverage. Please review.

Project coverage is 92.71%. Comparing base (c358484) to head (637c88a).
Report is 67 commits behind head on main.

Files with missing lines Patch % Lines
aws-lc-rs/src/rsa/encryption/pkcs1.rs 91.66% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #492      +/-   ##
==========================================
- Coverage   95.80%   92.71%   -3.09%     
==========================================
  Files          61       64       +3     
  Lines        8143     8589     +446     
  Branches        0     8589    +8589     
==========================================
+ Hits         7801     7963     +162     
- Misses        342      365      +23     
- Partials        0      261     +261     

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

aws-lc-rs/src/rsa/encryption/pkcs1.rs Outdated Show resolved Hide resolved
aws-lc-rs/src/rsa/encryption/pkcs1.rs Show resolved Hide resolved
aws-lc-rs/src/rsa/encryption/pkcs1.rs Outdated Show resolved Hide resolved
@skmcgrail skmcgrail requested a review from justsmth August 15, 2024 19:36
aws-lc-rs/tests/rsa_test.rs Show resolved Hide resolved
let ciphertext = pkcs1_parsed_public
.encrypt(&message, &mut ciphertext)
.expect("encrypted");

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Would it be worth doing a assert_ne!(message, ciphertext); here, similar to what you're doing in rsa_test.rs?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will follow-up separately to clean-up.

@skmcgrail skmcgrail merged commit 5346709 into aws:main Aug 19, 2024
187 of 196 checks passed
@skmcgrail skmcgrail deleted the rsa-pkcs1-enc branch August 19, 2024 18:14
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.

4 participants