Skip to content

Conversation

nordic-mik7
Copy link
Contributor

Thic PR introduces support for ed25519 signature verification when CONFIG_NCS_BOOT_SIGNATURE_USING_ITS is set (through PSA API).

@ahasztag ahasztag requested a review from de-nordic August 25, 2025 09:15
@ahasztag ahasztag requested review from nvlsianpu and nordicjm August 29, 2025 11:49
Copy link
Contributor

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.
Rename the kmu_key_ids to key_ids or whatever common name there can be made, and name the both lists the name, just choose one by selected secure storage.
Reduce all the changes, in the ifdef from, by moving all required compile time logic into one place, above all the usage cases.
Add common cpp identifiers for key count and secure storage usage.

@ahasztag
Copy link
Contributor

ahasztag commented Sep 3, 2025

No. Rename the kmu_key_ids to key_ids or whatever common name there can be made, and name the both lists the name, just choose one by selected secure storage. Reduce all the changes, in the ifdef from, by moving all required compile time logic into one place, above all the usage cases. Add common cpp identifiers for key count and secure storage usage.

Michał is on vacation so I will continue work on this PR. Changed as you've suggested.

@ahasztag ahasztag requested a review from de-nordic September 3, 2025 09:35
#endif
break;
return ret;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just return 1 here, remove 'ret' and replace final return with 'return 0'.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -26,22 +26,35 @@ BOOT_LOG_MODULE_REGISTER(ed25519_psa);
#if defined(CONFIG_BOOT_SIGNATURE_USING_KMU)
/* List of KMU stored key ids available for MCUboot */
#define MAKE_PSA_KMU_KEY_ID(id) PSA_KEY_HANDLE_FROM_CRACEN_KMU_SLOT(CRACEN_KMU_KEY_USAGE_SCHEME_RAW, id)
static psa_key_id_t kmu_key_ids[3] = {
static psa_key_id_t key_ids[3] = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the line is already touched, remove the 3.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Thic commit introduces support for ed25519 signature verification when
CONFIG_NCS_BOOT_SIGNATURE_USING_ITS is set (through PSA API).

Signed-off-by: Michal Kozikowski <[email protected]>
@ahasztag ahasztag force-pushed the dev/ed25519_ITS_support branch from c911069 to 491cfe8 Compare September 5, 2025 08:01
Copy link

sonarqubecloud bot commented Sep 5, 2025

@ahasztag ahasztag requested a review from de-nordic September 5, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants