Skip to content

Commit 84b920f

Browse files
authored
Merge pull request #317 from sjscymru/fix-hdfk-buffer-overflow
Fix HKDF implementation to prevent buffer overrun when compiled with NX_SECURE_KEY_CLEAR
2 parents b4ec3ca + ca0148d commit 84b920f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto_libraries/src/nx_crypto_hkdf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ UINT status;
172172

173173
if(hmac_method)
174174
{
175-
status = hmac_method -> nx_crypto_cleanup(hmac_method);
175+
status = hmac_method -> nx_crypto_cleanup(hkdf->nx_crypto_hmac_metadata);
176176

177177
if (status != NX_CRYPTO_SUCCESS)
178178
{

0 commit comments

Comments
 (0)