doc: fix crypto.hkdf callback derivedKey type#39453
doc: fix crypto.hkdf callback derivedKey type#39453panva wants to merge 1 commit intonodejs:masterfrom
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 <[email protected]>
PR-URL: #39453 Reviewed-By: James M Snell <[email protected]>

The example snippet below this block as well as
hkdfSyncare correct in that ArrayBuffer is returned.