-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Web Crypto API - subtle.deriveKey doesn't return promise with ArrayBuffer + doc example bug #38115
Labels
doc
Issues and PRs related to the documentations.
good first issue
Issues that are suitable for first-time contributors.
webcrypto
Comments
Would you be interested in sending a PR? |
The |
Sadly I'm not very good with Git yet, hence I would prefer that someone else does that. |
aduh95
added
doc
Issues and PRs related to the documentations.
good first issue
Issues that are suitable for first-time contributors.
webcrypto
labels
Apr 6, 2021
hassaanp
added a commit
to hassaanp/node
that referenced
this issue
Apr 7, 2021
Example intends to use deriveKey but uses deriveBits to the subtle.importKey method which does not produce the required response. Fixes: nodejs#38115
panva
added a commit
to panva/node
that referenced
this issue
Apr 8, 2021
Resolved by 896dc39 |
BethGriggs
pushed a commit
that referenced
this issue
Apr 15, 2021
fixes #38115 PR-URL: #38148 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
doc
Issues and PRs related to the documentations.
good first issue
Issues that are suitable for first-time contributors.
webcrypto
The documentation says that it should, but instead it returns a promise with Buffer.
Also the example in the documentation called "Deriving bits and keys" has a bug. In subtle.importKey it is missing 'deriveKey' causing subtle.deriveKey to fail.
Buggy version:
Fixed version (updated based on feedback from jasnell):
The text was updated successfully, but these errors were encountered: