This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25382 - What error is returned when key mismatches operation?
Summary: What error is returned when key mismatches operation?
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Mark Watson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-17 23:37 UTC by Eric Roman
Modified: 2014-09-24 18:50 UTC (History)
2 users (show)

See Also:


Attachments

Description Eric Roman 2014-04-17 23:37:50 UTC
For instance if calling encrypt() with an AES-CBC algorithm, however provided a key for RSASSA.

Perhaps InvalidAccessError, to match what the failure asymmetric algorithms are using when given the wrong key type?
Comment 1 Mark Watson 2014-09-19 15:57:44 UTC
This is specified as InvalidAccessError for some algorithms but not for others. The check could be done in the methods rather than per algorithm.