-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
doc: fix crypto.hkdf callback derivedKey type #39453
Conversation
Fast-track has been requested by @panva. Please 👍 to approve. |
|
So... we have three key derivation functions now: |
@jasnell would be best to answer with confidence. But if i was to guess, I was also surprised to see ArrayBuffer returned, I expected a Buffer both from "that's how node crypto works" perspective as well as docs. |
Personally, I'd consider the current behavior a bug, but even if we changed it to match the documentation, it would be inconsistent with |
Refs: #39471 |
Commit Queue failed- Loading data for nodejs/node/pull/39453 ✔ Done loading data for nodejs/node/pull/39453 ----------------------------------- PR info ------------------------------------ Title doc: fix crypto.hkdf callback derivedKey type (#39453) Author Filip Skokan (@panva) Branch panva:doc-hkdf-fix -> nodejs:master Labels crypto, doc, fast-track Commits 1 - doc: fix crypto.hkdf callback derivedKey type Committers 1 - Filip Skokan PR-URL: https://github.com/nodejs/node/pull/39453 Reviewed-By: James M Snell ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/39453 Reviewed-By: James M Snell -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 19 Jul 2021 20:42:16 GMT ✔ Approvals: 1 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/39453#pullrequestreview-710559837 ℹ This PR is being fast-tracked ✖ This PR needs to wait 3 more hours to land (or 0 hours if there is one more approval) ✔ Last GitHub Actions successful ℹ Green GitHub Actions CI is sufficient -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/1066883872 |
Landed in c1354ff...5ad6a99 |
PR-URL: #39453 Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #39453 Reviewed-By: James M Snell <jasnell@gmail.com>
The example snippet below this block as well as
hkdfSync
are correct in that ArrayBuffer is returned.