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 27506 - Inconsistent error for AES-CTR's "get key length" operation
Summary: Inconsistent error for AES-CTR's "get key length" operation
Status: RESOLVED MOVED
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: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-03 23:58 UTC by Eric Roman
Modified: 2016-05-23 23:51 UTC (History)
3 users (show)

See Also:


Attachments

Description Eric Roman 2014-12-03 23:58:12 UTC
AES-CTR throws a DataError in its "get key length" operation if the length is not one of {128, 192, 256}.

Whereas the other AES algorithms throw an OperationError in this case.

I suggest using OperationError for AES-CTR to match the others.
Comment 1 jimsch 2016-03-04 03:40:52 UTC
I agree that this should be made consistent.  However I believe that DataError would be the correct error returned in this case.  The data provided is incorrect.
Comment 2 Mark Watson 2016-05-23 23:51:17 UTC
Moved to https://github.com/w3c/webcrypto/issues/45