Summary: | P-384 EC public JWK key in layout tests is wrong | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yoshiaki Jitsukawa <yoshiaki.jitsukawa> | ||||||||||
Component: | Tools / Tests | Assignee: | Yoshiaki Jitsukawa <yoshiaki.jitsukawa> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | ap, bfulgham, cdumez, ews-watchlist, jiewen_tan, katherine_cheney, webkit-bug-importer, yoshiaki.jitsukawa | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | WebKit Nightly Build | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=227480 | ||||||||||||
Attachments: |
|
Description
Yoshiaki Jitsukawa
2021-06-27 17:20:48 PDT
Created attachment 432358 [details]
Patch
Created attachment 432359 [details]
test html run on chrome
Attaching a test html I ran on windows Chrome.
Created attachment 432361 [details]
Patch
Created attachment 432439 [details]
Patch
Comment on attachment 432439 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432439&action=review > LayoutTests/ChangeLog:3 > + P-384 EC public JWK key in layout tests is wrong Is this a bad test that shouldn't be passing? trying to understand if there is a WebKit behavior bug, not just a test bug. > Is this a bad test that shouldn't be passing? trying to understand if there is a WebKit behavior bug, not just a test bug.
I believe these tests themselves are expected to be passed, and as you mentioned, there seems to be a bug that WebKit accepts a kind of invalid keys.
(In reply to Yoshiaki Jitsukawa from comment #6) > > Is this a bad test that shouldn't be passing? trying to understand if there is a WebKit behavior bug, not just a test bug. > > I believe these tests themselves are expected to be passed, and as you > mentioned, there seems to be a bug that WebKit accepts a kind of invalid > keys. Seems we should align with Chrome and throw on bad input then? (In reply to Chris Dumez from comment #7) > Seems we should align with Chrome and throw on bad input then? I personally think so. I've filed bug 227480 - [WebCrypto] WebKit accepts elliptic curve key whose point is not on the curve Committed r279374 (239240@main): <https://commits.webkit.org/239240@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432439 [details]. |