<?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>19705</bug_id>
          
          <creation_ts>2012-10-25 18:17:40 +0000</creation_ts>
          <short_desc>Default value of keyUsage is not very useful</short_desc>
          <delta_ts>2014-01-25 00:23:10 +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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Watson">watsonm</reporter>
          <assigned_to name="Mark Watson">watsonm</assigned_to>
          <cc>ap</cc>
    
    <cc>sleevi</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77116</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2012-10-25 18:17:40 +0000</bug_when>
    <thetext>The default value of the keyUsage parameter to the createKeyGenerator and createKeyDeriver methods is an empty list: not very useful.

In practice this means all parameters must always be specified, meaning there is little point in specifying default values for any of them.

Either:
a) A more useful default (such as [ &quot;encrypt&quot;, &quot;decrypt&quot;, &quot;sign&quot;, &quot;verify&quot; ]) should be specified
b) keyUsage should be moved ahead of the other parameters, with no default specified
c) no defaults should be specified for any of the parameters</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95704</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-11-01 17:57:02 +0000</bug_when>
    <thetext>It would be nice to have this addressed. The current function signatures are quite misleading and confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98912</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-22 23:40:00 +0000</bug_when>
    <thetext>I propose we remove the defaults</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99062</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-25 00:23:10 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/7df34800be54</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>