-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat(crypto): Add rsa
crate support to rust_native_crypto
feature
#853
Conversation
Also makes RSA-PSS signatures available in WASM.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #853 +/- ##
==========================================
- Coverage 78.48% 78.15% -0.34%
==========================================
Files 136 139 +3
Lines 32049 32234 +185
==========================================
+ Hits 25154 25192 +38
- Misses 6895 7042 +147 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
fn reserve_size(&self) -> usize { | ||
1024 + self.cert_chain_len + self.time_stamp_size |
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.
This should probably include OCSP size if part of this signer
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.
@mauricefisher64 do we have a way to estimate OCSP size ahead of time?
@@ -62,21 +45,10 @@ pub(crate) fn async_validator_for_sig_and_hash_algs( | |||
} else if hash_alg.as_ref() == SHA512_OID.as_bytes() { | |||
return async_validator_for_signing_alg(SigningAlg::Es512); | |||
} | |||
} else if sig_alg.as_ref() == ED25519_OID.as_bytes() { |
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.
Ie ED25519 still supported
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.
Yes, it now goes through the rust_native
path. The scope of webcrypto
is now limited to what isn't (yet?) implemented in rust_native
.
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.
Approved but I had some comments/ questions
# Conflicts: # internal/crypto/src/raw_signature/webcrypto/check_certificate_trust.rs
Also makes RSA-PSS signatures available in WASM.