<?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>23098</bug_id>
          
          <creation_ts>2013-08-30 02:44:25 +0000</creation_ts>
          <short_desc>Specify algorithm normalization when reflected to key.algorithm (are generation parameters dropped?)</short_desc>
          <delta_ts>2014-02-13 13:05:46 +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>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="Eric Roman">ericroman</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>ap</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92728</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2013-08-30 02:44:25 +0000</bug_when>
    <thetext>Let&apos;s say you call generateKey() with an HmacKeyParams.

There are several possibilities for what the resulting key.algorithm looks like.
  (1) It is simplified to a HmacParams (i.e. the optional &quot;length&quot; field is dropped)
  (2) It is mirrored as the exact same HmacKeyParams
  (3) It is mirrored as a HmacKeyParams, where the optional &quot;length&quot; parameter is filled in with the default length that was inferred.

From an implementation standpoint my preference is to (1), since it means we don&apos;t need to define interfaces to reflect back the generation parameters. Option (2) by comparison is redundant since the caller already knows what parameters they passed in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95705</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-11-01 17:58:46 +0000</bug_when>
    <thetext>Isn&apos;t key.algorithm the only way to observe the normalized algorithm anyway?

If the spec goes with (1), then it seems like algorithm normalizing rules can be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100526</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-02-13 13:05:46 +0000</bug_when>
    <thetext>This should be resolved with https://dvcs.w3.org/hg/webcrypto-api/rev/2fa3494f0179</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>