Skip to content

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

codebytere
Copy link
Member

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.

@codebytere codebytere requested a review from jasnell February 13, 2025 09:35
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/security-wg

Sorry, something went wrong.

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Feb 13, 2025
@codebytere codebytere added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 13, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 13, 2025
@nodejs-github-bot
Copy link
Collaborator

@jasnell
Copy link
Member

jasnell commented Feb 13, 2025

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.

@codebytere
Copy link
Member Author

@jasnell as i understand it yes (see linked CL in PR body) - done at nodejs/ncrypto#5

@jasnell
Copy link
Member

jasnell commented Feb 13, 2025

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.

@jasnell
Copy link
Member

jasnell commented Feb 14, 2025

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.

Verified

This commit was signed with the committer’s verified signature.
codebytere Shelley Vohr
@codebytere codebytere added request-ci Add this label to start a Jenkins CI on a PR. and removed needs-ci PRs that need a full CI run. labels Feb 25, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 25, 2025
@nodejs-github-bot
Copy link
Collaborator

@codebytere codebytere added the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 13, 2025
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Mar 13, 2025
@nodejs-github-bot
Copy link
Collaborator

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/.ncu
https://github.com/nodejs/node/actions/runs/13836438978

@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Mar 14, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 14, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 merged commit b9b4cb7 into nodejs:main Apr 7, 2025
68 checks passed
@aduh95
Copy link
Contributor

aduh95 commented Apr 7, 2025

Landed in b9b4cb7

JonasBa pushed a commit to JonasBa/node that referenced this pull request Apr 11, 2025

Unverified

The email in this signature doesn’t match the committer email.
PR-URL: nodejs#57023
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. dependencies Pull requests that update a dependency file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants