-
Notifications
You must be signed in to change notification settings - Fork 31.3k
crypto: remove BoringSSL dh-primes addition #57023
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
Review requested:
|
Are these now supported in boringssl+fips? Also, just fyi, I'm a few days away from opening a PR to switch deps/ncrypto to the version coming from the nodejs/ncrypto repo, at which time these changes should go there. It would be worth opening a PR there also. |
@jasnell as i understand it yes (see linked CL in PR body) - done at nodejs/ncrypto#5 |
Actually, these are going to need to be kept in ncrypto to support older boringssl + fips configurations where these curves are unspecified. I've got a PR that makes sure they are blocked behind a define flag that will be off in our usage here. Landing this PR is fine since it won't impact node.js at all. |
Just to be clear... when we switch over to the repo-version .. these conditionally added primes will still be here, so removing them here is only temporary. There is an additional guard there, however, that ensures they are injected only when specifically needed rather than always when boringssl is used. |
95b3860
to
f1614d4
Compare
Commit Queue failed- Loading data for nodejs/node/pull/57023 ✔ Done loading data for nodejs/node/pull/57023 ----------------------------------- PR info ------------------------------------ Title crypto: remove BoringSSL dh-primes addition (#57023) Author Shelley Vohr <[email protected]> (@codebytere) Branch codebytere:remove-dh-primes -> nodejs:main Labels dependencies Commits 1 - crypto: remove BoringSSL dh-primes addition Committers 1 - Shelley Vohr <[email protected]> PR-URL: https://github.com/nodejs/node/pull/57023 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/57023 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - crypto: remove BoringSSL dh-primes addition ℹ This PR was created on Thu, 13 Feb 2025 09:35:24 GMT ✔ Approvals: 3 ✔ - Richard Lau (@richardlau) (TSC): https://github.com/nodejs/node/pull/57023#pullrequestreview-2615045737 ✔ - Joyee Cheung (@joyeecheung) (TSC): https://github.com/nodejs/node/pull/57023#pullrequestreview-2615449282 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/57023#pullrequestreview-2618471607 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2025-02-25T11:17:09Z: https://ci.nodejs.org/job/node-test-pull-request/65427/ - Querying data for job/node-test-pull-request/65427/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/13836438978 |
Landed in b9b4cb7 |
PR-URL: nodejs#57023 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
I don't believe these are necessary for current versions of BoringSSL.
The added functions:
BN_get_rfc3526_prime_2048
BN_get_rfc3526_prime_3072
BN_get_rfc3526_prime_4096
BN_get_rfc3526_prime_6144
BN_get_rfc3526_prime_8192
can be found here and were added in https://boringssl-review.googlesource.com/c/boringssl/+/54305
Electron compiles without this file without issue.