<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27506</bug_id>
          
          <creation_ts>2014-12-03 23:58:12 +0000</creation_ts>
          <short_desc>Inconsistent error for AES-CTR&apos;s &quot;get key length&quot; operation</short_desc>
          <delta_ts>2016-05-23 23:51:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Web Cryptography</product>
          <component>Web Cryptography API Document</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Roman">ericroman</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>ietf</cc>
    
    <cc>public-webcrypto</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115891</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2014-12-03 23:58:12 +0000</bug_when>
    <thetext>AES-CTR throws a DataError in its &quot;get key length&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125356</commentid>
    <comment_count>1</comment_count>
    <who name="jimsch">ietf</who>
    <bug_when>2016-03-04 03:40:52 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126505</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2016-05-23 23:51:17 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcrypto/issues/45</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>