<?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>19416</bug_id>
          
          <creation_ts>2012-10-09 22:47:52 +0000</creation_ts>
          <short_desc>KeyUsage should be explicitly spelled out as an enforced parameter</short_desc>
          <delta_ts>2014-01-25 01:26:11 +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>ap</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75741</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2012-10-09 22:47:52 +0000</bug_when>
    <thetext>In the state machine descriptions for creating CryptoOperations - eg: createVerifier, createEncrypter, createDecrypter, etc - it should be explicitly specified that the KeyUsage for the Key should be confirmed to match the desired CryptoOperation, and if not, that an error should be thrown.

For example, createEncrypter should ensure that the KeyUsage for the associated key(s) is &quot;encrypt&quot;, while createSigner should assert the &quot;sign&quot; KeyUsage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75742</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2012-10-09 22:48:25 +0000</bug_when>
    <thetext>Raised by John Lyle on http://lists.w3.org/Archives/Public/public-webcrypto-comments/2012Oct/0005.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98896</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-22 16:55:31 +0000</bug_when>
    <thetext>I propose we add the following to the procedures for each method, after the algorithm check:

&quot;If the usages attribute of the Key object does not contain an entry with value X, throw a NOtSupportedError and terminate the algorithm.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99046</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-24 23:41:51 +0000</bug_when>
    <thetext>This was apparently agreed in Shenzhen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99066</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-25 01:26:11 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/5efe55b319fc</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>