<?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>27404</bug_id>
          
          <creation_ts>2014-11-21 22:20:36 +0000</creation_ts>
          <short_desc>Should check the publicKey&apos;s algorithm.name for ECDH&apos;s deriveBits()?</short_desc>
          <delta_ts>2016-05-23 22:56:14 +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>mitar.w3</cc>
    
    <cc>public-webcrypto</cc>
    
    <cc>virginie.galindo</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115319</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2014-11-21 22:20:36 +0000</bug_when>
    <thetext>ECDH&apos;s deriveBits() tests that:
   * baseKey.algorithm.name == &quot;ECDH&quot;
   * publicKey.type == &quot;public&quot;
   * publicKey.algorithm.namedCurve == baseKey.algorithm.namedCurve

However it does not test that:
   * publicKey.algorithm.name == baseKey.algorithm.name


Not sure if this is intentional, but that would mean passing some other public EC key (say for ECDSA) is allowed by the spec.

Whereas the rest of WebCrypto is fairly particular about restricting key usage cross-algorithm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125353</commentid>
    <comment_count>1</comment_count>
    <who name="jimsch">ietf</who>
    <bug_when>2016-03-04 02:05:16 +0000</bug_when>
    <thetext>I agree that this check should be added</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126484</commentid>
    <comment_count>2</comment_count>
    <who name="">virginie.galindo</who>
    <bug_when>2016-05-23 21:01:39 +0000</bug_when>
    <thetext>The bug has been transferred to github https://github.com/w3c/webcrypto/issues/25 with the directive to implement the suggested change by Eric and backed by Jim.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126493</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2016-05-23 22:56:14 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcrypto/issues/33</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>