chore(core): remove redundant includes fom SAES module
What changed, and why it matters
This commit simply removes two unused header file includes from source files in the secure AES module. It is a routine cleanup with no functional code changes and no security relevance.
No action needed; this is a benign cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit deletes #include <stm32u5xx_hal_cryp.h> from core/embed/sec/secure_aes/stm32u5/secure_aes.c and core/embed/sec/secure_aes/stm32u5/secure_aes_unpriv.c. The diff shows only line removals of redundant includes; no logic, interfaces, or behavior are altered. The commit title explicitly calls this a chore to remove redundant includes and includes [no changelog].
Changed components
core/embed/sec/secure_aes/stm32u5/secure_aes.ccore/embed/sec/secure_aes/stm32u5/secure_aes_unpriv.cInspect captured patch +0 / −4
diff --git a/core/embed/sec/secure_aes/stm32u5/secure_aes.c b/core/embed/sec/secure_aes/stm32u5/secure_aes.c
index 0074c625..50914525 100644
--- a/core/embed/sec/secure_aes/stm32u5/secure_aes.c
+++ b/core/embed/sec/secure_aes/stm32u5/secure_aes.c
@@ -23,8 +23,6 @@
#include <trezor_model.h>
#include <trezor_rtl.h>
-#include <stm32u5xx_hal_cryp.h>
-
#include <sec/secure_aes.h>
#include <sys/systick.h>
diff --git a/core/embed/sec/secure_aes/stm32u5/secure_aes_unpriv.c b/core/embed/sec/secure_aes/stm32u5/secure_aes_unpriv.c
index dea1d8cf..1a95fa79 100644
--- a/core/embed/sec/secure_aes/stm32u5/secure_aes_unpriv.c
+++ b/core/embed/sec/secure_aes/stm32u5/secure_aes_unpriv.c
@@ -24,8 +24,6 @@
#include <sec/secure_aes.h>
-#include <stm32u5xx_hal_cryp.h>
-
#include "secure_aes_unpriv.h"
#include "memzero.h"
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.