Skip to content

Commit

Permalink
Change initialize values in KeySet to initilize only start_time in Ep…
Browse files Browse the repository at this point in the history
…ochKey
  • Loading branch information
DamMicSzm committed Jul 31, 2023
1 parent 9827bca commit c8a89ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/credentials/GroupDataProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class GroupDataProvider
{
static constexpr size_t kLengthBytes = Crypto::CHIP_CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES;
// Validity start time in microseconds since 2000-01-01T00:00:00 UTC ("the Epoch")
uint64_t start_time;
uint64_t start_time = 0;
// Actual key bits. Depending on context, it may be a raw epoch key (as seen within `SetKeySet` calls)
// or it may be the derived operational group key (as seen in any other usage).
uint8_t key[kLengthBytes];
Expand All @@ -143,7 +143,7 @@ class GroupDataProvider
{}

// The actual keys for the group key set
EpochKey epoch_keys[kEpochKeysMax] = {};
EpochKey epoch_keys[kEpochKeysMax];
// Logical id provided by the Administrator that configured the entry
uint16_t keyset_id = 0;
// Security policy to use for groups that use this keyset
Expand Down Expand Up @@ -202,7 +202,7 @@ class GroupDataProvider
virtual ~GroupDataProvider() = default;

// Not copyable
GroupDataProvider(const GroupDataProvider &) = delete;
GroupDataProvider(const GroupDataProvider &) = delete;
GroupDataProvider & operator=(const GroupDataProvider &) = delete;

uint16_t GetMaxGroupsPerFabric() const { return mMaxGroupsPerFabric; }
Expand Down

0 comments on commit c8a89ac

Please sign in to comment.