mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Merge branch 'master' of https://git.unsigned.io/markqvist/Reticulum
This commit is contained in:
commit
d26bbbd59f
@ -33,7 +33,7 @@ def hkdf(length=None, derive_from=None, salt=None, context=None):
|
|||||||
if length == None or length < 1:
|
if length == None or length < 1:
|
||||||
raise ValueError("Invalid output key length")
|
raise ValueError("Invalid output key length")
|
||||||
|
|
||||||
if derive_from == "None" or derive_from == "":
|
if derive_from == None or derive_from == "":
|
||||||
raise ValueError("Cannot derive key from empty input material")
|
raise ValueError("Cannot derive key from empty input material")
|
||||||
|
|
||||||
if salt == None or len(salt) == 0:
|
if salt == None or len(salt) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user