Skip to content

Commit 26c2f8a

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 26c2f8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

boot/bootutil/src/ed25519_psa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,12 @@ int ED25519_verify(const uint8_t *message, size_t message_len,
129129
}
130130

131131
status = PSA_ERROR_BAD_STATE;
132+
BOOT_LOG_DBG("ED25519_verify: total key count %d", KEY_SLOTS_COUNT);
132133

133134
for (int i = 0; i < KEY_SLOTS_COUNT; ++i) {
134135
psa_key_id_t kid = key_ids[i];
135136

137+
BOOT_LOG_DBG("ED25519_verify: trying key ID 0x" PRIx32, (uint32_t)kid);
136138
status = psa_verify_message(kid, PSA_ALG_PURE_EDDSA, message,
137139
message_len, signature,
138140
EDDSA_SIGNAGURE_LENGTH);

0 commit comments

Comments
 (0)