Skip to content

Commit 3a6fbc1

Browse files
[nrf noup] bootutil: Gives more logs on KMU not provisioned
Checks if the KMU has been provisioned, and add extra log if it has not. Error 136 could theoretically be caused by something else, so the extra logs is not phrased in a absolute manner. Fixes: NCSDK-33559 Signed-off-by: Sigurd Hellesvik <[email protected]>
1 parent 766081b commit 3a6fbc1

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("This error(-136) could mean that the KMU slot is not provisioned.");
131+
}
129132
}
130133

131134
return ret;

0 commit comments

Comments
 (0)