mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 08:10:50 +02:00
Merge pull request #9898 from julek-wolfssl/fenrir/15
Replace XMEMCMP with ConstantCompare for ticket MAC verification
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user