-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
crypto: do not add undefined hash in webcrypto normalizeAlgorithm #42559
crypto: do not add undefined hash in webcrypto normalizeAlgorithm #42559
Conversation
Review requested:
|
Looks like there are some related failures, could you take a look, please? |
Yeah i'm trying to figure out how to best debug wpt failures right now. |
b09d864
to
df21856
Compare
df21856
to
379b548
Compare
A bit of an aside, but I've re-added the It's perhaps a bit confusingly named, but the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit: since the file being test is called util.js
, consider renaming the test to test-webcrypto-util.js
(instead of test-webcrypto-utils.js
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating :)
Landed in 5d0eb10 |
PR-URL: nodejs#42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: nodejs#42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: nodejs/node#42559 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
Every now and then, when working with node's WebCryptoAPI, I noticed that the key's algorithm had an
undefined
hash property that wasn't present at the time of importing/deriving/generating. This, while not affecting the functionality of webcrypto, is not expected. This PR fixes that.