<?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>25857</bug_id>
          
          <creation_ts>2014-05-21 18:58:55 +0000</creation_ts>
          <short_desc>Extractability is not always specified when importing keys (in particular public keys)</short_desc>
          <delta_ts>2014-09-24 18:54:20 +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>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>public-webcrypto</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106596</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2014-05-21 18:58:55 +0000</bug_when>
    <thetext>The value of &quot;key.extractable&quot; for importKey() is not consistently specified by the per-algorithm &quot;Import Key&quot;.

For instance AES-KW defines it, however RSA-SSA, RSA-OAEP, RSA-ES, do not.

I suggest extracting the common properties out of the per-algorithm definitions, and into the generic importKey() language.

In particular, it is worth clarifying how &quot;key.extractable&quot; behaves for public keys.

In the case of generateKey(), the extractablity of public keys is always set to true. So one might interpret likewise for importKey() unless it is indicated. That said, I found evidence in the spec that the intent is for public keys to respect the extractability set in importKey() -- since Diffie-Hellman&apos;s definition spells it out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111953</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-22 17:52:07 +0000</bug_when>
    <thetext>I suggest we move the setting of the key.extractable attribute to the importKey method procedures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112101</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-24 18:54:20 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/81b4435a540d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>