summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/container/RSDF.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/container/RSDF.py')
-rw-r--r--pyload/plugin/container/RSDF.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/container/RSDF.py b/pyload/plugin/container/RSDF.py
index 6f56ec06a..1de8ad8d4 100644
--- a/pyload/plugin/container/RSDF.py
+++ b/pyload/plugin/container/RSDF.py
@@ -5,7 +5,7 @@ from __future__ import with_statement
import binascii
import re
-from Crypto.Cipher import AES
+import Crypto
from pyload.plugin.Container import Container
from pyload.utils import fs_encode
@@ -33,8 +33,8 @@ class RSDF(Container):
KEY = binascii.unhexlify(self.KEY)
IV = binascii.unhexlify(self.IV)
- iv = AES.new(KEY, AES.MODE_ECB).encrypt(IV)
- cipher = AES.new(KEY, AES.MODE_CFB, iv)
+ iv = Crypto.Cipher.AES.new(KEY, Crypto.Cipher.AES.MODE_ECB).encrypt(IV)
+ cipher = Crypto.Cipher.AES.new(KEY, Crypto.Cipher.AES.MODE_CFB, iv)
try:
fs_filename = fs_encode(pyfile.url.strip())