-
Notifications
You must be signed in to change notification settings - Fork 56
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
RSA Module Refactor #273
Conversation
8acbe30
to
a71a9d4
Compare
Codecov ReportAttention:
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. |
30f712c
to
1d23ab4
Compare
@@ -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( |
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.
NP: Should we migrate these pub static
variables to instead be pub const
?
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.
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.
1d23ab4
to
9f3f844
Compare
9f3f844
to
768ed16
Compare
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.