<?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>23159</bug_id>
          
          <creation_ts>2013-09-04 19:42:52 +0000</creation_ts>
          <short_desc>Inconsistent &quot;length&quot; property when generating keys (bits vs bytes)</short_desc>
          <delta_ts>2014-03-05 17:02:56 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Mark Watson">watsonm</assigned_to>
          <cc>ap</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93002</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2013-09-04 19:42:52 +0000</bug_when>
    <thetext>AesKeyGenParams.length -- is the key length in BITS
HmacKeyParams.length -- is the key length in BYTES

This inconsistency makes it easy to get things wrong.

Moreover, in the case where the key length is specified in bits, what is the expected behavior when passing a length which is not divisible by 8? (NSS for instance generates keys with integral byte lengths).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101769</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-03-03 19:16:11 +0000</bug_when>
    <thetext>I suggest we align on bits instead of bytes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101907</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-03-05 17:02:56 +0000</bug_when>
    <thetext>Changeset da045968abe0 - change HMAC length from bytes to bits per email discussion</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>