Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compute correct okey in AESv3 R5 #20

Closed
GoogleCodeExporter opened this issue Dec 30, 2015 · 1 comment
Closed

Cannot compute correct okey in AESv3 R5 #20

GoogleCodeExporter opened this issue Dec 30, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hi,

In step 3 of algorithm 3.2a of [1], the algorithm to computer the intermediate 
owner is described as following:

file_encryption_key = AES256 {
    data: OE
    key: SHA256(owner_password + O[40:48] + U) 
    mode: CBC, no-padding
    IV: 0
}

However, the implementation seems to forget the U key part when calculating 
AES256 key. This patch adds self.U to conform [1].


[1] Adobe Supplement to ISO 32000, BaseVersion 1.7, ExtensionLevel 3 
(http://www.adobe.com/devnet/pdf/pdf_reference.html)

Original issue reported on code.google.com by czchen on 26 Apr 2013 at 10:48

Attachments:

@GoogleCodeExporter
Copy link
Author

Damn, that's right.
And the derivation of the key was also wrong for AESv3 R6. I just fixed it in 
the latest commit.

Thank you for your patch!
Guillaume

Original comment by guilla...@security-labs.org on 2 May 2013 at 4:27

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant