Skip to content

Commit 4aa44f8

Browse files
committed
fix typo
1 parent 4f6c9d6 commit 4aa44f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysodium/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ def crypto_hash_sha512_final(state):
15001500
# const unsigned char key[crypto_kdf_KEYBYTES])
15011501
def crypto_kdf_derive_from_key(subkey_len, subkey_id, ctx, key):
15021502
if len(ctx) != crypto_kdf_CONTEXTBYTES: raise ValueError("invalid context")
1503-
if len(key) != crypto_kdf_KEYBYTES: raise ValueError("invalid context")
1503+
if len(key) != crypto_kdf_KEYBYTES: raise ValueError("invalid key")
15041504
if not (crypto_kdf_BYTES_MIN <= subkey_len <= crypto_kdf_BYTES_MAX): raise ValueError("invalid subkey len")
15051505
subkey = ctypes.create_string_buffer(subkey_len)
15061506
si = ctypes.c_uint64(subkey_id)

0 commit comments

Comments
 (0)