Bug 126033 - WebCrypto importKey should fail when requesting usages that are not allowed by key data
Summary: WebCrypto importKey should fail when requesting usages that are not allowed b...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 160883
  Show dependency treegraph
 
Reported: 2013-12-19 17:06 PST by Alexey Proskuryakov
Modified: 2016-11-10 12:25 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2013-12-19 17:06:55 PST
We currently just intersect usages, and don't complain. A spec proposal suggests that the operation should fail when an importKey argument asks for something that's not allowed in key data (e.g. in JWK).
Comment 1 Radar WebKit Bug Importer 2016-08-15 18:27:31 PDT
<rdar://problem/27858490>
Comment 2 Jiewen Tan 2016-11-10 12:23:12 PST
The bug is resolved by Bug 164446.