GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — crypto: modernize DH/ECDH/ECDH-ES by tniessen · Pull Request #31178 · nodejs/node Conversation
|
|
I can confirm the missing ECDH-ES JWA algorithm support for x25519 and x448 keys is solved with this (closes #26626). @tniessen would it be possible to split the change to
Reason I ask is i'd like to see 1) backported to lts/erbium and in order to do that It would likely be easier if the change was as simple as possible. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@panva Since either the whole PR, or a subset, are semver-minor, there isn't anything blocking backporting to LTS. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Great. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Overall direction seems okay to me.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
6261781 to
0dfa9c5
Compare
|
Thank you for the initial round of reviews, I'll try to finish up within the next few days.
I would happily accept alternative directions! This is the best I came up with so far :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
27d73df to
78043cc
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Few nits regarding error handling.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
78043cc to
eb347a5
Compare
eb347a5 to
bc309fb
Compare
e98c950 to
4378c9d
Compare
|
@nodejs/crypto PTAL. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4378c9d to
70dc715
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The JS code is LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
62197f1 to
a962a3d
Compare
|
@mscdex I don't think KeyObjects themselves made it into node v10.x, so this will likely be a large and difficult backport. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Refs: #31178 Refs: #31445 PR-URL: #31873 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
The new key type 'dh' corresponds to EVP_PKEY_DH. PR-URL: nodejs#31178 Reviewed-By: Sam Roberts <[email protected]>
PR-URL: nodejs#31178 Reviewed-By: Sam Roberts <[email protected]>
This allows using the generateKeyPair API for DH instead of the old stateful DH APIs. PR-URL: nodejs#31178 Reviewed-By: Sam Roberts <[email protected]>
Currently, Node.js has separate (stateful) APIs for DH/ECDH, and no support for ECDH-ES. This commit adds a single stateless function to compute the DH/ECDH/ECDH-ES secret based on two KeyObjects. PR-URL: nodejs#31178 Reviewed-By: Sam Roberts <[email protected]>
test-crypto-keygen and test-crypto-dh-stateless are currently flaky on ARM CI systems due to their slow CPUs. PR-URL: nodejs#31178 Reviewed-By: Sam Roberts <[email protected]>
The new key type 'dh' corresponds to EVP_PKEY_DH. PR-URL: #31178 Reviewed-By: Sam Roberts <[email protected]>
PR-URL: #31178 Reviewed-By: Sam Roberts <[email protected]>
This allows using the generateKeyPair API for DH instead of the old stateful DH APIs. PR-URL: #31178 Reviewed-By: Sam Roberts <[email protected]>
Currently, Node.js has separate (stateful) APIs for DH/ECDH, and no support for ECDH-ES. This commit adds a single stateless function to compute the DH/ECDH/ECDH-ES secret based on two KeyObjects. PR-URL: #31178 Reviewed-By: Sam Roberts <[email protected]>
test-crypto-keygen and test-crypto-dh-stateless are currently flaky on ARM CI systems due to their slow CPUs. PR-URL: #31178 Reviewed-By: Sam Roberts <[email protected]>
|
@tniessen I noticed some test excludes in the parallel tests: Since this PR is closed I'm wondering if they are still needed and/or there is an open issue that should be listed instead of this one as to why they are excluded? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mhdawson These tests were disabled because they kept timing out. I "temporarily disabled" them more than two years ago, see #31178 (comment) 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
crypto: X25519 and X448 and ECDH
There was an error while loading. Please reload this page.