mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX: fix fast auth wrong CSF file
@ 2026-07-10 14:15 Fabian Pfitzner
  2026-07-10 15:23 ` Marco Felsch
  2026-07-10 21:36 ` Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Fabian Pfitzner @ 2026-07-10 14:15 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Fabian Pfitzner

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@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@pengutronix.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-10 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-10 14:15 [PATCH] ARM: i.MX: fix fast auth wrong CSF file Fabian Pfitzner
2026-07-10 15:23 ` Marco Felsch
2026-07-10 21:36 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox