summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2025-09-29 11:24:13 +0100
committerGitHub <[email protected]>2025-09-29 11:24:13 +0100
commit84b920fc65d67ec4e34706c4d6833c23a9cd1405 (patch)
treefe62ebc8ab88cc2fc5ad6e0d1402d17a696fcc05
parentb4ec3ca16e9a2a307411debdd3222fe7c22685cb (diff)
parentca0148d02a48d5879837a1c16f53cbeea1e7defe (diff)
Merge pull request #317 from sjscymru/fix-hdfk-buffer-overflow
Fix HKDF implementation to prevent buffer overrun when compiled with NX_SECURE_KEY_CLEAR
-rw-r--r--crypto_libraries/src/nx_crypto_hkdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto_libraries/src/nx_crypto_hkdf.c b/crypto_libraries/src/nx_crypto_hkdf.c
index b9d080dc..3ce9e1a9 100644
--- a/crypto_libraries/src/nx_crypto_hkdf.c
+++ b/crypto_libraries/src/nx_crypto_hkdf.c
@@ -172,7 +172,7 @@ UINT status;
if(hmac_method)
{
- status = hmac_method -> nx_crypto_cleanup(hmac_method);
+ status = hmac_method -> nx_crypto_cleanup(hkdf->nx_crypto_hmac_metadata);
if (status != NX_CRYPTO_SUCCESS)
{