<?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>24056</bug_id>
          
          <creation_ts>2013-12-10 18:54:09 +0000</creation_ts>
          <short_desc>Algorithms supporting encrypt/decrypt should also support wrap/unwrap</short_desc>
          <delta_ts>2014-01-25 01:26:43 +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="Mark Watson">watsonm</reporter>
          <assigned_to name="Mark Watson">watsonm</assigned_to>
          <cc>ap</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97415</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2013-12-10 18:54:09 +0000</bug_when>
    <thetext>With our definition of wrap == export + encrypt and unwrap == decrypt + import, any encryption/decryption algorithm can be used for wrap / unwrap.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97609</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-12-13 18:10:43 +0000</bug_when>
    <thetext>There could be some complications with JWK import/export here. My understanding is that in JOSE, the sets of algorithms used for encryption and for key wrapping are disjoint (see e.g. A128GCM vs. A128GCMKW).

This is not an objection, just something to consider.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99049</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-24 23:44:02 +0000</bug_when>
    <thetext>This was apparently agreed in Shenzhen. There will be no custom padding defined for the case where the export step produces output of a size that the encryption algorithm does not support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99050</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-24 23:44:02 +0000</bug_when>
    <thetext>This was apparently agreed in Shenzhen. There will be no custom padding defined for the case where the export step produces output of a size that the encryption algorithm does not support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99067</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-25 01:26:43 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/9542aa51a7c0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>