-
Notifications
You must be signed in to change notification settings - Fork 232
[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
Conversation
boot/bootutil/src/ed25519_psa.c
Outdated
psa_status_t status = psa_crypto_init(); | ||
|
||
if (status != PSA_SUCCESS) { | ||
BOOT_LOG_ERR("PSA crypto init failed with error %d", status); |
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.
Isn't psa_crypto_init()
already called way before this?
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.
Yeah, actually it is. Probably.
7e3b7bf
to
73564a6
Compare
boot/bootutil/src/ed25519_psa.c
Outdated
|
||
void nrf_crypto_keys_housekeeping(void) | ||
{ | ||
psa_status_t status = PSA_ERROR_BAD_STATE; |
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.
Why do we still initialize status
?
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.
It does not hurt, that much.
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.
probably takes some ROM bytes 🙃 but yeah do what you want really just pointing it out
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.
Eh. There you have, happy now ?
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.
😄 very happy
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.
LGTM
Lock KMU keys before passing execution to application. Signed-off-by: Dominik Ermel <[email protected]>
|
Lock KMU keys before passing execution to application.