<?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>26315</bug_id>
          
          <creation_ts>2014-07-12 01:25:19 +0000</creation_ts>
          <short_desc>ECDSA/ECDH: &quot;namedCurve ASN.1 type&quot; is ambiguous</short_desc>
          <delta_ts>2014-09-26 23:26:52 +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="Mark Watson">watsonm</assigned_to>
          <cc>bal</cc>
    
    <cc>public-webcrypto</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108876</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-07-12 01:25:19 +0000</bug_when>
    <thetext>Raised by Brian on 

The current ( https://dvcs.w3.org/hg/webcrypto-api/raw-file/ee10c81e1141/spec/Overview.html ) spec language for ECDSA/ECDH handling of EC keys states

&quot;If params is not an instance of the namedCurve ASN.1 type defined in RFC 5480&quot;

This was seen as confusing. The intent was to specify that of the choice of ECParameters, only the namedCurve choice was acceptable (e.g. implicitCurve and specifiedCurve) are NOT supported.

As Brian interpreted, and as others may reasonably do so, this was seen as constraining the contents of the OIDs to those specified in 2.1.1.1 of RFC 5480 ( http://tools.ietf.org/html/rfc5480#section-2.1.1.1 ). While 2.1.1.1 is clear to indicate other specifications may describe additional types, it&apos;s still ambiguous because WebCrypto may choose to allow OIDs for which no specifications updating 5480 exist - e.g. the NUMS curves

One possible language modification is
&quot;If params is an instance of the ECParameters ASN.1 type that specifies a namedCurve&quot;

but that may still be seen as ambiguous.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111958</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-22 17:58:59 +0000</bug_when>
    <thetext>I suggest we adopt the wording proposed in Comment #1: &quot;If params is an instance of the ECParameters ASN.1 type that specifies a namedCurve&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112327</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-26 23:26:52 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/dbdc7abe4e32</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>