Skip to content

Commit c5c2466

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 c5c2466

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

boot/bootutil/src/ed25519_psa.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ 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
131+
provisioned.");
132+
}
129133
}
130134

131135
return ret;

0 commit comments

Comments
 (0)