Skip to content

Commit 555804f

Browse files
committed
[nrf noup] bootutil: ed25519 psa KMU: Key attempt log
Adding additional LOG_DBG with information of which key validation is attempted. Signed-off-by: Dominik Ermel <[email protected]>
1 parent fdcf758 commit 555804f

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
@@ -6,6 +6,7 @@
66
#include <assert.h>
77
#include <string.h>
88
#include <stdint.h>
9+
#include <inttypes.h>
910

1011
#include <mcuboot_config/mcuboot_config.h>
1112
#include "bootutil/bootutil_log.h"
@@ -129,10 +130,12 @@ int ED25519_verify(const uint8_t *message, size_t message_len,
129130
}
130131

131132
status = PSA_ERROR_BAD_STATE;
133+
BOOT_LOG_DBG("ED25519_verify: total key count %d", KEY_SLOTS_COUNT);
132134

133135
for (int i = 0; i < KEY_SLOTS_COUNT; ++i) {
134136
psa_key_id_t kid = key_ids[i];
135137

138+
BOOT_LOG_DBG("ED25519_verify: trying key ID 0x%" PRIx32, (uint32_t)kid);
136139
status = psa_verify_message(kid, PSA_ALG_PURE_EDDSA, message,
137140
message_len, signature,
138141
EDDSA_SIGNAGURE_LENGTH);

0 commit comments

Comments
 (0)