Merge pull request #215 from Gu1nness/fix-hashlib

Fallback to hashlib instead of deprecated libs
This commit is contained in:
Frank Morgner
2022-01-21 17:17:38 +01:00
committed by GitHub

View File

@@ -31,8 +31,8 @@ try:
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