<?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>22677</bug_id>
          
          <creation_ts>2013-07-15 23:23:36 +0000</creation_ts>
          <short_desc>wrapKey requires encrypt key usage</short_desc>
          <delta_ts>2014-01-25 01:25:36 +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>Windows NT</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="jimsch">ietf</reporter>
          <assigned_to name="Mark Watson">watsonm</assigned_to>
          <cc>ap</cc>
    
    <cc>sleevi</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90759</commentid>
    <comment_count>0</comment_count>
    <who name="jimsch">ietf</who>
    <bug_when>2013-07-15 23:23:36 +0000</bug_when>
    <thetext>As currently documented, the current description of wrapKey requires that both the wrapKey and encrypt key usages be set on the wrappingKey.  It needs to be modified so that the encrypt operation does not require the encrypt key usage iff it is being called from the wrapKey method.

Same issue exists for unwrapKey.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99052</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-24 23:49:30 +0000</bug_when>
    <thetext>Wrap and unwrap should refer to the raw encrypt and decrypt operations for the algorithm being used, rather than to the encrypt and decrypt *methods*. The method  descriptions describe the creation of a Promise for the operation and the mapping of inputs and outputs - we do not need these parts when we combine export and encrypt into wrap or decrypt and import into unwrap. The method descriptions are where we will check usages so by referring directly to the underlying algorithms, we avoid the problem of this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99065</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-25 01:25:36 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/5aa2b908c640</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>