Krucifyr / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

backup4.py fails to decrypt encrypted files #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. clone 50:3047d3092b7b
2. use backup_tool.py to decrypt an encrypted backup

What is the expected output? What do you see instead?

  File "/snip/iphone-dataprotection/python_scripts/backups/backup4.py", line 162, in read_file
    if len(padding) > AES.block_size or padding != chr(len(padding)) * len(padding):

What version of the product are you using? On what operating system?

changeset:   51:2112108faf04, OS X 10.7.4, python 2.7.1

Please provide any additional information below.

from Crypto.Cipher import AES

was replaced with

from crypto.aes import AESdecryptCBC

But AES is still referenced on line 161: 

http://code.google.com/p/iphone-dataprotection/source/browse/python_scripts/back
ups/backup4.py?r=3047d3092b7b8b3c99e63bb797bca934ecebbc27#161

Original issue reported on code.google.com by freesp...@gmail.com on 18 Jul 2012 at 4:38

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 0fd3568b3526.

Original comment by jean.sig...@gmail.com on 18 Jul 2012 at 8:46

GoogleCodeExporter commented 8 years ago
Thanks, should be fixed now.

Original comment by jean.sig...@gmail.com on 18 Jul 2012 at 8:47