-
Notifications
You must be signed in to change notification settings - Fork 238
[nrf noup] Support for ed25519 signature verification using ITS #517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
d01e51a
to
c911069
Compare
Michał is on vacation so I will continue work on this PR. Changed as you've suggested. |
boot/bootutil/src/ed25519_psa.c
Outdated
#endif | ||
break; | ||
return ret; |
There was a problem hiding this comment.
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'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
boot/bootutil/src/ed25519_psa.c
Outdated
@@ -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] = { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]>
c911069
to
491cfe8
Compare
|
Thic PR introduces support for ed25519 signature verification when CONFIG_NCS_BOOT_SIGNATURE_USING_ITS is set (through PSA API).