<?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>25382</bug_id>
          
          <creation_ts>2014-04-17 23:37:50 +0000</creation_ts>
          <short_desc>What error is returned when key mismatches operation?</short_desc>
          <delta_ts>2014-09-24 18:50:06 +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="Mark Watson">watsonm</assigned_to>
          <cc>public-webcrypto</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104059</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Roman">ericroman</who>
    <bug_when>2014-04-17 23:37:50 +0000</bug_when>
    <thetext>For instance if calling encrypt() with an AES-CBC algorithm, however provided a key for RSASSA.

Perhaps InvalidAccessError, to match what the failure asymmetric algorithms are using when given the wrong key type?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111807</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-19 15:57:44 +0000</bug_when>
    <thetext>This is specified as InvalidAccessError for some algorithms but not for others. The check could be done in the methods rather than per algorithm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112096</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-24 18:50:06 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/07185a01188e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>