<?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>22596</bug_id>
          
          <creation_ts>2013-07-08 18:02:45 +0000</creation_ts>
          <short_desc>Does verify fulfill or reject when a MAC/Signature does not verify</short_desc>
          <delta_ts>2013-07-22 19:19:37 +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="Ryan Sleevi">sleevi</assigned_to>
          <cc>ietf</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90426</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2013-07-08 18:02:45 +0000</bug_when>
    <thetext>Raised by Jim Schaad as http://www.w3.org/2012/webcrypto/track/issues/48

It is not explicitly stated if verify returns true/false as the result or something else.

The correct answer for decrypt using AE algorithms would be a reject if the tags don&apos;t match as the result returned is an ArrayBuffer.

However verify is currently stated to return a boolean and thus false would seem to be an appropriate response.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91083</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2013-07-22 19:18:23 +0000</bug_when>
    <thetext>Resolved in https://dvcs.w3.org/hg/webcrypto-api/rev/1ab461fb0e57

As described in the commit message, each algorithm is responsible for defining it&apos;s behaviour for the steps of &apos;process data&apos;.

An example of this can be seen in the ECDSA case. As specified in https://dvcs.w3.org/hg/webcrypto-api/raw-file/1ab461fb0e57/spec/Overview.html#ecdsa-operations , Steps 9-11 describe that value is initialized to a boolean indicating success or failure, and that&apos;s returned from the verify operation.

As described in https://dvcs.w3.org/hg/webcrypto-api/raw-file/1ab461fb0e57/spec/Overview.html#dfn-CryptoOperation-process-data and https://dvcs.w3.org/hg/webcrypto-api/raw-file/1ab461fb0e57/spec/Overview.html#CryptoOperation-method-finish , the result of the underlying algorithm is passed to the associated resolver&apos;s resolve() algorithm.

Thus, a mismatched signature would resolve(false), while a matching signature would be resolve(true), and an unrelated failure would be reject(null) (12.1.2.4)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>