Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions boot/bootutil/src/ed25519_psa.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <assert.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>

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

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

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

BOOT_LOG_DBG("ED25519_verify: trying key ID 0x%" PRIx32, (uint32_t)kid);
status = psa_verify_message(kid, PSA_ALG_PURE_EDDSA, message,
message_len, signature,
EDDSA_SIGNAGURE_LENGTH);
Expand Down