Merge pull request #248 from Erethon/hkdf-remove-dead-code
hkdf: Remove duplicate check if the salt is None
This commit is contained in:
commit
1db08438df
@ -39,9 +39,6 @@ def hkdf(length=None, derive_from=None, salt=None, context=None):
|
|||||||
if salt == None or len(salt) == 0:
|
if salt == None or len(salt) == 0:
|
||||||
salt = bytes([0] * hash_len)
|
salt = bytes([0] * hash_len)
|
||||||
|
|
||||||
if salt == None:
|
|
||||||
salt = b""
|
|
||||||
|
|
||||||
if context == None:
|
if context == None:
|
||||||
context = b""
|
context = b""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user