[PATCH] ARM: i.MX: fix fast auth wrong CSF file

Fabian Pfitzner f.pfitzner at pengutronix.de
Fri Jul 10 07:15:57 PDT 2026


The commit [1], which integrates fast authentication support on
i.MX8 SoCs does not work as expected. The resulting CSF cannot be
verified correctly by the boot rom, leading to an invalid signature.

The CST user guide documentation states in `Table 10. Authenticate Data arguments`,
that the `Verification Index` must also be set to 0 when we use fast
auth. This commit fixes that.

With this change, the bootrom seems to validate the signature properly
now.

[1] 086d01264d ("ARM: i.MX: add support for fast authentication")

---
Signed-off-by: Fabian Pfitzner <f.pfitzner at pengutronix.de>
---
 include/mach/imx/habv4-imx8-gencsf.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/mach/imx/habv4-imx8-gencsf.h b/include/mach/imx/habv4-imx8-gencsf.h
index 337f2fab40d02703c8a3be7726528f5ac0db956b..897078651861283d2c47828b4079e847dad72946 100644
--- a/include/mach/imx/habv4-imx8-gencsf.h
+++ b/include/mach/imx/habv4-imx8-gencsf.h
@@ -66,7 +66,11 @@ hab File = CONFIG_HABV4_IMG_CRT_PEM
 
 hab [Authenticate Data]
 /* verification key index in key store (2...4) */
+#if defined(CONFIG_HABV4_FAST_AUTH)
+hab Verification index = 0
+#else
 hab Verification index = 2
+#endif
 
 hab_blocks
 

---
base-commit: 2c6a6478987a7fba5ce8a04d01213d6ce6f02d76
change-id: 20260710-fpf-fast-auth-01f2957f8584

Best regards,
-- 
Fabian Pfitzner <f.pfitzner at pengutronix.de>




More information about the barebox mailing list