Skip to content

Commit 14dece9

Browse files
committed
[Crypto] Fix build warning/error related to unused function
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
1 parent 1648493 commit 14dece9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/crypto/PSASessionKeystore.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ class HkdfKeyAttributes : public KeyAttributesBase
6868
HkdfKeyAttributes() : KeyAttributesBase(PSA_KEY_TYPE_DERIVE, PSA_ALG_HKDF(PSA_ALG_SHA_256), PSA_KEY_USAGE_DERIVE, 0) {}
6969
};
7070

71+
#if CHIP_CONFIG_ENABLE_ICD_CIP
7172
void SetKeyId(Symmetric128BitsKeyHandle & key, psa_key_id_t newKeyId)
7273
{
7374
auto & KeyId = key.AsMutable<psa_key_id_t>();
7475

7576
KeyId = newKeyId;
7677
}
78+
#endif
7779
} // namespace
7880

7981
CHIP_ERROR PSASessionKeystore::CreateKey(const Symmetric128BitsKeyByteArray & keyMaterial, Aes128KeyHandle & key)

0 commit comments

Comments
 (0)