<?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>27403</bug_id>
          
          <creation_ts>2014-11-21 21:56:54 +0000</creation_ts>
          <short_desc>Should PBKDF2 be allowed on non-multiple of 8 lengths for consistency?</short_desc>
          <delta_ts>2016-05-23 22:55: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>115316</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2014-11-21 21:56:54 +0000</bug_when>
    <thetext>PBKDF2 throws an OperationError if length is not a multiple of 8 bits.

This seems inconsistent with deriveBits() for other algorithms, which simply truncate to the specified bit length (for instance ECDH and DH).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125368</commentid>
    <comment_count>1</comment_count>
    <who name="jimsch">ietf</who>
    <bug_when>2016-03-04 20:17:31 +0000</bug_when>
    <thetext>Looking at RFC 2898 which has a definition of PBKDF2.  The inputs include

dkLen - intended length in octets of the derived key, a positive integer.

This means that the algorithm itself requires that the output length be an integral number of bytes and is not specified for odd bit sizes.

This bug should be resolved as by design.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126492</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2016-05-23 22:55:17 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcrypto/issues/32</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>