mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Replace memcmp with mbedtls_ct_memcmp in PSA MAC verify_finish entries (CMAC, HMAC-transparent, HMAC-opaque) to prevent timing side-channel MAC forgery, and unconditionally zeroize the locally-computed MAC on the stack before return so a later stack-disclosure primitive cannot recover the valid MAC. Replace bzero with mbedtls_platform_zeroize in AES context free paths.