Skip to content

[nrf noup] bootutil: Locking KMU keys #465

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

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

de-nordic
Copy link
Contributor

Lock KMU keys before passing execution to application.

Comment on lines 171 to 174
psa_status_t status = psa_crypto_init();

if (status != PSA_SUCCESS) {
BOOT_LOG_ERR("PSA crypto init failed with error %d", status);
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't psa_crypto_init() already called way before this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, actually it is. Probably.

@de-nordic de-nordic added the DNM label Jul 17, 2025
@de-nordic de-nordic force-pushed the key-locking branch 3 times, most recently from 7e3b7bf to 73564a6 Compare July 17, 2025 14:27
@de-nordic de-nordic requested a review from tomi-font July 17, 2025 16:10

void nrf_crypto_keys_housekeeping(void)
{
psa_status_t status = PSA_ERROR_BAD_STATE;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we still initialize status?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does not hurt, that much.

Copy link
Contributor

Choose a reason for hiding this comment

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

probably takes some ROM bytes 🙃 but yeah do what you want really just pointing it out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eh. There you have, happy now ?

Copy link
Contributor

Choose a reason for hiding this comment

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

😄 very happy

Copy link

@frkv frkv left a comment

Choose a reason for hiding this comment

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

LGTM

Lock KMU keys before passing execution to application.

Signed-off-by: Dominik Ermel <[email protected]>
Copy link

@nvlsianpu nvlsianpu merged commit 7810a8c into nrfconnect:main Jul 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants