Drop unused PyCrypto imports
This commit is contained in:
@@ -201,7 +201,6 @@ def decrypt(cipherspec, key, data, iv=None):
|
|||||||
|
|
||||||
|
|
||||||
def hash(hashmethod, data):
|
def hash(hashmethod, data):
|
||||||
from Crypto.Hash import SHA, MD5 # , RIPEMD
|
|
||||||
hash_class = locals().get(hashmethod.upper(), None)
|
hash_class = locals().get(hashmethod.upper(), None)
|
||||||
if hash_class is None:
|
if hash_class is None:
|
||||||
logging.error("Unknown Hash method %s" % hashmethod)
|
logging.error("Unknown Hash method %s" % hashmethod)
|
||||||
|
|||||||
@@ -683,8 +683,6 @@ class Security_Environment(object):
|
|||||||
P1-P2 different from '0000'
|
P1-P2 different from '0000'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from Crypto.PublicKey import RSA, DSA
|
|
||||||
|
|
||||||
cipher = self.ct.algorithm
|
cipher = self.ct.algorithm
|
||||||
|
|
||||||
c_class = locals().get(cipher, None)
|
c_class = locals().get(cipher, None)
|
||||||
|
|||||||
Reference in New Issue
Block a user