From c6f8011ade94e2b6860d09fd469bec43b42daee6 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Sat, 23 Jul 2022 13:48:09 +0200 Subject: [PATCH] Drop unused SHA1 import It is unused since commit 36970a26d72b4e2a63170b80c6af2b733ea14876 ("Replace PBKDF2 class by python stdlib implementation"). Fixes #218 --- virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py index e9d4d267..23a6cc74 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py @@ -27,12 +27,11 @@ try: # Use PyCrypto (if available) from Crypto.Cipher import DES3, DES, AES, ARC4 # @UnusedImport - from Crypto.Hash import HMAC, SHA as SHA1 + from Crypto.Hash import HMAC except ImportError: # PyCrypto not available. Use the Python standard library. from hashlib import hmac as HMAC - from hashlib import sha as SHA1 CYBERFLEX_IV = b'\x00' * 8