Skip to content

Conversation

@AntonZma
Copy link
Contributor

@AntonZma AntonZma commented Sep 24, 2025

Attempt to destroy builtin key led to the psa_destroy_persistent_key() call without calling psa_save_persistent_key() prior to that.
It may also be the reason for the ITS error related to the 30-bit limit of the psa_key_id_t size since psa_driver_wrapper may require 32-bit key ID.

@AntonZma AntonZma force-pushed the psa-storage-uid-size-fix branch from 5d58204 to 77af2da Compare September 25, 2025 13:29
@AntonZma AntonZma changed the title [nrf noup] library: fix psa_storage_uid_t size [nrf noup] library: fix psa_destroy_key Sep 25, 2025
@AntonZma AntonZma marked this pull request as ready for review September 26, 2025 08:19
@AntonZma AntonZma force-pushed the psa-storage-uid-size-fix branch from 77af2da to 514dc82 Compare September 26, 2025 09:08
@AntonZma AntonZma requested a review from a team September 26, 2025 09:10
psa_destroy_persistent_key() improperly handled built-in keys.
This resulted in ITS call attempted to delete the key that had never
been created by it.
Conditions for key creation and destruction are now aligned.

This is a fixup for the following commit:
[nrf noup] Allow import and destroy of builtin keys

Signed-off-by: Anton Zyma <[email protected]>
Copy link
Contributor

@tomi-font tomi-font left a comment

Choose a reason for hiding this comment

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

Perfect!

Copy link
Contributor

@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

@tomi-font tomi-font merged commit 180fa1b into nrfconnect:main Sep 30, 2025
1 check passed
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