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++; }