Bug 129127
| Summary: | JWK export should be padded to 8*n bytes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | bfulgham, jiewen_tan, rob, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 160883 | ||
Alexey Proskuryakov
As AES-KW can only wrap keys that are 8*n bytes bytes long, wrapping a CryptoKey in JWK format is only possible when the exported key happens to be of that size.
See <https://www.w3.org/Bugs/Public/show_bug.cgi?id=24457>. We should probably wait to see if a particular form of padding gets prescribed.
When done, we should re-add a subtest to crypto/subtle/aes-kw-wrap-unwrap-aes.html that was removed in <http://trac.webkit.org/r163244>.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/27858069>
Jiewen Tan
Per discussion of the W3C thread and the most updated spec:
https://www.w3.org/TR/WebCryptoAPI/#aes-kw-operations, and Editor's draft:
https://w3c.github.io/webcrypto/Overview.html#aes-kw-operations.
This padding restriction becomes a check on the wrapKey operation of AES-KW. Therefore, this bug is obsolete.