-
Notifications
You must be signed in to change notification settings - Fork 743
adjust FIPS feature handling w.r.t aws-lc-sys #2291
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2291 +/- ##
=======================================
Coverage 94.89% 94.89%
=======================================
Files 103 103
Lines 24532 24532
=======================================
Hits 23280 23280
Misses 1252 1252 ☔ View full report in Codecov by Sentry. |
c4fc455
to
f921b09
Compare
I'll rebase this soon now that #2342 has landed. Edit: all set. |
Previously rustls unconditionally used the aws-lc-sys and prebuilt-nasm features of the aws-lc-rs dep, meaning we always brought along aws-lc-sys (note the prebuilt-nasm feature customizes that dep). However, when a user is looking for a FIPS crypto provider we want to avoid bringing in aws-lc-sys and instead use aws-lc-rs/fips to get aws-lc-fips-sys. This commit makes the aws-lc-rs feature of webpki activate the "usual" config: aws-lc-rs/aws-lc-sys w/ aws-lc-rs/prebuilt-nasm to have aws-lc-sys with prebuilt assmebly to avoid the nasm dep. The pre-existing fips feature of rustls activates aws-lc-rs/fips and the new downstream webpki/aws-lc-rs-fips feature is activated to have that crate do similar. The net result should be no `aws-lc-sys` dep, just `aws-lc-fips-sys`.
f921b09
to
59db772
Compare
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesThere are no significant wall-time differences Other differencesClick to expand
Additional informationCheckout details:
|
Pull Request is not mergeable
Previously
rustls
unconditionally used theaws-lc-sys
andprebuilt-nasm
features of theaws-lc-rs
dep, meaning we always brought alongaws-lc-sys
(note theprebuilt-nasm
feature customizes that dep). See rustls/webpki#307However, when a user is looking for a FIPS crypto provider we want to avoid bringing in
aws-lc-sys
and instead useaws-lc-rs/fips
to getaws-lc-fips-sys
.This commit makes the
aws-lc-rs
feature of webpki activate the "usual" config:aws-lc-rs/aws-lc-sys
w/aws-lc-rs/prebuilt-nasm
to haveaws-lc-sys
with prebuilt assmebly to avoid thenasm
dep.The pre-existing
fips
feature ofrustls
now activatesaws-lc-rs/fips
. The new downstreamwebpki/fips
feature is activated to have that crate do similar. The net result should be noaws-lc-sys
dep, justaws-lc-fips-sys
.