Skip to content

Commit

Permalink
[crypto] Fix initialization of psa key attributes
Browse files Browse the repository at this point in the history
psa_key_attributes_t has to be initialized with PSA_KEY_ATTRIBUTES_INIT.

Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie committed Jan 28, 2025
1 parent f87a50c commit d664d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/PSASessionKeystore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ CHIP_ERROR PSASessionKeystore::PersistICDKey(Symmetric128BitsKeyHandle & key)
{
CHIP_ERROR err;
psa_key_id_t newKeyId = PSA_KEY_ID_NULL;
psa_key_attributes_t attrs;
psa_key_attributes_t attrs = PSA_KEY_ATTRIBUTES_INIT;

psa_get_key_attributes(key.As<psa_key_id_t>(), &attrs);

Expand Down

0 comments on commit d664d62

Please sign in to comment.