Skip to content

Commit

Permalink
Drop unused SHA1 import
Browse files Browse the repository at this point in the history
It is unused since commit 36970a2
("Replace PBKDF2 class by python stdlib implementation").

Fixes #218
  • Loading branch information
michaelweghorn committed Jul 23, 2022
1 parent 562eb42 commit c6f8011
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6f8011

Please sign in to comment.