<?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>25419</bug_id>
          
          <creation_ts>2014-04-22 23:37:25 +0000</creation_ts>
          <short_desc>ECDH importKey for SPKI handles errors differently than all other key types, notably ECDSA</short_desc>
          <delta_ts>2014-06-16 23:12:56 +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="Ryan Sleevi">sleevi</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>public-webcrypto</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104228</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-04-22 23:37:25 +0000</bug_when>
    <thetext>The specification for ECDH importKey states for importKey

https://dvcs.w3.org/hg/webcrypto-api/raw-file/0a08958cf50f/spec/Overview.html#ecdh-operations

Import Key
  2. If format is &quot;spki&quot;
    ...
    4. If the parameters field of the algorithm AlgorithmIdentifier field of spki is absent, then return an error named SyntaxError

However, the corresponding errors returned for other ASN.1 related encoding errors are all DataError, as they are for the similar clause in the ECDSA importKey - https://dvcs.w3.org/hg/webcrypto-api/raw-file/0a08958cf50f/spec/Overview.html#ecdsa-operations - which states a DataError is returned

For consistency, all of the SPKI errors should be DataErrors if related to ASN.1 issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107885</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-06-16 23:12:56 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/d1693395d37e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>