FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

crypto: fix webcrypto ECDH JWK import by panva · Pull Request #35855 · nodejs/node · GitHub

/ node Public

crypto: fix webcrypto ECDH JWK import - #35855

Closed
panva wants to merge 1 commit into
nodejs:masterfrom
panva:fix-35812
Closed

crypto: fix webcrypto ECDH JWK import#35855
panva wants to merge 1 commit into
nodejs:masterfrom
panva:fix-35812

Conversation

panva commented Oct 28, 2020
edited
Loading

Copy link
Copy Markdown
Member

This fixes the importKey operation when importing a JWK for the ECDH algorithm. As per the Web Crypto API specification the JWK alg property is not checked (as opposed to ECDSA for which the correct behaviour is implemented).

fixes #35812

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

This fixes the importKey operation when importing a JWK for the ECDH
algorithm. As per the Web Crypto API specification the JWK `alg`
property is not checked (as opposed to ECDSA).

fixes nodejs#35812

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

nodejs-github-bot added the crypto Issues and PRs related to the crypto subsystem. label Oct 28, 2020

panva commented Oct 28, 2020

Copy link
Copy Markdown
Member Author

cc @jasnell

panva commented Oct 28, 2020

Copy link
Copy Markdown
Member Author

CI failure's unrelated to the change.

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

tniessen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks :)

danbev pushed a commit that referenced this pull request Oct 30, 2020
This fixes the importKey operation when importing a JWK for the ECDH
algorithm. As per the Web Crypto API specification the JWK `alg`
property is not checked (as opposed to ECDSA).

PR-URL: #35855
Fixes: #35812
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>

danbev commented Oct 30, 2020

Copy link
Copy Markdown
Contributor

Landed in e8fe38f.

danbev closed this Oct 30, 2020
targos pushed a commit that referenced this pull request Nov 3, 2020
This fixes the importKey operation when importing a JWK for the ECDH
algorithm. As per the Web Crypto API specification the JWK `alg`
property is not checked (as opposed to ECDSA).

PR-URL: #35855
Fixes: #35812
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
targos mentioned this pull request Nov 3, 2020
panva deleted the fix-35812 branch October 13, 2022 09:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto Issues and PRs related to the crypto subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crypto(webcrypto): ECDH Named curve mismatch

7 participants


Back | FazBrowse Home | New Git URL