-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
crypto: remove Node.js-specific Web Crypto API extensions #43310
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 Node.js-specific Web Crypto API extensions #43310
Conversation
|
Review requested:
|
|
could |
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Only three resumes 🚀 |
Commit Queue failed- Loading data for nodejs/node/pull/43310 ✔ Done loading data for nodejs/node/pull/43310 ----------------------------------- PR info ------------------------------------ Title crypto: remove Node.js-specific Web Crypto API extensions (#43310) Author Filip Skokan (@panva) Branch panva:webcrypto-remove-extensions -> nodejs:master Labels crypto, semver-minor, lib / src, notable-change, experimental, author ready, needs-ci, webcrypto Commits 2 - crypto: remove Node.js-specific webcrypto extensions - fixup! crypto: remove Node.js-specific Web Crypto API extensions Committers 2 - Filip Skokan - GitHub PR-URL: https://github.com/nodejs/node/pull/43310 Reviewed-By: James M Snell ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43310 Reviewed-By: James M Snell -------------------------------------------------------------------------------- ℹ This PR was created on Sat, 04 Jun 2022 06:38:50 GMT ✔ Approvals: 1 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/43310#pullrequestreview-995799532 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2022-06-04T12:49:53Z: https://ci.nodejs.org/job/node-test-pull-request/44355/ - Querying data for job/node-test-pull-request/44355/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/master up to date... From https://github.com/nodejs/node * branch master -> FETCH_HEAD ✔ origin/master is now up-to-date - Downloading patch for 43310 From https://github.com/nodejs/node * branch refs/pull/43310/merge -> FETCH_HEAD ✔ Fetched commits as cb7e854c776d..2367fa298973 -------------------------------------------------------------------------------- [master 31dcf796f2] crypto: remove Node.js-specific webcrypto extensions Author: Filip Skokan Date: Thu Jun 2 10:41:00 2022 +0200 25 files changed, 40 insertions(+), 1901 deletions(-) delete mode 100644 lib/internal/crypto/dsa.js delete mode 100644 test/fixtures/crypto/dsa.js delete mode 100644 test/parallel/test-webcrypto-derivebits-node-dh.js delete mode 100644 test/parallel/test-webcrypto-export-import-dsa.js delete mode 100644 test/parallel/test-webcrypto-sign-verify-node-dsa.js [master 7e3574df4c] fixup! crypto: remove Node.js-specific Web Crypto API extensions Author: Filip Skokan Date: Sat Jun 4 08:52:21 2022 +0200 1 file changed, 2 insertions(+), 2 deletions(-) ✔ Patches applied There are 2 commits in the PR. Attempting autorebase. Rebasing (2/4)https://github.com/nodejs/node/actions/runs/2479089075 |
|
How is this PR not semver-major? It removes things. |
The webcrypto module is
experimental
|
|
Ah, thanks for clarifying. |
If you need to write code that supports both Node 18.4.0 and earlier version, you can try my library: It exports an |
This PR removes Node.js specific extensions from Web Crypto API.
'NODE-DSA','NODE-DH', and'NODE-SCRYPT'algorithms.'node.keyObject'import/export format.These extensions are not portable and the cryptoIssues and PRs related to the crypto subsystem.
module accomodates their functionality.
After this cleanup the webcrypto module has a clearer path to stable stability status.
NB:
srccode cleanup will follow in a separate PR.