Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>
  • Loading branch information
3 people authored Dec 12, 2023
1 parent cfcde22 commit d255a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/icd/ICDCheckInSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ CHIP_ERROR ICDCheckInSender::SendCheckInMsg(const Transport::PeerAddress & addr)

// Encoded ActiveModeThreshold in littleEndian for Check-In message application data
uint8_t activeModeThresholdBuffer[2] = {};
ByteSpan activeModeThresholdByteSpan(activeModeThresholdBuffer);
Encoding::LittleEndian::Put16((uint8_t *) activeModeThresholdByteSpan.data(),
Encoding::LittleEndian::Put16(activeModeThresholdBuffer,
ICDConfigurationData::GetInstance().GetActiveModeThresholdMs());
ByteSpan activeModeThresholdByteSpan(activeModeThresholdBuffer);

ReturnErrorOnFailure(CheckinMessage::GenerateCheckinMessagePayload(mAes128KeyHandle, mHmac128KeyHandle, mICDCounter,
activeModeThresholdByteSpan, output));
Expand Down
2 changes: 1 addition & 1 deletion src/protocols/secure_channel/tests/TestCheckinMsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void TestCheckin_Generate(nlTestSuite * inSuite, void * inContext)
{
const ccm_128_test_vector & test = *testPtr;

// Two disctint key material buffers to force the PSA unit tests to create two different Key IDs
// Two distinct key material buffers to ensure crypto-hardware-assist with single-usage keys create two different handles.
Symmetric128BitsKeyByteArray aesKeyMaterial;
memcpy(aesKeyMaterial, test.key, test.key_len);

Expand Down

0 comments on commit d255a15

Please sign in to comment.