<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma,new york,times,serif;font-size:10pt"><div>Hi Mike,<br><br>I've got the following results with your examples :<br><br>JWE.log :<br><br>I'm unable to get the same encrypted key using either the private or public part of the given key. However, I am able to decrypt your encrypted key with no problem. Since it's only using PCKS1-v1_5, I believe I should be able to get the same encrypted key value.<br><br>The CEK and CIK and ciphertext results are the same.<br><br>Using your encrypted key gives me the same results for the integrity value.<br><br><br>JWE2.log :<br><br>Due to the RSA-OAEP algorithm, I can only perform decryption on your encrypted key. The decrypted value matches your CMK.<br>Using your AAD, the I was able to successfully decrypt and verify your data.<br><br>-- Edmund<br><br><br><br><br><br></div><div style="font-family:tahoma, new
york, times, serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Mike Jones <Michael.Jones@microsoft.com><br><b><span style="font-weight: bold;">To:</span></b> Edmund Jay <ejay@mgi1.com>; Emmanuel Raviart <emmanuel@raviart.com>; Brian Campbell <bcampbell@pingidentity.com>; Axel Nennker <Axel.Nennker@telekom.de><br><b><span style="font-weight: bold;">Cc:</span></b> "openid-connect-interop@googlegroups.com" <openid-connect-interop@googlegroups.com>; "openid-specs-ab@lists.openid.net" <openid-specs-ab@lists.openid.net><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, September 4, 2012 11:56:28 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Updated JWE encryption examples<br></font><br>
<style><!--
_filtered {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;}
_filtered {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
span.EmailStyle18
{font-family:"Calibri", "sans-serif";color:windowtext;}
span.EmailStyle19
{font-family:"Calibri", "sans-serif";color:#002060;}
.MsoChpDefault
{font-size:10.0pt;}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{}
_filtered {}
_filtered {font-family:Symbol;}
_filtered {font-family:"Courier New";}
_filtered {font-family:Wingdings;}
_filtered {font-family:Symbol;}
_filtered {font-family:"Courier New";}
_filtered {font-family:Wingdings;}
_filtered {font-family:Symbol;}
_filtered {font-family:"Courier New";}
_filtered {font-family:Wingdings;}
_filtered {}
_filtered {font-family:Symbol;}
_filtered {font-family:"Courier New";}
_filtered {font-family:Wingdings;}
_filtered {font-family:Symbol;}
_filtered {font-family:"Courier New";}
_filtered {font-family:Wingdings;}
_filtered {font-family:Symbol;}
_filtered {font-family:"Courier New";}
_filtered {font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#002060;">Have any of you tried decrypting these updated examples? I plan on using them in the next release of the JWE spec, but would like confirmation that they’re correct.</span></p>
<p class="MsoNormal"><span style="color:#002060;"> </span></p>
<p class="MsoNormal"><span style="color:#002060;"> Thanks again,</span></p>
<p class="MsoNormal"><span style="color:#002060;"> -- Mike</span></p>
<p class="MsoNormal"><span style="color:#002060;"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<p class="MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;"> openid-connect-interop@googlegroups.com [mailto:openid-connect-interop@googlegroups.com]
<b>On Behalf Of </b>Mike Jones<br>
<b>Sent:</b> Wednesday, August 29, 2012 10:12 PM<br>
<b>To:</b> Edmund Jay; Emmanuel Raviart; Brian Campbell; Axel Nennker<br>
<b>Cc:</b> openid-connect-interop@googlegroups.com; openid-specs-ab@lists.openid.net<br>
<b>Subject:</b> Updated JWE encryption examples</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Here’s updated encryption examples incorporating the proposed JWE/JWA changes. In summary, changes in these computations are:</p>
<p class="MsoListParagraph" style=""><span style="font-family:Symbol;"><span style="">·<span style="font:7.0pt;">
</span></span></span>Updated the Concat KDF calculation, per yesterday’s e-mail</p>
<p class="MsoListParagraph" style=""><span style="font-family:Symbol;"><span style="">·<span style="font:7.0pt;">
</span></span></span>Consolidated the “enc”, “int”, and “kdf” parameters into a composite “enc” parameter, with new AES CBC “enc” values
<span style="color:#1F497D;">“A128CBC+HS256” and “A256CBC+HS512”</span></p>
<p class="MsoListParagraph" style=""><span style="font-family:Symbol;"><span style="">·<span style="font:7.0pt;">
</span></span></span><span style="color:#1F497D;">Moved initialization vector out of the header into its own dot-separated parameter value (to save space and to factor it out for the JSON Serialization), with the JWE representation becoming header.encryptedKey.initializationVector.ciphertext.integrityValue</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The examples attached are:</p>
<p class="MsoListParagraph" style=""><span style="font-family:Symbol;"><span style="">·<span style="font:7.0pt;">
</span></span></span>JWE.log: Will be used to create the new AES-CBC example in Section 3.2 and Appendix A.2 of the JWE specification</p>
<p class="MsoListParagraph" style=""><span style="font-family:Symbol;"><span style="">·<span style="font:7.0pt;">
</span></span></span>JWE2.log: Will be used to create the new AES-GCM example in Section 3.1 and Appendix A.1 of the JWE specification</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">It would be great if any of you can verify that you can decrypt these results!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> Thanks again,</p>
<p class="MsoNormal"> -- Mike</p>
<p class="MsoNormal"> </p>
</div>
</div></div>
</div></body></html>