Skip to content

Commit 01efde1

Browse files
[nrf noup] bootutil: Add error log on KMU not provisioned
An unprovisioned KMU can cause confusion, so improve the logs for this case. Signed-off-by: Sigurd Hellesvik <[email protected]>
1 parent 5afc0aa commit 01efde1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

boot/bootutil/src/ed25519_psa.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ int ED25519_verify(const uint8_t *message, size_t message_len,
126126
}
127127

128128
BOOT_LOG_ERR("ED25519 signature verification failed %d", status);
129+
if(status == PSA_ERROR_INVALID_HANDLE) {
130+
BOOT_LOG_ERR("PSA_ERROR_INVALID_HANDLE(-136) could mean that the KMU slot is not provisioned.");
131+
}
129132
}
130133

131134
return ret;

0 commit comments

Comments
 (0)