* [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* Re: [PATCH] ARM: i.MX: fix fast auth wrong CSF file
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
1 sibling, 0 replies; 3+ messages in thread
From: Marco Felsch @ 2026-07-10 15:23 UTC (permalink / raw)
To: Fabian Pfitzner; +Cc: BAREBOX
On 26-07-10, Fabian Pfitzner wrote:
> 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>
Two nits:
- your s-o-b is below the '---' and therefore cut while applying
- You should metion the broken commit by a fixes tag:
Fixes: 086d01264d ("ARM: i.MX: add support for fast authentication")
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ARM: i.MX: fix fast auth wrong CSF file
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
1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2026-07-10 21:36 UTC (permalink / raw)
To: BAREBOX, Fabian Pfitzner
On Fri, 10 Jul 2026 16:15:57 +0200, Fabian Pfitzner wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] ARM: i.MX: fix fast auth wrong CSF file
https://git.pengutronix.de/cgit/barebox/commit/?id=deffe6346d7b (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@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