-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
crypto: remove BoringSSL dh-primes addition #57023
base: main
Are you sure you want to change the base?
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
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.