diff options
Diffstat (limited to 'pyload/plugin/container/DLC.py')
-rw-r--r-- | pyload/plugin/container/DLC.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/container/DLC.py b/pyload/plugin/container/DLC.py index b2bfea30e..39b1597b0 100644 --- a/pyload/plugin/container/DLC.py +++ b/pyload/plugin/container/DLC.py @@ -5,7 +5,7 @@ from __future__ import with_statement import re import xml.dom.minidom -from Crypto.Cipher import AES +import Crypto from pyload.plugin.Container import Container from pyload.utils import decode, fs_encode @@ -49,9 +49,9 @@ class DLC(Container): except AttributeError: self.fail(_("Container is corrupted")) - key = iv = AES.new(self.KEY, AES.MODE_CBC, self.IV).decrypt(rc) + key = iv = Crypto.Cipher.AES.new(self.KEY, Crypto.Cipher.AES.MODE_CBC, self.IV).decrypt(rc) - self.data = AES.new(key, AES.MODE_CBC, iv).decrypt(dlc_data).decode('base64') + self.data = Crypto.Cipher.AES.new(key, Crypto.Cipher.AES.MODE_CBC, iv).decrypt(dlc_data).decode('base64') self.packages = [(name or pyfile.name, links, name or pyfile.name) \ for name, links in self.getPackages()] |