[ICD] Fix wrong MaxICDClientInfoSize (#32500)
* fix wrong MaxICDClientInfoSize
* Restyled by clang-format
---------
Co-authored-by: Restyled.io <commits@restyled.io>
diff --git a/src/app/icd/client/DefaultICDClientStorage.h b/src/app/icd/client/DefaultICDClientStorage.h
index 7306dba..8a2d441 100644
--- a/src/app/icd/client/DefaultICDClientStorage.h
+++ b/src/app/icd/client/DefaultICDClientStorage.h
@@ -155,8 +155,10 @@
static constexpr size_t MaxICDClientInfoSize()
{
// All the fields added together
- return TLV::EstimateStructOverhead(sizeof(NodeId), sizeof(FabricIndex), sizeof(uint32_t), sizeof(uint32_t),
- sizeof(uint64_t), sizeof(Crypto::Symmetric128BitsKeyByteArray));
+ return TLV::EstimateStructOverhead(sizeof(NodeId), sizeof(FabricIndex), sizeof(uint32_t) /*start_icd_counter*/,
+ sizeof(uint32_t) /*offset*/, sizeof(uint64_t) /*monitored_subject*/,
+ sizeof(Crypto::Symmetric128BitsKeyByteArray) /*aes_key_handle*/,
+ sizeof(Crypto::Symmetric128BitsKeyByteArray) /*hmac_key_handle*/);
}
static constexpr size_t MaxICDCounterSize()