<?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>23954</bug_id>
          
          <creation_ts>2013-12-02 17:58:51 +0000</creation_ts>
          <short_desc>Please specify RsaOaepParams label semantics</short_desc>
          <delta_ts>2014-01-22 23:33:56 +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>INVALID</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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96964</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-12-02 17:58:51 +0000</bug_when>
    <thetext>One can add a label when performing RSA-OAEP encryption, but can&apos;t get it from an encrypted message.

Should there be a way to get the label?

Also, unclear why decrypt operation also takes RsaOaepParams with a label. Is decryption supposed to fail if the labels don&apos;t match?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98910</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-01-22 23:33:56 +0000</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #0)
&gt; One can add a label when performing RSA-OAEP encryption, but can&apos;t get it
&gt; from an encrypted message.
&gt; 
&gt; Should there be a way to get the label?
&gt; 
&gt; Also, unclear why decrypt operation also takes RsaOaepParams with a label.
&gt; Is decryption supposed to fail if the labels don&apos;t match?

IIUC, the label in RSA-OAEP is additional data that is protected by the authentication tag, but not included in the ciphertext. So, the label is assumed to be communicated separately from the ciphertext (or otherwise made available to the recipient). It needs to be provided to the decrypt operation so that it can be included in the verification of the authentication tag.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>