<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle18
        {mso-style-name:emailstyle18;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.emailstyle19
        {mso-style-name:emailstyle19;
        font-family:"Calibri","sans-serif";
        color:#002060;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Were you able to get the same encrypted key value for the example at
<a href="http://tools.ietf.org/html/draft-ietf-jose-json-web-encryption-05#appendix-A.2">
http://tools.ietf.org/html/draft-ietf-jose-json-web-encryption-05#appendix-A.2</a>?  If so, then we should figure out why your encrypted key value is different for the new example.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                                                            -- Mike<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></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;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openid-connect-interop@googlegroups.com [mailto:openid-connect-interop@googlegroups.com]
<b>On Behalf Of </b>Edmund Jay<br>
<b>Sent:</b> Wednesday, September 05, 2012 12:24 PM<br>
<b>To:</b> openid-connect-interop@googlegroups.com; 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> Re: Updated JWE encryption examples<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">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>
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><o:p> </o:p></span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Mike Jones <<a href="mailto:Michael.Jones@microsoft.com">Michael.Jones@microsoft.com</a>><br>
<b>To:</b> Edmund Jay <<a href="mailto:ejay@mgi1.com">ejay@mgi1.com</a>>; Emmanuel Raviart <<a href="mailto:emmanuel@raviart.com">emmanuel@raviart.com</a>>; Brian Campbell <<a href="mailto:bcampbell@pingidentity.com">bcampbell@pingidentity.com</a>>; Axel Nennker
 <<a href="mailto:Axel.Nennker@telekom.de">Axel.Nennker@telekom.de</a>><br>
<b>Cc:</b> "<a href="mailto:openid-connect-interop@googlegroups.com">openid-connect-interop@googlegroups.com</a>" <<a href="mailto:openid-connect-interop@googlegroups.com">openid-connect-interop@googlegroups.com</a>>; "<a href="mailto:openid-specs-ab@lists.openid.net">openid-specs-ab@lists.openid.net</a>"
 <<a href="mailto:openid-specs-ab@lists.openid.net">openid-specs-ab@lists.openid.net</a>><br>
<b>Sent:</b> Tue, September 4, 2012 11:56:28 AM<br>
<b>Subject:</b> Re: Updated JWE encryption examples</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<div>
<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><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060">                                                                Thanks again,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060">                                                                -- Mike</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"> </span><o:p></o:p></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">
<a href="mailto:openid-connect-interop@googlegroups.com">openid-connect-interop@googlegroups.com</a>
<a href="mailto:[mailto:openid-connect-interop@googlegroups.com]">[mailto:openid-connect-interop@googlegroups.com]</a>
<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> <a href="mailto:openid-connect-interop@googlegroups.com">openid-connect-interop@googlegroups.com</a>;
<a href="mailto:openid-specs-ab@lists.openid.net">openid-specs-ab@lists.openid.net</a><br>
<b>Subject:</b> Updated JWE encryption examples</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Here’s updated encryption examples incorporating the proposed JWE/JWA changes.  In summary, changes in these computations are:<o:p></o:p></p>
<p class="MsoListParagraph"><span style="font-family:Symbol">·</span><span style="font-size:7.0pt">        </span><span style="font-size:7.0pt;font-family:Symbol">
</span>Updated the Concat KDF calculation, per yesterday’s e-mail<o:p></o:p></p>
<p class="MsoListParagraph"><span style="font-family:Symbol">·</span><span style="font-size:7.0pt">        </span><span style="font-size:7.0pt;font-family:Symbol">
</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><o:p></o:p></p>
<p class="MsoListParagraph"><span style="font-family:Symbol">·</span><span style="font-size:7.0pt">        </span><span style="font-size:7.0pt;font-family:Symbol">
</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><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The examples attached are:<o:p></o:p></p>
<p class="MsoListParagraph"><span style="font-family:Symbol">·</span><span style="font-size:7.0pt">        </span><span style="font-size:7.0pt;font-family:Symbol">
</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<o:p></o:p></p>
<p class="MsoListParagraph"><span style="font-family:Symbol">·</span><span style="font-size:7.0pt">        </span><span style="font-size:7.0pt;font-family:Symbol">
</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<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">It would be great if any of you can verify that you can decrypt these results!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">                                                            Thanks again,<o:p></o:p></p>
<p class="MsoNormal">                                                            -- Mike<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>