Merge pull request #248 from Erethon/hkdf-remove-dead-code

hkdf: Remove duplicate check if the salt is None
This commit is contained in:
markqvist
2023-03-02 11:29:18 +01:00
committed by GitHub

View File

@@ -39,9 +39,6 @@ def hkdf(length=None, derive_from=None, salt=None, context=None):
if salt == None or len(salt) == 0:
salt = bytes([0] * hash_len)
if salt == None:
salt = b""
if context == None:
context = b""