Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ICD] Add Check-In payload generation #27615

Merged
Prev Previous commit
Next Next commit
Fix last comment
  • Loading branch information
jepenven-silabs committed Sep 1, 2023
commit f53bd0ec3edcef96786b10ef90b43b98087501cd
9 changes: 9 additions & 0 deletions src/protocols/secure_channel/CheckinMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ class DLL_EXPORT CheckinMessage
static CHIP_ERROR GenerateCheckinMessagePayload(Crypto::Aes128KeyHandle & key, uint32_t counter, const ByteSpan & appData,
MutableByteSpan & output, uint16_t * payloadSize = nullptr);

/**
* @brief Parse Check-in Message payload
*
* @param key Key with which to decrypt the check-in payload
* @param payload The received payload to decrypt and parse
* @param counter The counter value retrieved from the payload
* @param appData The optionnal application data decrypted
* @return CHIP_ERROR
*/
static CHIP_ERROR ParseCheckinMessagePayload(Crypto::Aes128KeyHandle & key, ByteSpan & payload, uint32_t & counter,
MutableByteSpan & appData);

Expand Down