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

feat(crypto): Add rsa crate support to rust_native_crypto feature #853

Merged
merged 13 commits into from
Jan 16, 2025

Conversation

scouten-adobe
Copy link
Collaborator

Also makes RSA-PSS signatures available in WASM.

Also makes RSA-PSS signatures available in WASM.
@scouten-adobe scouten-adobe self-assigned this Jan 15, 2025
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 89.87342% with 16 lines in your changes missing coverage. Please review.

Project coverage is 78.15%. Comparing base (630330f) to head (650cda8).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rc/raw_signature/rust_native/signers/rsa_signer.rs 86.66% 12 Missing ⚠️
...to/src/raw_signature/rust_native/validators/mod.rs 80.95% 4 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

}

fn reserve_size(&self) -> usize {
1024 + self.cert_chain_len + self.time_stamp_size
Copy link
Collaborator

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

Copy link
Collaborator Author

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() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ie ED25519 still supported

Copy link
Collaborator Author

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.

Copy link
Collaborator

@mauricefisher64 mauricefisher64 left a 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

@scouten-adobe scouten-adobe merged commit 2c534f9 into main Jan 16, 2025
26 of 28 checks passed
@scouten-adobe scouten-adobe deleted the crypto+native-rsa-signer branch January 16, 2025 21:15
@scouten-adobe scouten-adobe mentioned this pull request Jan 16, 2025
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.

2 participants