Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

panva
Copy link
Member

@panva panva commented Jul 28, 2025

This allows node:crypto to recognize the following asymmetric KeyObject types (keyObject.asymmetricKeyType) when built with or linked to OpenSSL 3.5 (#59234):

And the following functionality for them:

  • import crypto.createPublicKey() SPKI/JWK
  • import crypto.createPrivateKey() PKCS#8/JWK
  • export keyObject.export() SPKI/PKCS#8/JWK
  • keygen crypto.generateKeyPair(Sync)() into KeyObject, PEM, DER, JWK
  • ML-DSA signing via crypto.sign() and signature verification via crypto.verify()

notable-change PRs with changes that should be highlighted in changelogs.

ML-DSA support in node:crypto kicks off post-quantum cryptography efforts in Node.js. This is part of a broader effort to support NIST's post-quantum cryptography standards for future-proofing applications against quantum computing threats.


@panva panva requested review from jasnell and tniessen July 28, 2025 12:49
@panva panva added crypto Issues and PRs related to the crypto subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. labels Jul 28, 2025
@nodejs-github-bot
Copy link
Collaborator

Review requested:

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

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jul 28, 2025
@panva panva force-pushed the crypto-pqc-keyobjects branch from 18133e1 to 2f37933 Compare July 28, 2025 12:53
@nodejs-github-bot

This comment was marked as outdated.

@panva
Copy link
Member Author

panva commented Jul 28, 2025

cc @nodejs/cpp-reviewers 🙏

@panva panva added the semver-minor PRs that contain new features and should be released in the next minor version. label Jul 28, 2025
@panva panva force-pushed the crypto-pqc-keyobjects branch from 521deae to 7a6c57c Compare July 28, 2025 14:01
@nodejs-github-bot

This comment was marked as outdated.

@panva panva changed the title crypto: add ML-DSA and ML-KEM KeyObject support crypto: add ML-DSA and ML-KEM KeyObject support, ML-DSA sign and verify Jul 28, 2025
@panva panva force-pushed the crypto-pqc-keyobjects branch 3 times, most recently from 7c37a1c to 3c220b4 Compare July 28, 2025 18:23
@panva panva changed the title crypto: add ML-DSA and ML-KEM KeyObject support, ML-DSA sign and verify crypto: support ML-DSA KeyObject, sign, and verify Jul 28, 2025
@panva panva force-pushed the crypto-pqc-keyobjects branch from 3c220b4 to 7bd6d1e Compare July 28, 2025 18:26
@panva panva added commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. labels Jul 28, 2025
@panva panva force-pushed the crypto-pqc-keyobjects branch from 7bd6d1e to a08d556 Compare July 28, 2025 18:32
@panva panva added the notable-change PRs with changes that should be highlighted in changelogs. label Jul 28, 2025
Copy link
Contributor

The notable-change PRs with changes that should be highlighted in changelogs. label has been added by @panva.

Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section.

@nodejs-github-bot nodejs-github-bot merged commit 24e28c4 into nodejs:main Aug 6, 2025
60 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 24e28c4

@panva panva deleted the crypto-pqc-keyobjects branch August 6, 2025 21:49
panva added a commit to panva/node that referenced this pull request Aug 7, 2025
PR-URL: nodejs#59259
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Ethan Arrowood <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@panva panva removed the notable-change PRs with changes that should be highlighted in changelogs. label Aug 21, 2025
@Swetik1902

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. crypto Issues and PRs related to the crypto subsystem. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. review wanted PRs that need reviews. semver-minor PRs that contain new features and should be released in the next minor version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants