From d664d625b63e18a1e043303524db7003c8464051 Mon Sep 17 00:00:00 2001 From: Adrian Gielniewski Date: Mon, 27 Jan 2025 16:46:48 +0100 Subject: [PATCH] [crypto] Fix initialization of psa key attributes psa_key_attributes_t has to be initialized with PSA_KEY_ATTRIBUTES_INIT. Signed-off-by: Adrian Gielniewski --- src/crypto/PSASessionKeystore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/PSASessionKeystore.cpp b/src/crypto/PSASessionKeystore.cpp index ece38e74ff..e50b2634a9 100644 --- a/src/crypto/PSASessionKeystore.cpp +++ b/src/crypto/PSASessionKeystore.cpp @@ -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(), &attrs);