<?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>27783</bug_id>
          
          <creation_ts>2015-01-07 22:30:20 +0000</creation_ts>
          <short_desc>Incompatible specification for how usages is enforced for ECDH</short_desc>
          <delta_ts>2016-05-24 00:25:37 +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>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="jimsch">ietf</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>ericroman</cc>
    
    <cc>mitar.w3</cc>
    
    <cc>public-webcrypto</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116902</commentid>
    <comment_count>0</comment_count>
    <who name="jimsch">ietf</who>
    <bug_when>2015-01-07 22:30:20 +0000</bug_when>
    <thetext>ECDH says that key usages must contain deriveKey or deriveBits in step 3 for type jwk.
ECDH says that key usages must be empty in step 4 for type jwk.

The two are mutually incompatable.  I assume one is supposed to be for when d is absent as both are marked as being for d being present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116903</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2015-01-07 22:41:07 +0000</bug_when>
    <thetext>Can you please provide a link to the revision you are quoting?

From the current https://dvcs.w3.org/hg/webcrypto-api/raw-file/d73602c274f0/spec/Overview.html#ecdh-operations

Import Key
JWK

3. If the &quot;d&quot; field is present and if usages contains an entry which is not &quot;deriveKey&quot; or &quot;deriveBits&quot; then throw a SyntaxError.

4. If the &quot;d&quot; field is present and if usages is not empty then throw a SyntaxError.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116907</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2015-01-08 00:33:44 +0000</bug_when>
    <thetext>I agree with Jim, the language in step 4 seems reversed.
It would make more sense if it read:

If the &quot;d&quot; field is *NOT* present and if usages is not empty then throw a SyntaxError.

Which phrased differently is &quot;public ECDH keys must have empty usages&quot;.

(The prohibition of private ECDH keys having empty usages is already covered by the generic language of importKey() which place such a restriction on secret/private keys)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125354</commentid>
    <comment_count>3</comment_count>
    <who name="jimsch">ietf</who>
    <bug_when>2016-03-04 02:34:03 +0000</bug_when>
    <thetext>as near as I can tell this has been fixed,</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>