-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
let ciphertext = pkcs1_parsed_public | ||
.encrypt(&message, &mut ciphertext) | ||
.expect("encrypted"); | ||
|
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
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.