From d82d8a53ef1a1758c60ae97b8a4fc2bb027cce68 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 6 May 2025 13:47:54 +0200 Subject: [PATCH] wc_HKDF_Expand_ex: correctly advance the index --- wolfcrypt/src/hmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/hmac.c b/wolfcrypt/src/hmac.c index 912b26dc1..c6a214edb 100644 --- a/wolfcrypt/src/hmac.c +++ b/wolfcrypt/src/hmac.c @@ -1581,7 +1581,7 @@ int wolfSSL_GetHmacMaxSize(void) left = min(left, hashSz); XMEMCPY(out+outIdx, tmp, left); - outIdx += hashSz; + outIdx += left; n++; }