<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - AES 256 Revision 6 (PDF 2.0) Encryption</title>
    <link>https://forums.adobe.com/community/design_development/pdf_language_and_specifications?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sun, 03 Aug 2014 19:53:15 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-08-03T19:53:15Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6608480?tstart=0#6608480</link>
      <description>&lt;!-- [DocumentBodyStart:1355638f-6532-4f00-9c60-30388bdfaa76] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;What does it say in ISO 32000-1:2008, the PDF standard?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1355638f-6532-4f00-9c60-30388bdfaa76] --&gt;&lt;img src='/beacon?t=1415903194071' /&gt;</description>
      <pubDate>Sun, 03 Aug 2014 19:53:15 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6608480?tstart=0#6608480</guid>
      <dc:date>2014-08-03T19:53:15Z</dc:date>
      <clearspace:dateToText>3 months 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6608217?tstart=0#6608217</link>
      <description>&lt;!-- [DocumentBodyStart:63261eda-9d90-4dfc-8c59-668665a0e5af] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have a question . In cases where the encryption algorithm in not mentioned in the dictionary, can I assume the following for the versions:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;V1 R2 - RC4&lt;/p&gt;&lt;p&gt;V2 R3 - RC4&lt;/p&gt;&lt;p&gt;V4 R4- None &lt;/p&gt;&lt;p&gt;V5 R5- None&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:63261eda-9d90-4dfc-8c59-668665a0e5af] --&gt;</description>
      <pubDate>Sun, 03 Aug 2014 18:13:10 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6608217?tstart=0#6608217</guid>
      <dc:date>2014-08-03T18:13:10Z</dc:date>
      <clearspace:dateToText>3 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6347733?tstart=0#6347733</link>
      <description>&lt;!-- [DocumentBodyStart:2ce0b3d4-7c35-4521-ae35-8246fa980c7d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;ISO standards are open. But they are not free. Big difference.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;ISO 32000-1 costs just over $200. 32000-2 will probably cost more than that, as the price is based on page count.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2ce0b3d4-7c35-4521-ae35-8246fa980c7d] --&gt;</description>
      <pubDate>Thu, 01 May 2014 15:33:14 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6347733?tstart=0#6347733</guid>
      <dc:date>2014-05-01T15:33:14Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6347701?tstart=0#6347701</link>
      <description>&lt;!-- [DocumentBodyStart:fb71dc90-2334-48cf-96b3-10c0ffcc5cce] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;So , do you mean there cannot be a open reference found for it like : adobe_supplement_iso32000.pdf for Revison 2- Revision 5.&lt;/p&gt;&lt;p&gt;Thanks for ur replies.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fb71dc90-2334-48cf-96b3-10c0ffcc5cce] --&gt;</description>
      <pubDate>Thu, 01 May 2014 15:27:36 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6347701?tstart=0#6347701</guid>
      <dc:date>2014-05-01T15:27:36Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6347076?tstart=0#6347076</link>
      <description>&lt;!-- [DocumentBodyStart:c922db27-321a-4c63-aeea-112b84244b6d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It is copyright material, people who have copies are not allowed to share it. I'd recommend joining PDFA rather than ISO. ISO don't seem to want members; you have to join your national standards bodies (ANSI, DIN, BSI...) and navigate their arcane procedures.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c922db27-321a-4c63-aeea-112b84244b6d] --&gt;</description>
      <pubDate>Thu, 01 May 2014 12:39:31 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6347076?tstart=0#6347076</guid>
      <dc:date>2014-05-01T12:39:31Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6347011?tstart=0#6347011</link>
      <description>&lt;!-- [DocumentBodyStart:2bf10a07-12c2-4227-8d27-f4f9b93e1fb7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;Thanks for ur reply. But I am not a member of iso and I guess it will take some time before they approve my membership.Can you please share it with me here or at my mail id @ &lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:tanyashukla8@gmail.com" target="_blank"&gt;tanyashukla8@gmail.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2bf10a07-12c2-4227-8d27-f4f9b93e1fb7] --&gt;</description>
      <pubDate>Thu, 01 May 2014 11:49:35 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6347011?tstart=0#6347011</guid>
      <dc:date>2014-05-01T11:49:35Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6343620?tstart=0#6343620</link>
      <description>&lt;!-- [DocumentBodyStart:5664ab4d-f1d4-47c9-b506-08ae2be52cfa] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It's in the current drafts of ISO 32000-2, which you can obtain by joining either the ISO committee (for free) or the PDF Association (cost).&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:5664ab4d-f1d4-47c9-b506-08ae2be52cfa] --&gt;</description>
      <pubDate>Wed, 30 Apr 2014 12:00:02 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6343620?tstart=0#6343620</guid>
      <dc:date>2014-04-30T12:00:02Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/6343497?tstart=0#6343497</link>
      <description>&lt;!-- [DocumentBodyStart:69d0bcae-2741-47fe-8ccd-057cba5ac440] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am looking for algorithm for implementation of Revision 6. Can somebody pls point me to it ...&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:69d0bcae-2741-47fe-8ccd-057cba5ac440] --&gt;</description>
      <pubDate>Wed, 30 Apr 2014 11:48:17 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6343497?tstart=0#6343497</guid>
      <dc:date>2014-04-30T11:48:17Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4900714?tstart=0#4900714</link>
      <description>&lt;!-- [DocumentBodyStart:12f3696c-1945-4256-9b07-66b9a5c905fe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;You are right Mark, the problem was with the big-endian conversion. After fixing,&amp;nbsp; it is working with the same loop structure.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:12f3696c-1945-4256-9b07-66b9a5c905fe] --&gt;</description>
      <pubDate>Thu, 06 Dec 2012 08:59:55 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4900714?tstart=0#4900714</guid>
      <dc:date>2012-12-06T08:59:55Z</dc:date>
      <clearspace:dateToText>1 year 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4898366?tstart=0#4898366</link>
      <description>&lt;!-- [DocumentBodyStart:c55a8e59-8847-4bcb-bc8b-67392ff2c795] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Dharins, you are right. From your description, if a infinite loop can not get a match, the problem could be &lt;/p&gt;&lt;p&gt;1AESCBC&lt;/p&gt;&lt;p&gt; 2computation of E as big endian&lt;/p&gt;&lt;p&gt;3 SHA algorithm.&lt;/p&gt;&lt;p&gt;You may use Jun's previous post as your data input to debug the problem.&lt;/p&gt;&lt;p&gt;Good luck.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c55a8e59-8847-4bcb-bc8b-67392ff2c795] --&gt;</description>
      <pubDate>Wed, 05 Dec 2012 16:14:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4898366?tstart=0#4898366</guid>
      <dc:date>2012-12-05T16:14:18Z</dc:date>
      <clearspace:dateToText>1 year 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4897467?tstart=0#4897467</link>
      <description>&lt;!-- [DocumentBodyStart:ef3b68be-e579-4e9a-beba-2132414e924e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks Mark,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After adding the condition, the for loop is breaking after the 63rd iteration itself. And the result not matching U string.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Do you suggest adding a outer while loop along with the for loop? [Pls look into the code in my previous post]&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried with an infinite loop repeating the all the steps, but the K bytes never matched U string bytes and the loop just kept running.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So i think the problem could be with my AES128 encrytion code.. as all other steps seems quite straight.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ef3b68be-e579-4e9a-beba-2132414e924e] --&gt;</description>
      <pubDate>Wed, 05 Dec 2012 05:55:23 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4897467?tstart=0#4897467</guid>
      <dc:date>2012-12-05T05:55:23Z</dc:date>
      <clearspace:dateToText>1 year 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4896514?tstart=0#4896514</link>
      <description>&lt;!-- [DocumentBodyStart:242545ef-71b6-4a26-a13c-2558691b2a37] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;try this&lt;/p&gt;&lt;p&gt;if(round&amp;gt;=63)&amp;amp;&amp;amp;E[Last byte] &amp;lt;= round - 31) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:242545ef-71b6-4a26-a13c-2558691b2a37] --&gt;</description>
      <pubDate>Tue, 04 Dec 2012 21:28:16 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4896514?tstart=0#4896514</guid>
      <dc:date>2012-12-04T21:28:16Z</dc:date>
      <clearspace:dateToText>1 year 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4892035?tstart=0#4892035</link>
      <description>&lt;!-- [DocumentBodyStart:571adc12-9c04-4833-b130-a2e754a93132] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Any input? &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:571adc12-9c04-4833-b130-a2e754a93132] --&gt;</description>
      <pubDate>Mon, 03 Dec 2012 12:05:13 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4892035?tstart=0#4892035</guid>
      <dc:date>2012-12-03T12:05:13Z</dc:date>
      <clearspace:dateToText>1 year 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4882877?tstart=0#4882877</link>
      <description>&lt;!-- [DocumentBodyStart:fe9540f8-a612-427b-b641-06ab79f02d9d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I tried changing my loop as you mentioned. But it is still not working.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is a outlook of the logic in my code,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;K = Sha256Hash(Userpassword + User validation salt);&lt;/p&gt;&lt;p&gt;round=0;&lt;/p&gt;&lt;p&gt;for(int c=0;c&amp;lt;64;c++)&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step 1: K1 = 64 repetitions of userPwd and K&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step 2: E= Encrypt K1 with AES128 CBC No padding&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step 3: i = Int(16bytes of E) MOD 3&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step 4: Based on i the hash is taken and is set as new K.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; round++;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(round&amp;gt;=63)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(E[Last byte] &amp;gt; round - 31) // I tried with round-32 also&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Goto Step1;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please let me know if i am doing anything wrong in any of the steps above.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fe9540f8-a612-427b-b641-06ab79f02d9d] --&gt;</description>
      <pubDate>Thu, 29 Nov 2012 09:08:05 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4882877?tstart=0#4882877</guid>
      <dc:date>2012-11-29T09:08:05Z</dc:date>
      <clearspace:dateToText>1 year 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4880418?tstart=0#4880418</link>
      <description>&lt;!-- [DocumentBodyStart:1f8e2506-6b34-47e9-8b4e-048f70c9750c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;view my previous post. The only missing part is the last step. I made the same mistake&amp;nbsp; the first time since PDF specification is vague on this. After several experiement, from my experience, the last step should be when round is equal or bigger than 63, check E[last byte], if E[last byte] &amp;gt; round -31, go back to step 2. The index start at 0.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1f8e2506-6b34-47e9-8b4e-048f70c9750c] --&gt;</description>
      <pubDate>Wed, 28 Nov 2012 15:51:30 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4880418?tstart=0#4880418</guid>
      <dc:date>2012-11-28T15:51:30Z</dc:date>
      <clearspace:dateToText>1 year 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4879777?tstart=0#4879777</link>
      <description>&lt;!-- [DocumentBodyStart:9cb4336b-2ad3-4592-9232-809d7ff4df86] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Can you tell me whats exactly you changed in your while loop to get it worked. I am facing a similar problem.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9cb4336b-2ad3-4592-9232-809d7ff4df86] --&gt;</description>
      <pubDate>Wed, 28 Nov 2012 10:48:49 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4879777?tstart=0#4879777</guid>
      <dc:date>2012-11-28T10:48:49Z</dc:date>
      <clearspace:dateToText>1 year 12 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4095705?tstart=0#4095705</link>
      <description>&lt;!-- [DocumentBodyStart:26cba4fb-ecf8-4a50-8fd1-1fae04d86f22] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Not yet &amp;#8211; but there will be shortly!&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;From: Adobe Forums &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:forums@adobe.com"&gt;forums@adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:forums@adobe.com"&gt;forums@adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Reply-To: "&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com"&gt;jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com"&gt;jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;" &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com"&gt;jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com"&gt;jive-156860415-8igo-2-2fs8i@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;Date: Tue, 20 Dec 2011 08:08:39 -0800&lt;/p&gt;&lt;p&gt;&lt;span&gt;To: Leonard Rosenthol &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:lrosenth@adobe.com"&gt;lrosenth@adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:lrosenth@adobe.com"&gt;lrosenth@adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;Subject: &lt;a class="" href="https://forums.adobe.com/PDF Language and Specifications"&gt;&lt;/a&gt; AES 256 Revision 6 (PDF 2.0) Encryption&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Re: AES 256 Revision 6 (PDF 2.0) Encryption&lt;/p&gt;&lt;p&gt;&lt;span&gt;created by Dave Lincoln&amp;lt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://forums.adobe.com/people/Dave+Lincoln" rel="nofollow"&gt;http://forums.adobe.com/people/Dave+Lincoln&lt;/a&gt;&lt;span&gt;&amp;gt; in PDF Language and Specifications - View the full discussion&amp;lt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://forums.adobe.com/message/4095666#4095666" rel="nofollow"&gt;http://forums.adobe.com/message/4095666#4095666&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:26cba4fb-ecf8-4a50-8fd1-1fae04d86f22] --&gt;</description>
      <pubDate>Tue, 20 Dec 2011 16:14:54 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4095705?tstart=0#4095705</guid>
      <dc:date>2011-12-20T16:14:54Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4095666?tstart=0#4095666</link>
      <description>&lt;!-- [DocumentBodyStart:32234b08-9c10-4a04-83e9-c48fc1ba54e2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Leonard&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; With regard to a new version of the Draft spec, we have been using ISO/CD-4 32000-2. Are you saying there is a newer version than 4? If so I need to go request this newer version.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:32234b08-9c10-4a04-83e9-c48fc1ba54e2] --&gt;</description>
      <pubDate>Tue, 20 Dec 2011 16:08:33 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4095666?tstart=0#4095666</guid>
      <dc:date>2011-12-20T16:08:33Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4094280?tstart=0#4094280</link>
      <description>&lt;!-- [DocumentBodyStart:60c2d961-fd04-4e33-8584-55a40af15356] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Glad I can help. Good luck.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:60c2d961-fd04-4e33-8584-55a40af15356] --&gt;</description>
      <pubDate>Mon, 19 Dec 2011 21:37:57 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4094280?tstart=0#4094280</guid>
      <dc:date>2011-12-19T21:37:57Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4093978?tstart=0#4093978</link>
      <description>&lt;!-- [DocumentBodyStart:85978936-c4e2-4fed-b946-a4e61ff3a7df] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Mark, &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You are absolutely right. The problem is in the while loop control. I can get the file works without any problem. Thank you very much. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:85978936-c4e2-4fed-b946-a4e61ff3a7df] --&gt;</description>
      <pubDate>Mon, 19 Dec 2011 20:28:29 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4093978?tstart=0#4093978</guid>
      <dc:date>2011-12-19T20:28:29Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4093997?tstart=0#4093997</link>
      <description>&lt;!-- [DocumentBodyStart:e87173fd-74bc-4e10-9d9b-5c1f98fc868f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;We just made some improvements in the latest draft of ISO 32000-2 in this area to improve things.&amp;nbsp; Those of you who are part of that process (which would be where you obtained this information to begin with, since it's not documented anywhere else at this time) should review the DIS when it becomes available.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;From: Adobe Forums &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:forums@adobe.com"&gt;forums@adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:forums@adobe.com"&gt;forums@adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Reply-To: "&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com"&gt;jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com"&gt;jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;" &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com"&gt;jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com"&gt;jive-850561111-8igo-2-2fqo0@mail.forums.adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;Date: Mon, 19 Dec 2011 10:22:21 -0800&lt;/p&gt;&lt;p&gt;&lt;span&gt;To: Leonard Rosenthol &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:lrosenth@adobe.com"&gt;lrosenth@adobe.com&lt;/a&gt;&lt;span&gt;&amp;lt;mailto:&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:lrosenth@adobe.com"&gt;lrosenth@adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;Subject: &lt;a class="" href="https://forums.adobe.com/PDF Language and Specifications"&gt;&lt;/a&gt; AES 256 Revision 6 (PDF 2.0) Encryption&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Re: AES 256 Revision 6 (PDF 2.0) Encryption&lt;/p&gt;&lt;p&gt;&lt;span&gt;created by mark.jin&amp;lt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://forums.adobe.com/people/mark.jin" rel="nofollow"&gt;http://forums.adobe.com/people/mark.jin&lt;/a&gt;&lt;span&gt;&amp;gt; in PDF Language and Specifications - View the full discussion&amp;lt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://forums.adobe.com/message/4093632#4093632" rel="nofollow"&gt;http://forums.adobe.com/message/4093632#4093632&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e87173fd-74bc-4e10-9d9b-5c1f98fc868f] --&gt;</description>
      <pubDate>Mon, 19 Dec 2011 19:56:31 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4093997?tstart=0#4093997</guid>
      <dc:date>2011-12-19T19:56:31Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4093632?tstart=0#4093632</link>
      <description>&lt;!-- [DocumentBodyStart:e6807f0d-f528-49cb-b449-c5b0d3fd6841] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Jun,&lt;/p&gt;&lt;p&gt;Check out my post on Dec 15. PDF soecification is vague on this, I did some experiemnt to find this out. After you change your while loop control, you will be fine.&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e6807f0d-f528-49cb-b449-c5b0d3fd6841] --&gt;</description>
      <pubDate>Mon, 19 Dec 2011 18:22:15 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4093632?tstart=0#4093632</guid>
      <dc:date>2011-12-19T18:22:15Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>19</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4093652?tstart=0#4093652</link>
      <description>&lt;!-- [DocumentBodyStart:2ad0ad44-be44-46fd-ab9a-f49e96a3eac2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I got the exactly same result as your.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; But for my understand, all those three are in the round 0&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; round = 0;&lt;/p&gt;&lt;p&gt; while((round &amp;lt; 64) || (E[LastByte] &amp;gt; (round - 32)))&lt;/p&gt;&lt;p&gt; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (j = 0; j &amp;lt; 64; j++)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; step 2: Make a new string K1 with 64 repetitions of the input password and K &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; step3: Encrypt K1 with AES_128(CBC) to get E&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; step4: Calculate first 16 bytes of E mod 3 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; step5:Using SHA256, SHA384 or SHA512 to HASH E get bytes K, then go back to step 2&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; round ++;&lt;/p&gt;&lt;p&gt; }&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; For the round = 0;&lt;/p&gt;&lt;p&gt; j = 0; I got the same result as yours.&lt;/p&gt;&lt;p&gt; E:47 df 2a 7f 90 8a c4 d9&lt;/p&gt;&lt;p&gt; K:29 de 28 c1 f0 17 c9 37&lt;/p&gt;&lt;p&gt; j = 1; I got the same result as yours.&lt;/p&gt;&lt;p&gt; E:b7 1c b5 38 81 24 81 d9&lt;/p&gt;&lt;p&gt; K:b9 35 c6 d4 54 f3 77 ad&lt;/p&gt;&lt;p&gt; j = 2; I got the same result as yours.&lt;/p&gt;&lt;p&gt; E:61 7b 7b 0b 81 e4 f2 40&lt;/p&gt;&lt;p&gt; K:e4 b5 4d 2c 97 1d f3 56&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; j = 63; I got the match.&lt;/p&gt;&lt;p&gt; E: 8a bc c6 cf 64 cf be&lt;/p&gt;&lt;p&gt; K: f4 65 f1 69 9a e2 ea which match the user string&lt;/p&gt;&lt;p&gt;Is this means that I do not need the for (j = 0; j &amp;lt; 64; j++)? Is there any problem with my loop control?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2ad0ad44-be44-46fd-ab9a-f49e96a3eac2] --&gt;</description>
      <pubDate>Mon, 19 Dec 2011 17:51:49 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4093652?tstart=0#4093652</guid>
      <dc:date>2011-12-19T17:51:49Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>20</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4093432?tstart=0#4093432</link>
      <description>&lt;!-- [DocumentBodyStart:f11aab8c-7c2a-46f0-a957-a4c3b099ac37] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;round 0&lt;/p&gt;&lt;p&gt;E:47 df 2a 7f 90 8a c4 d9&lt;/p&gt;&lt;p&gt;K:29 de 28 c1 f0 17 c9 37&lt;/p&gt;&lt;p&gt;round 1&lt;/p&gt;&lt;p&gt;E:b7 1c b5 38 81 24 81 d9&lt;/p&gt;&lt;p&gt;K:b9 35 c6 d4 54 f3 77 ad&lt;/p&gt;&lt;p&gt;round 2&lt;/p&gt;&lt;p&gt;E:61 7b 7b 0b 81 e4 f2 40&lt;/p&gt;&lt;p&gt;K:e4 b5 4d 2c 97 1d f3 56&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f11aab8c-7c2a-46f0-a957-a4c3b099ac37] --&gt;</description>
      <pubDate>Mon, 19 Dec 2011 17:07:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4093432?tstart=0#4093432</guid>
      <dc:date>2011-12-19T17:07:39Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>21</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4089843?tstart=0#4089843</link>
      <description>&lt;!-- [DocumentBodyStart:cf798a1b-8cf7-4a03-8c94-32b40a3b1a7b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Mark, &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you very much for your help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Can you post the first few bytes of the E for the round 0 and round 1?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For example &lt;/p&gt;&lt;p&gt;round&amp;nbsp; = 0;&lt;/p&gt;&lt;p&gt;loop 1: AES128(cbc) result of E&lt;/p&gt;&lt;p&gt;loop 2: AES128(cbc).&amp;nbsp;result of E&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;until loop 64: AES128(cbc) result E&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;round = 1loop 1: AES128(cbc) result of E&lt;/p&gt;&lt;p&gt;loop 2: AES128(cbc).&amp;nbsp;result of E&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;until loop 64: AES128(cbc) result E&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Or can you send me the data in each loop and round and I can compare with mime?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jun&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;From: mark.jin &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:forums@adobe.com"&gt;forums@adobe.com&lt;/a&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;To: "&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:junq@yahoo.com"&gt;junq@yahoo.com&lt;/a&gt;&lt;span&gt;" &amp;lt;&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:junq@yahoo.com"&gt;junq@yahoo.com&lt;/a&gt;&lt;span&gt;&amp;gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;Sent: Friday, December 16, 2011 9:50 AM&lt;/p&gt;&lt;p&gt;Subject: &lt;a class="" href="https://forums.adobe.com/PDF Language and Specifications"&gt;&lt;/a&gt; AES 256 Revision 6 (PDF 2.0) Encryption&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Re: AES 256 Revision 6 (PDF 2.0) Encryption created by mark.jin in PDF Language and Specifications - View the full discussion &lt;/p&gt;&lt;p&gt;Jun,&lt;/p&gt;&lt;p&gt;I run your encryption file, the round 63(round start from 0) data(E and K) is different from what you told me.&lt;/p&gt;&lt;p&gt;The data from your original post(step1-step5, round 0) are all correct. I suggest you to take a look at your implementation of AES128(cbc). probably the IV and chainning mode does not set up properly.&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;p&gt;Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: &lt;a class="jive-link-external-small" href="http://forums.adobe.com/message/4089059#4089059" rel="nofollow"&gt;http://forums.adobe.com/message/4089059#4089059&lt;/a&gt;&lt;/p&gt;&lt;p&gt;To unsubscribe from this thread, please visit the message page at &lt;a class="jive-link-external-small" href="http://forums.adobe.com/message/4089059#4089059" rel="nofollow"&gt;http://forums.adobe.com/message/4089059#4089059&lt;/a&gt;. In the Actions box on the right, click the Stop Email Notifications link. &lt;/p&gt;&lt;p&gt;Start a new discussion in PDF Language and Specifications by email or at Adobe Forums&lt;/p&gt;&lt;p&gt;&lt;span&gt;For more information about maintaining your forum email notifications please go to &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://forums.adobe.com/message/2936746#2936746" rel="nofollow"&gt;http://forums.adobe.com/message/2936746#2936746&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cf798a1b-8cf7-4a03-8c94-32b40a3b1a7b] --&gt;</description>
      <pubDate>Fri, 16 Dec 2011 21:22:46 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4089843?tstart=0#4089843</guid>
      <dc:date>2011-12-16T21:22:46Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>22</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4089059?tstart=0#4089059</link>
      <description>&lt;!-- [DocumentBodyStart:11e6a805-e9f2-4a73-9e59-b57f9741d903] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Jun,&lt;/p&gt;&lt;p&gt;I run your encryption file, the round 63(round start from 0) data(E and K) is different from what you told me.&lt;/p&gt;&lt;p&gt;The data from your original post(step1-step5, round 0) are all correct. I suggest you to take a look at your implementation of AES128(cbc). probably the IV and chainning mode does not set up properly.&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:11e6a805-e9f2-4a73-9e59-b57f9741d903] --&gt;</description>
      <pubDate>Fri, 16 Dec 2011 15:50:36 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4089059?tstart=0#4089059</guid>
      <dc:date>2011-12-16T15:50:36Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>23</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4087738?tstart=0#4087738</link>
      <description>&lt;!-- [DocumentBodyStart:081e313d-55f5-471e-9963-8fbe9e0a1eb7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Mark, &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Can you help me check the round 63 data? &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In round 63, UTSHA384 is used, and the E and K are as the following:&lt;/p&gt;&lt;p&gt;K:&lt;/p&gt;&lt;p&gt;ec 25 99 9c 6a 0d 1b c0 a9 70 78 39 7d 11 bd b8 ff ee 66 9c 82 70 cd 18 50 ba 33 95 05 16 0c 7b 20 de 09 12 90 37 76 43 7d 2a 78 60 db 36 20 ea&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;E: Total bytes is 2560&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;6e 0a c9 51 18 83 6b 67 e0 eb 27 f0 a4 9e 37 57 e9 1c 70 71 b3 61 cd 2b b8 dd f1 23 64 1e 6d 9b f8 67 49 48 93 3a 28 3a 96 e0 e1 77 04 8c 7c 22 99 0e 1b 4a 41 e7 bc 4b b3 c8 dd ee 00 74 72 92 ec 9d 0b b2 e6 7f 6d 9a a6 ea 9c b0 5d 73 07 36 21 f4 02 50 50 39 76 01 24 66 bd 2b..&amp;nbsp;&lt;/p&gt;&lt;p&gt;The last byte of E = 0xc0&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:081e313d-55f5-471e-9963-8fbe9e0a1eb7] --&gt;</description>
      <pubDate>Thu, 15 Dec 2011 21:57:46 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4087738?tstart=0#4087738</guid>
      <dc:date>2011-12-15T21:57:46Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>24</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4087618?tstart=0#4087618</link>
      <description>&lt;!-- [DocumentBodyStart:7a0779f0-51f7-4af4-a124-b0cf3604fa15] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Jun,&lt;/p&gt;&lt;p&gt;Is this the only file you tried. I check your steps and most of them are correct. The only missing part is the last step. I made the same mistake&amp;nbsp; the first time since PDF specification is vague on this. After several experiement, from my experience, the last step should be when round is equal or bigger than 63, check E[last byte], if E[last byte] &amp;gt; round -31, go back to step 2. The index start at 0.&lt;/p&gt;&lt;p&gt;If you tried several encryption file, the pass rate should be close to 90%, the rest 10% should be covered by above last step change. If you still has probelm with the file, then my guess will be the mod 3 calculation part.&lt;/p&gt;&lt;p&gt;Let me know if you have more trouble. Send me the data if needed and I will run more checking for you.&lt;/p&gt;&lt;p&gt;Mark Jin&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7a0779f0-51f7-4af4-a124-b0cf3604fa15] --&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:42:57 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4087618?tstart=0#4087618</guid>
      <dc:date>2011-12-15T20:42:57Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>25</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4087581?tstart=0#4087581</link>
      <description>&lt;!-- [DocumentBodyStart:6cb60ad2-3d9c-4c7a-bae2-c9ffda912548] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Jun&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; I checked the data for the first 3 steps of round one and the data does appear correct. I did however notice when running against our working version that to get a succesfull match took a total of 85 runs and not the 69 that you mentioned.&amp;nbsp; I'd suggest you look at your loop control logic after the required first 64 rounds. Good Luck.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6cb60ad2-3d9c-4c7a-bae2-c9ffda912548] --&gt;</description>
      <pubDate>Thu, 15 Dec 2011 20:24:15 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4087581?tstart=0#4087581</guid>
      <dc:date>2011-12-15T20:24:15Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4085320?tstart=0#4085320</link>
      <description>&lt;!-- [DocumentBodyStart:b0e67770-c279-4ab0-88fa-a67b83538ad3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am new to this forum. How do I attach the file? I already had 69 round.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Jun&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b0e67770-c279-4ab0-88fa-a67b83538ad3] --&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:22:36 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4085320?tstart=0#4085320</guid>
      <dc:date>2011-12-14T22:22:36Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4085409?tstart=0#4085409</link>
      <description>&lt;!-- [DocumentBodyStart:4d35c2c2-97ac-409d-b25d-6061364821d2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks you very much for your help. The file is attached.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4d35c2c2-97ac-409d-b25d-6061364821d2] --&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:19:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4085409?tstart=0#4085409</guid>
      <dc:date>2011-12-14T22:19:18Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>26</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4085344?tstart=0#4085344</link>
      <description>&lt;!-- [DocumentBodyStart:0b380231-b9cf-464d-b93d-6b3da6661662] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Please attach your encryption file. I already make this work. it will be easier for us to help if we have your test file. My guess is that you should have more rounds after you check K.&lt;/p&gt;&lt;p&gt;Mark Jin&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0b380231-b9cf-464d-b93d-6b3da6661662] --&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:10:42 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4085344?tstart=0#4085344</guid>
      <dc:date>2011-12-14T22:10:42Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>28</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/4085023?tstart=0#4085023</link>
      <description>&lt;!-- [DocumentBodyStart:af16e671-3084-4520-9196-11bb505cc994] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I create a simple file called 256encrypt.pdf and encrypted with aes256&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am using "Algorithm 2.B: Computing a hash" from ISO32000-2 to verify the user password&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;user password: password&lt;/p&gt;&lt;p&gt;User string from the PDF test file : f4 65 f1 69 9a e2 ea 71 ba e7 6b 48 bb 12 8f 1f 18 74 e3 d3 e2 97 7e b8 d6 fe 9f 7f 86 b0 6d 89 c9 38 40 c5 64 dc 5a 32 04 4d 9c 6f 28 d2 98 d0&lt;/p&gt;&lt;p&gt;User string hash value:&amp;nbsp; f4 65 f1 69 9a e2 ea 71 ba e7 6b 48 bb 12 8f 1f 18 74 e3 d3 e2 97 7e b8 d6 fe 9f 7f 86 b0 6d 89 &lt;/p&gt;&lt;p&gt;User Validatiaon salt: c9 38 40 c5 64 dc 5a 32&lt;/p&gt;&lt;p&gt;User Key salt:04 4d 9c 6f 28 d2 98 d0&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The input for the "Algorithm 2.B: Computing a hash" is as follows:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;user Validation Salt: c9 38 40 c5 64 dc 5a 32&lt;/p&gt;&lt;p&gt;password: 70 61 73 73 77 6f 72 64 (password)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;step 1: SHA256(password+user Validation Salt)&lt;/p&gt;&lt;p&gt;the result is&amp;nbsp; K = 9d 47 2d 4e f0 96 cd dd 7a 8c 04 8d b4 d2 b8 ee be fe b9 9f 7f cc e1 29 ea 63 ad f2 a3 d5 11 5b&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;step 2: Make a new string K1 with 64 repetitions of the input password and K &lt;/p&gt;&lt;p&gt;K1= 70 61 73 73 77 6f 72 64 9d 47 2d 4e f0 96 cd dd 7a 8c 04 8d b4 d2 b8 ee be fe b9 9f 7f cc e1 29 ea 63 ad f2 a3 d5 11 5b &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70 61 73 73 77 6f 72 64 9d 47 2d 4e f0 96 cd dd 7a 8c 04 8d b4 d2 b8 ee be fe b9 9f 7f cc e1 29 ea 63 ad f2 a3 d5 11 5b &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70 61 73 73 77 6f 72 64 9d 47 2d 4e f0 96 cd dd 7a 8c 04 8d b4 d2 b8 ee be fe b9 9f 7f cc e1 29 ea 63 ad f2 a3 d5 11 5b &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .......&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70 61 73 73 77 6f 72 64 9d 47 2d 4e f0 96 cd dd 7a 8c 04 8d b4 d2 b8 ee be fe b9 9f 7f cc e1 29 ea 63 ad f2 a3 d5 11 5b &lt;/p&gt;&lt;p&gt;Total 64 times , total length = 0xa00&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;step3: Encrypt K1 with AES_128(CBC)&lt;/p&gt;&lt;p&gt;AES_CBC_128_NOPADDING:&lt;/p&gt;&lt;p&gt;Key = 9d 47 2d 4e f0 96 cd dd 7a 8c 04 8d b4 d2 b8 ee&lt;/p&gt;&lt;p&gt;IV =&amp;nbsp;&amp;nbsp; be fe b9 9f 7f cc e1 29 ea 63 ad f2 a3 d5 11 5b&lt;/p&gt;&lt;p&gt;K1 64 repeat of the 70 61 73 73 77 6f 72 64 9d 47 2d 4e f0 96 cd dd 7a 8c 04 8d b4 d2 b8 ee be fe b9 9f 7f cc e1 29 ea 63 ad f2 a3 d5 11 5b &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Result : Total length is 0xa00. The beginning part of the E is &lt;/p&gt;&lt;p&gt;E = &lt;/p&gt;&lt;p&gt;47 df 2a 7f 90 8a c4 d9 f2 8b a0 f1 49 f0 8e 09 51 c4 a3 ce fd 28 48 f3 d7 c1 04 76 1b 6b 5b f2 6d 3d 2c 3f 03 26 76 06 d5 67 44 c8 2a b6&lt;/p&gt;&lt;p&gt;10 02 a5 8d a7 93 4f 94 02 b9 bf 93 b5 2d 17 82 02 3b f7 8e 8a 07 0f 18 ed 19 b3 ba 55 8b 14 b7 45 16 80 47 4f 6e c3 b6 20 d2 72 cd d1 46&lt;/p&gt;&lt;p&gt;2c d3 88 f7 c4 f7 e3 3a 04 3d 72 4f e0 d2 66 63 c4 9c 77 7c c5 53 fd 69 81 f6 3b 3d f5 8e b2 bd 66 4e 0f c6 1e 96 5e 91 e2 3d 60 5c 60 75&lt;/p&gt;&lt;p&gt;a3 13 49 58 85 e8 bb 37 93 91 4c 4f 79 a5 80 f2 13 be 44 22 aa e5 ee 6c 29 2c 76 50 a3 15 85 69 5e e9 c5 29 13 2a f6 67 51 8e 1e 7f 23 8a&lt;/p&gt;&lt;p&gt;90 a7 fe 93 c7 ff 45 ee 2a f0 c0 70 f1 78 2e 80 bd be 06 4f ad 69 4d 47 e6 3f ae e2 6a 76 ef 3e 56 8f 2d f5 c9 49 26 f3 7e 6e 61 8b 5e e6&lt;/p&gt;&lt;p&gt;e6 2d dd 76 cd 30 33 1d fe bf 11 60 ce 33 35 43 da b7 33 9b b9 6a 86 cd 35 a0 ca 84 99 0c ca 71 28 b3 01 b9 23 b4 a0 87 4e fb ff af b6 bd&lt;/p&gt;&lt;p&gt;.......&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;step4: &lt;/p&gt;&lt;p&gt;The result of the first 16 bytes of E mod 3 is 1&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;step5:&lt;/p&gt;&lt;p&gt;Using SHA384 to get 48 bytes K&lt;/p&gt;&lt;p&gt;K = 29 de 28 c1 f0 17 c9 37 bd 93 97 e3 b5 51 b0 86 b9 0c 96 e0 77 28 87 1c 11 7b 41 ce 64 bf a8 7f f2 8b a2 7b 52 58 79 a9 63 c0 b2 31 f8 4e e4 6e&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is the end of round 1 and go back to step 2 using this new K &lt;/p&gt;&lt;p&gt;When round is equal or bigger than 64, check E[last byte], if E[last byte] &amp;gt; round -32, go back to step 2 &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The final round is 69. and the final result is&lt;/p&gt;&lt;p&gt;K = ab 7c c6 03 bc da 85 51 3f 3d 22 fb 58 8c 42 1d 45 67 55 92 9f 4f d2 41 b3 93 07 04 7d b1 30 6d&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But this K does not match with the first 32 byte of the user string. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:af16e671-3084-4520-9196-11bb505cc994] --&gt;</description>
      <pubDate>Wed, 14 Dec 2011 20:43:16 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4085023?tstart=0#4085023</guid>
      <dc:date>2011-12-14T20:43:16Z</dc:date>
      <clearspace:dateToText>2 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>30</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/3953104?tstart=0#3953104</link>
      <description>&lt;!-- [DocumentBodyStart:40e51982-a241-49aa-914d-8fcb23bd30c3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;As an update, we now have this new Acrobat X, PDF 2.0, version of AES 256 encryption/decryption working properly. To summarize, there were two main causes of errors. These were:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="color: #000000; font-family: Helvetica; font-size: small;"&gt;&amp;nbsp;&amp;nbsp; 1) An undocumented critical missing portion of a step in the algorithm in version 3 of the PDF 2.0 spec that was corrected in version 4&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="color: #000000; font-family: Helvetica; font-size: small;"&gt;&amp;nbsp;&amp;nbsp; 2) A confusing description that flipped from describing using both zero and one based indexing for one of the algorithm steps.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:40e51982-a241-49aa-914d-8fcb23bd30c3] --&gt;</description>
      <pubDate>Tue, 04 Oct 2011 15:07:42 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3953104?tstart=0#3953104</guid>
      <dc:date>2011-10-04T15:07:42Z</dc:date>
      <clearspace:dateToText>3 years 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>AES 256 Revision 6 (PDF 2.0) Encryption</title>
      <link>https://forums.adobe.com/message/3925963?tstart=0#3925963</link>
      <description>&lt;!-- [DocumentBodyStart:719291a7-50da-4bc1-a7c4-2d1adc2187c2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am trying to implement decryption of AES 256 Revision 6 (PDF 2.0) as described in the ISO 32000-2 spec and having some success but getting some peculiar results that I cannot resolve and would appreciate some suggestions.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; Using Acrobat X on a PC and encrypting using password encryption compatible with Acrobat X, I created a set of about 20 Acrobat X encrypted PDF tests. When I ran these through our implementation to decrypt as following ISO 32000-2 particularly Algorithms 2.A and 2.B most decrypted successfully and produced correct output. However a few failed either in the authentication phase or in the intermediate key computation stage, with the latter showing an error by an invalid decryption of the first stream of PDF encountered. Next I tried another set of different tests and also got a similar pass rate. Finally I took one unencrypted PDF test and chose the same security settings of compatible with Acrobat X, restrict editing, and printing, and allowed print and used the same password for 15 generated versions of this PDF test. 13 of these 15 resultant encrypted tests ran successfully with our implementation of the Revision 6 decryption algorithm. Two failed, with one failing a match on both user and owner key and the other failing computing the intermediate owner key.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; In the past when we have implemented earlier Revision 5 256 AES, or even older compatibility versions it always was the case that you either had the software working or you didn&amp;#8217;t. And the new PDF 2.0 2B algorithm with 64+ hashes and 64+ aes encryptions of data along with 16 byte mod 3 math computations leaves little room for error.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; I believe that Acrobat when encrypting is choosing a random AES IV and all data including input /U /O /UE, and /OE strings differ. Even for the case described above of the same input test, same password, and same Acrobat encryption options. Thus the input into Algorithm 2-B will differ but the output should for authentication match the first 32 bytes of the O or U key or should result in a correct final result for intermediate owner or user key if the corresponding match occurred above.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; However for the few exceptions that fail the above decryption it is not easy to determine what went wrong. Just about any change to the implementation of Algorithm 2.B breaks all working test cases instead of giving a clue as to what the issue is. The possible suspects are the new SHA-384 and SHA-512 and the encrypt code. We have used SHA-256 and the AES decrypt portion in earlier implementation of revision 5 and had no problems. The AES and hash code we are using is from Gladman&lt;sup&gt;1&lt;/sup&gt;. I was wondering what others are using? It looks like Acrobat X is using RSA BSAFE Crypto &amp;#8211; C&lt;sup&gt;2&lt;/sup&gt; at least for FIPS. Could Leonard or somebody else at Adobe tell me if this RSA software is also used in general with Acrobat X?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; And I think that it would be very beneficial to have and publish a set of test vectors given input into algorithm 2.B along with correct intermediate results for each step. For each hash &amp;#8211; including which method used per step show hash results, and also encryption step results, number of steps beyond 64 minimum, as well as final result. For the 80% of tests I have working I could produce this info. For those tests I cannot get working I would need help. Perhaps someone at Adobe or elsewhere who has had greater success than I have can help? I can provide input for the problematic tests either through this forum or privately at &lt;a class="jive-link-email-small" href="mailto:David.Lincoln@csr.com"&gt;David.Lincoln@csr.com&lt;/a&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1) &lt;a class="jive-link-external-small" href="http://www.gladman.me.uk/" rel="nofollow"&gt;http://www.gladman.me.uk/&lt;/a&gt; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2) &lt;a class="jive-link-external-small" href="http://blogs.adobe.com/security/2011/05/update-fips-validation-certificates-for-acrobat-and-reader-x.html" rel="nofollow"&gt;http://blogs.adobe.com/security/2011/05/update-fips-validation-certificates-for-acrobat-an d-reader-x.html&lt;/a&gt; &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:719291a7-50da-4bc1-a7c4-2d1adc2187c2] --&gt;</description>
      <pubDate>Mon, 19 Sep 2011 23:06:52 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3925963?tstart=0#3925963</guid>
      <dc:date>2011-09-19T23:06:52Z</dc:date>
      <clearspace:dateToText>3 years 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>34</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

