Skip to content

typings: add typing for crypto#64122

Closed
panva wants to merge 1 commit into
nodejs:mainfrom
panva:internal-bindings-crypto
Closed

typings: add typing for crypto#64122
panva wants to merge 1 commit into
nodejs:mainfrom
panva:internal-bindings-crypto

Conversation

@panva

@panva panva commented Jun 25, 2026

Copy link
Copy Markdown
Member

Add typings for the internalBinding('crypto') surface used by the JS crypto, TLS, and WebCrypto implementation, and wire the binding into InternalBindingMap.

The declaration models the JS-consumed native surface, including mode-dependent CryptoJob behavior, WebCrypto promise jobs, CryptoKey/KeyObject slot tuples, key generation result shapes, sign/verify/MAC result types, cipher jobs, FIPS/root-certificate helpers, secureHeapUsed(), and timingSafeEqual().

This also adds JSDoc types for the internal WebCrypto job-promise helpers so Promise payloads such as generated CryptoKey values are preserved through jobPromise() and jobPromiseThen().

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
@panva panva requested a review from anonrig June 25, 2026 08:43
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. typings labels Jun 25, 2026
@panva panva removed the needs-ci PRs that need a full CI run. label Jun 25, 2026

@aduh95 aduh95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

@panva panva added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 25, 2026
@panva panva added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 25, 2026
@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 Jun 27, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/64122
βœ”  Done loading data for nodejs/node/pull/64122
----------------------------------- PR info ------------------------------------
Title      typings: add typing for crypto (#64122)
Author     Filip Skokan <panva.ip@gmail.com> (@panva)
Branch     panva:internal-bindings-crypto -> nodejs:main
Labels     crypto, author ready, typings
Commits    1
 - typings: add typing for crypto
Committers 1
 - Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/64122
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/64122
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
--------------------------------------------------------------------------------
   β„Ή  This PR was created on Thu, 25 Jun 2026 08:43:26 GMT
   βœ”  Approvals: 2
   βœ”  - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/64122#pullrequestreview-4569361757
   βœ”  - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/64122#pullrequestreview-4570463738
   βœ”  Last GitHub CI successful
   ✘  No Jenkins CI runs detected
--------------------------------------------------------------------------------
   βœ”  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/28284862558

panva added a commit that referenced this pull request Jun 27, 2026
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: #64122
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
@panva

panva commented Jun 27, 2026

Copy link
Copy Markdown
Member Author

Landed in 47d2d62

@panva panva closed this Jun 27, 2026
@panva panva removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jun 27, 2026
@panva panva deleted the internal-bindings-crypto branch June 27, 2026 09:50
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. crypto Issues and PRs related to the crypto subsystem. typings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants