Drop unused PyCrypto imports

This commit is contained in:
Michael Weghorn
2022-09-17 21:32:07 +02:00
parent bbe5ab9f8c
commit 141509cce3
2 changed files with 0 additions and 3 deletions

View File

@@ -201,7 +201,6 @@ def decrypt(cipherspec, key, data, iv=None):
def hash(hashmethod, data):
from Crypto.Hash import SHA, MD5 # , RIPEMD
hash_class = locals().get(hashmethod.upper(), None)
if hash_class is None:
logging.error("Unknown Hash method %s" % hashmethod)

View File

@@ -683,8 +683,6 @@ class Security_Environment(object):
P1-P2 different from '0000'
"""
from Crypto.PublicKey import RSA, DSA
cipher = self.ct.algorithm
c_class = locals().get(cipher, None)