Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stsch9 committed Jan 4, 2024
1 parent 4f6c9d6 commit 4aa44f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysodium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ def crypto_hash_sha512_final(state):
# const unsigned char key[crypto_kdf_KEYBYTES])
def crypto_kdf_derive_from_key(subkey_len, subkey_id, ctx, key):
if len(ctx) != crypto_kdf_CONTEXTBYTES: raise ValueError("invalid context")
if len(key) != crypto_kdf_KEYBYTES: raise ValueError("invalid context")
if len(key) != crypto_kdf_KEYBYTES: raise ValueError("invalid key")
if not (crypto_kdf_BYTES_MIN <= subkey_len <= crypto_kdf_BYTES_MAX): raise ValueError("invalid subkey len")
subkey = ctypes.create_string_buffer(subkey_len)
si = ctypes.c_uint64(subkey_id)
Expand Down

0 comments on commit 4aa44f8

Please sign in to comment.