diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py index 07a095f..cdaeb14 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py @@ -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) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/SEutils.py b/virtualsmartcard/src/vpicc/virtualsmartcard/SEutils.py index 6183d31..c20efe0 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/SEutils.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/SEutils.py @@ -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)