kopia lustrzana https://github.com/markqvist/reticulum
Merge pull request #248 from Erethon/hkdf-remove-dead-code
hkdf: Remove duplicate check if the salt is Nonepull/250/head
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""
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue