mirror of
https://github.com/azure-rtos/netxduo.git
synced 2025-10-14 02:58:01 +08:00
Merge pull request #317 from sjscymru/fix-hdfk-buffer-overflow
Fix HKDF implementation to prevent buffer overrun when compiled with NX_SECURE_KEY_CLEAR
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user