Skip to content
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

boot: SHA512 verification #1967

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michalek-no
Copy link
Collaborator

@michalek-no michalek-no commented May 28, 2024

adds TLV and Kconfig to decouple verification from other options.

@nvlsianpu nvlsianpu self-requested a review May 28, 2024 13:50
@nvlsianpu nvlsianpu added the area: core Affects core functionality label May 28, 2024
@@ -82,7 +85,9 @@ typedef psa_hash_operation_t bootutil_sha_context;
static inline int bootutil_sha_init(bootutil_sha_context *ctx)
{
*ctx = psa_hash_operation_init();
#if defined(MCUBOOT_SIGN_EC384)
#if defined(MCUBOOT_SHA512)
psa_status_t status = psa_hash_setup(ctx, PSA_ALG_SHA_512);
Copy link
Collaborator

Choose a reason for hiding this comment

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

PSA_ALG_SHA_512, PSA_ALG_SHA_384, PSA_ALG_SHA_258 might be covered under one define.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

512 and 384 are using the same init/clone/update... calls.
256 is handled by different functions.

@michalek-no michalek-no reopened this Jun 26, 2024
@michalek-no michalek-no force-pushed the mb-psa-patch branch 2 times, most recently from 4153784 to 9de733a Compare June 26, 2024 12:13
@michalek-no michalek-no marked this pull request as ready for review June 26, 2024 12:13
@michalek-no michalek-no changed the title wip boot: SHA512 verification Jun 26, 2024
adds TLV and Kconfig to decouple verification from
other options.

Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Affects core functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants