Skip to content

Commit

Permalink
Merge pull request frankmorgner#215 from Gu1nness/fix-hashlib
Browse files Browse the repository at this point in the history
Fallback to hashlib instead of deprecated libs
  • Loading branch information
frankmorgner authored Jan 21, 2022
2 parents 77ea089 + 82c0c4f commit a55b636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

except ImportError:
# PyCrypto not available. Use the Python standard library.
import hmac as HMAC
import sha as SHA1
from hashlib import hmac as HMAC
from hashlib import sha as SHA1

CYBERFLEX_IV = b'\x00' * 8

Expand Down

0 comments on commit a55b636

Please sign in to comment.