Merge pull request #9898 from julek-wolfssl/fenrir/15

Replace XMEMCMP with ConstantCompare for ticket MAC verification
This commit is contained in:
Daniel Pouzzner
2026-03-06 22:20:38 -06:00
committed by GitHub
+1 -1
View File
@@ -16423,7 +16423,7 @@ static int wolfSSL_TicketKeyCb(WOLFSSL* ssl,
goto end;
if (!wolfSSL_HMAC_Final(&hmacCtx, digest, &mdSz))
goto end;
if (XMEMCMP(mac, digest, mdSz) != 0)
if (ConstantCompare(mac, digest, (int)mdSz) != 0)
goto end;
/* Decrypt the ticket data in place. */