From f7bf241334e7ea8ffaf6769d30dccbd215d74461 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Wed, 10 Jun 2026 16:23:31 +0200 Subject: [PATCH] Guard mcxn UDS zeroize helper --- hal/mcxn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hal/mcxn.c b/hal/mcxn.c index 72d55a3b..da96b747 100644 --- a/hal/mcxn.c +++ b/hal/mcxn.c @@ -71,12 +71,14 @@ #include #include +#ifdef WOLFBOOT_UDS_UID_FALLBACK_FORTEST static NOINLINEFUNCTION void hal_uds_zeroize(void *ptr, size_t len) { volatile uint8_t *p = (volatile uint8_t *)ptr; while (len-- > 0U) *p++ = 0U; } +#endif /* Derive UDS from device UUID for software DICE testing. * NOT secure — UUID is publicly observable. Only enabled with