Merge pull request #228 from michaelweghorn/michaelweghorn/drop_unused_sha1_import

Drop unused SHA1 import
This commit is contained in:
Frank Morgner
2022-08-08 11:08:09 +02:00
committed by GitHub

View File

@@ -27,12 +27,11 @@ from virtualsmartcard.utils import inttostring
try: try:
# Use PyCrypto (if available) # Use PyCrypto (if available)
from Crypto.Cipher import DES3, DES, AES, ARC4 # @UnusedImport from Crypto.Cipher import DES3, DES, AES, ARC4 # @UnusedImport
from Crypto.Hash import HMAC, SHA as SHA1 from Crypto.Hash import HMAC
except ImportError: except ImportError:
# PyCrypto not available. Use the Python standard library. # PyCrypto not available. Use the Python standard library.
from hashlib import hmac as HMAC from hashlib import hmac as HMAC
from hashlib import sha as SHA1
CYBERFLEX_IV = b'\x00' * 8 CYBERFLEX_IV = b'\x00' * 8