Эх сурвалжийг харах

remove IDEA, since it can't be found in Crypto

oz123 12 жил өмнө
parent
commit
8ab0c413a9

+ 3 - 5
pwman/util/crypto.py

@@ -49,8 +49,6 @@ from Crypto.Cipher import ARC4 as cARC2
 from Crypto.Cipher import CAST as cCAST
 from Crypto.Cipher import CAST as cCAST
 from Crypto.Cipher import DES as cDES
 from Crypto.Cipher import DES as cDES
 from Crypto.Cipher import DES3 as cDES3
 from Crypto.Cipher import DES3 as cDES3
-from Crypto.Cipher import IDEA as cIDEA
-
 
 
 from Crypto.Util.randpool import RandomPool
 from Crypto.Util.randpool import RandomPool
 
 
@@ -317,9 +315,9 @@ class CryptoEngine:
         elif (algo == 'DES3'):
         elif (algo == 'DES3'):
             key = self._padkey(key, [16, 24])
             key = self._padkey(key, [16, 24])
             cipher =  cDES3.new(key, cDES3.MODE_ECB)
             cipher =  cDES3.new(key, cDES3.MODE_ECB)
-        elif (algo == 'IDEA'):
-            key = self._padkey(key, [16])
-            cipher = cIDEA.new(key, cIDEA.MODE_ECB)
+        #elif (algo == 'IDEA'):
+        #    key = self._padkey(key, [16])
+        #    cipher = cIDEA.new(key, cIDEA.MODE_ECB)
         #elif (algo == 'RC5'):
         #elif (algo == 'RC5'):
         #    cipher = cRC5.new(key, cRC5.MODE_ECB)
         #    cipher = cRC5.new(key, cRC5.MODE_ECB)
         elif (algo == 'XOR'):
         elif (algo == 'XOR'):