Guard mcxn UDS zeroize helper

pull/792/head
Daniele Lacamera 2026-06-10 16:23:31 +02:00
parent 9bfecfb617
commit f7bf241334
1 changed files with 2 additions and 0 deletions

View File

@ -71,12 +71,14 @@
#include <wolfssl/wolfcrypt/sha256.h>
#include <wolfssl/wolfcrypt/sha512.h>
#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