Skip to content

Commit

Permalink
[Crypto] Fix build warning/error related to unused function
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Le Bourhis <[email protected]>
  • Loading branch information
axelnxp committed Sep 17, 2024
1 parent 9757ce6 commit e73249c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crypto/PSASessionKeystore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ class HkdfKeyAttributes : public KeyAttributesBase
HkdfKeyAttributes() : KeyAttributesBase(PSA_KEY_TYPE_DERIVE, PSA_ALG_HKDF(PSA_ALG_SHA_256), PSA_KEY_USAGE_DERIVE, 0) {}
};

#if CHIP_CONFIG_ENABLE_ICD_CIP
void SetKeyId(Symmetric128BitsKeyHandle & key, psa_key_id_t newKeyId)
{
auto & KeyId = key.AsMutable<psa_key_id_t>();

KeyId = newKeyId;
}
#endif
} // namespace

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

0 comments on commit e73249c

Please sign in to comment.