<?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>24878</bug_id>
          
          <creation_ts>2014-03-01 16:35:32 +0000</creation_ts>
          <short_desc>Remove algorithm aliases</short_desc>
          <delta_ts>2014-10-22 21:23:17 +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>All</rep_platform>
          <op_sys>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Barnes">rlb</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>ap</cc>
    
    <cc>virginie.galindo</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101700</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Barnes">rlb</who>
    <bug_when>2014-03-01 16:35:32 +0000</bug_when>
    <thetext>Is there a strong use case for algorithm aliases?  There are none defined in the spec, and the Chromium implementation just fails if you pass it a string.  (Polycrypt only accepts strings, but that&apos;s clearly wrong anyway.)   It would simplify the API if we could drop the DOMString alternative in AlgorithmIdentifier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101803</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-03-04 00:30:34 +0000</bug_when>
    <thetext>The spec used to say that passing &quot;foo&quot; is equivalent to passing {name: &quot;foo&quot;}. Was dropping this while adding the more general aliases mechanism just an editorial mistake?

I think that allowing crypto.subtle.digest(&apos;sha-1&apos;, myArray) in place of crypto.subtle.digest({name: &apos;sha-1&apos;}, myArray) is desirable. There is no need to expose a silly looking API to people who just want to compute a hash, and don&apos;t care about the full complexity of CryptoAlgorithms being dictionaries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107913</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-06-16 23:21:59 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/71498804a64d addresses the case of &quot;SHA-1&quot; === { &quot;name&quot;: &quot;SHA-1&quot; }

It has not, however, removed support for aliases. There are no aliases defined, so I&apos;m happy nuking that part from the spec entirely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111943</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-22 17:40:04 +0000</bug_when>
    <thetext>Alias support seems clear in the algorithm normalization. Suggest we leave the spec as is: resolve won&apos;t fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111977</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Barnes">rlb</who>
    <bug_when>2014-09-22 21:05:59 +0000</bug_when>
    <thetext>Do any implementations support aliases, or plan to?  (I, for one, do not.)  Do any applications want/need it?  If there&apos;s no customer for this feature, let&apos;s please take it out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112268</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-26 16:44:38 +0000</bug_when>
    <thetext>There are no aliases defined, so I would not expect implementations to support any.

The question is whether we want the possibility for future algorithms to define aliases, or whether we want to introduce aliases for the existing algorithms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112791</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-10-07 14:44:45 +0000</bug_when>
    <thetext>Shall we mark this as a feature-at-risk ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112931</commentid>
    <comment_count>7</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-10-09 21:35:43 +0000</bug_when>
    <thetext>(In reply to Richard Barnes from comment #4)
&gt; Do any implementations support aliases, or plan to?  (I, for one, do not.) 
&gt; Do any applications want/need it?  If there&apos;s no customer for this feature,
&gt; let&apos;s please take it out.

Do you implement the spec-defined behaviour that allows &quot;SHA-1&quot; to be equivalent to { &quot;name&quot;: &quot;SHA-1&quot; } ?

(In reply to Mark Watson from comment #6)
&gt; Shall we mark this as a feature-at-risk ?

I&apos;m fine with taking out aliases. It was syntactic sugar proposed early on for the JOSE case, but I don&apos;t think it&apos;s good, and it inherently couples UA implementations to JOSE implementations with respect to JWE/JWS, which we have so far (intentionally) avoided normatively requiring support for.

So I&apos;m in favour of taking it out over feature at risk, but with the caveat of the &quot;foo&quot; -&gt; { &quot;name&quot;: &quot;foo&quot; } as sugar that we need to figure out whether to keep or also toss.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112933</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Barnes">rlb</who>
    <bug_when>2014-10-09 21:48:11 +0000</bug_when>
    <thetext>(In reply to Ryan Sleevi from comment #7)
&gt; (In reply to Richard Barnes from comment #4)
&gt; &gt; Do any implementations support aliases, or plan to?  (I, for one, do not.) 
&gt; &gt; Do any applications want/need it?  If there&apos;s no customer for this feature,
&gt; &gt; let&apos;s please take it out.
&gt; 
&gt; Do you implement the spec-defined behaviour that allows &quot;SHA-1&quot; to be
&gt; equivalent to { &quot;name&quot;: &quot;SHA-1&quot; } ?

Yes:
http://dxr.mozilla.org/mozilla-central/source/dom/crypto/WebCryptoTask.cpp#121

And that seems like it covers the biggest &quot;I don&apos;t want to write out the whole object&quot; case.


&gt; (In reply to Mark Watson from comment #6)
&gt; &gt; Shall we mark this as a feature-at-risk ?
&gt; 
&gt; I&apos;m fine with taking out aliases. It was syntactic sugar proposed early on
&gt; for the JOSE case, but I don&apos;t think it&apos;s good, and it inherently couples UA
&gt; implementations to JOSE implementations with respect to JWE/JWS, which we
&gt; have so far (intentionally) avoided normatively requiring support for.
&gt; 
&gt; So I&apos;m in favour of taking it out over feature at risk, but with the caveat
&gt; of the &quot;foo&quot; -&gt; { &quot;name&quot;: &quot;foo&quot; } as sugar that we need to figure out
&gt; whether to keep or also toss.

+1 to taking it out, but keeping &quot;foo&quot; -&gt; { &quot;name&quot;: &quot;foo&quot; }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113071</commentid>
    <comment_count>9</comment_count>
    <who name="">virginie.galindo</who>
    <bug_when>2014-10-14 08:51:55 +0000</bug_when>
    <thetext>In order to progress towards exit to Last Call for the Web Crypto API, the chair suggests the following resolution for that bug. 

Resolution : Bug RESOLVED as WONTFIX. 

If none objects before the 20th of Oct @20:00 UTC, this resolution will be endorsed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113386</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Barnes">rlb</who>
    <bug_when>2014-10-17 18:35:34 +0000</bug_when>
    <thetext>(In reply to virginie.galindo from comment #9)
&gt; In order to progress towards exit to Last Call for the Web Crypto API, the
&gt; chair suggests the following resolution for that bug. 
&gt; 
&gt; Resolution : Bug RESOLVED as WONTFIX. 

I&apos;m pretty surprised by this, given that there seemed to be agreement that we should take out aliases, except for &quot;name&quot; -&gt; { name: &quot;name&quot; }, which can be handled with much less machinery.

So I would oppose resolving as WONTFIX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113602</commentid>
    <comment_count>11</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-10-22 21:23:17 +0000</bug_when>
    <thetext>List and conf call discussion concluded on removing support for Aliases:

https://dvcs.w3.org/hg/webcrypto-api/rev/a0373bd1637b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>