F-7281 - Scrub SPI transfer buffers in the advanced IO callback

pull/561/head
Aidan Garske 2026-07-27 13:00:56 -07:00
parent 722ead4cf0
commit e9e1e36d69
1 changed files with 6 additions and 0 deletions

View File

@ -208,6 +208,12 @@ int TPM2_IoCb(TPM2_CTX* ctx, INT32 isRead, UINT32 addr,
}
#endif
#if !defined(WOLFTPM_I2C) && !defined(WOLFTPM_MMIO) && !defined(WOLFTPM_FWTPM_HAL)
/* the FIFO register transfers plaintext command/response payload */
TPM2_ForceZero(txBuf, sizeof(txBuf));
TPM2_ForceZero(rxBuf, sizeof(rxBuf));
#endif
(void)ctx;
return ret;