<?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>26311</bug_id>
          
          <creation_ts>2014-07-11 16:15:55 +0000</creation_ts>
          <short_desc>Algorithm names should be enforced to be ASCII and normalized to lowercase</short_desc>
          <delta_ts>2014-09-26 18:21:29 +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>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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>26536</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Mark Watson">watsonm</assigned_to>
          <cc>public-webcrypto</cc>
    
    <cc>ttaubert</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108862</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-07-11 16:15:55 +0000</bug_when>
    <thetext>See https://twitter.com/sleevi_/status/487625474156146688</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109649</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Taubert">ttaubert</who>
    <bug_when>2014-07-31 13:25:29 +0000</bug_when>
    <thetext>We should probably rather normalize algorithm names to uppercase - users might be very surprised when their algorithm names are converted to lowercase, contrary to what is written in the spec.

The only problem would be &quot;RSAES-PKCS1-v1_5&quot; which is written with a lowercase &quot;v&quot; in the spec as well. Normalizing it to uppercase be rather surprising as well...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109657</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Taubert">ttaubert</who>
    <bug_when>2014-07-31 14:02:27 +0000</bug_when>
    <thetext>Make that RSASSA-PKCS1-v1_5 as RSAES-PKCS1-v1_5 was removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109660</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Taubert">ttaubert</who>
    <bug_when>2014-07-31 14:08:42 +0000</bug_when>
    <thetext>If the spec would require algorithm names to be normalized as written in the spec, implementers could convert to uppercase and add special rules for mixed-case algorithm names. That seems like the least surprising way to handle this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109690</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-07-31 18:22:52 +0000</bug_when>
    <thetext>(In reply to Tim Taubert from comment #3)
&gt; If the spec would require algorithm names to be normalized as written in the
&gt; spec, implementers could convert to uppercase and add special rules for
&gt; mixed-case algorithm names. That seems like the least surprising way to
&gt; handle this.

I don&apos;t think we need to special case anything. The point of normalization was to ensure that every algorithm had a single &apos;canonical&apos; form following normalization.

We can make this normalized form &apos;spec-written&apos;. The only meaningful thing was to make sure that the comparisons were (as an implementer) made in a case-insensitive manner (which this bug was about it having been dropped, accidentally)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110019</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Taubert">ttaubert</who>
    <bug_when>2014-08-07 09:51:38 +0000</bug_when>
    <thetext>(In reply to Ryan Sleevi from comment #4)
&gt; We can make this normalized form &apos;spec-written&apos;. The only meaningful thing
&gt; was to make sure that the comparisons were (as an implementer) made in a
&gt; case-insensitive manner (which this bug was about it having been dropped,
&gt; accidentally)

Yes, that sounds great. I was a little too focused on implementation here, sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111956</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-22 17:58:16 +0000</bug_when>
    <thetext>The specification currently says nothing about performing any case conversions on algorithm names (that I could find). String comparisons are case-sensitive.

Do we want to re-instate case-insensitive comparison (and normalization to &apos;standard&apos; names as written in the specification) or shall we live with what we have in the specification now ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111959</commentid>
    <comment_count>7</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-09-22 17:59:30 +0000</bug_when>
    <thetext>Please see comment 0.  Apparently the current specification text is an editorial mistake, and doesn&apos;t match implementations or specification intent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112257</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-26 15:16:12 +0000</bug_when>
    <thetext>Ok, so the change required here is in the algorithm normalization, which should perform case-insensitive matching on algorithm name and then normalize the name to the value registered by the algorithm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112258</commentid>
    <comment_count>9</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-09-26 15:16:51 +0000</bug_when>
    <thetext>Please make sure it&apos;s ascii-case-insensitive matching?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112259</commentid>
    <comment_count>10</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-26 15:32:04 +0000</bug_when>
    <thetext>Do you have a specific reference in mind for the definition of case-insensitive match ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112260</commentid>
    <comment_count>11</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-09-26 15:33:59 +0000</bug_when>
    <thetext>https://html.spec.whatwg.org/multipage/infrastructure.html#ascii-case-insensitive</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112292</commentid>
    <comment_count>12</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-26 18:21:29 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/08636b084b31</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>