summaryrefslogtreecommitdiffstats
path: root/module/plugins/container/DLC.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-24 03:49:00 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-24 03:49:00 +0100
commitbc4f746e241a819bb5678125bbb96cb9a1272d82 (patch)
treef91462c5a8ebcd6c42fcf0bf8bcfd94fe152e69f /module/plugins/container/DLC.py
parentMerge pull request #1203 from flubshi/stable (diff)
downloadpyload-bc4f746e241a819bb5678125bbb96cb9a1272d82.tar.xz
[RSDF] Fix https://github.com/pyload/pyload/issues/1204
Diffstat (limited to 'module/plugins/container/DLC.py')
-rw-r--r--module/plugins/container/DLC.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/container/DLC.py b/module/plugins/container/DLC.py
index b01e3098c..d1c34ef50 100644
--- a/module/plugins/container/DLC.py
+++ b/module/plugins/container/DLC.py
@@ -49,9 +49,9 @@ class DLC(Container):
except AttributeError:
self.fail(_("Container is corrupted"))
- cipher = AES.new(self.KEY, AES.MODE_CBC, self.IV).decrypt(rc)
+ key = iv = AES.new(self.KEY, AES.MODE_CBC, self.IV).decrypt(rc)
- self.data = AES.new(cipher, AES.MODE_CBC, cipher).decrypt(dlc_data).decode('base64')
+ self.data = AES.new(key, AES.MODE_CBC, iv).decrypt(dlc_data).decode('base64')
self.packages = [(entry[0] if entry[0] else pyfile.name, entry[1], entry[0] if entry[0] else pyfile.name) \
for entry in self.getPackages()]