Merge pull request #228 from michaelweghorn/michaelweghorn/drop_unused_sha1_import
Drop unused SHA1 import
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user