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

[CASESession] refactoring and improving testability of Sigma1 sending and handling, and Sigma2 Sending #36679

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Alami-Amine
Copy link
Contributor

@Alami-Amine Alami-Amine commented Nov 29, 2024

  • Refactoring part of CASESession to be more fuzzable/testable by making it the structure more modular and closer to a data-in data-out design.

Changes in the PR

Sending Sigma1

  1. All TLV encoding for Sigma1 has been encapsulated into the new EncodeSigma1() method; removing the bits from Networking and Messaging layers --> that way it could be tested without needing SessionManager and ExchangeContext.

HandleSigma1_and_SendSigma2

  1. HandleSigma1_and_SendSigma2:

    • previously, this method was primarily a wrapper to HandleSigma1(); which in turn handled with all the validation and parsing of Sigma1 as well as the generation, and logic involved in sending Sigma2 or Sigma2Resume...in a very sequential manner.

    • Fix: This was changed to be more modular, by factoring out the Sending Sigma2 calls out of HandleSigma1(), and encapsulating it in a switch-case statement, and then breaking down Sigma2 Sending methods into two more methods: one for generating and preparing the Logic for the Sigma2, and one for Encoding it into TLV-format.

  2. ParseSigma1(): made the output in the form of a struct, and decoupling it from exchange context, which was moved to HandleSigma1()

  3. EncodeSigma2() and EncodeSigma2Resume(): created and refactored into them the TLV encoding for the final Sigma2/Sigma2Resume messages that will be sent.

  4. PrepareSigma2() and PrepareSigma2Resume() : refactored into them all the steps that happen before Encoding the Sigma2/Sigma2Resume messages.

Testing

  • Added Unit Tests, CI Validation

Copy link

Review changes with  SemanticDiff

@Alami-Amine Alami-Amine force-pushed the AA/CASERefactorSigma1 branch from 3b59b16 to 13a8f48 Compare November 29, 2024 16:58
Copy link

github-actions bot commented Nov 29, 2024

PR #36679: Size comparison from d37eae1 to 13a8f48

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section d37eae1 13a8f48 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1352938 1353296 358 0.0
RAM 104104 104104 0 0.0
bl702 lighting-app bl702+eth FLASH 651536 651634 98 0.0
RAM 25345 25345 0 0.0
bl702+wifi FLASH 829120 829218 98 0.0
RAM 14085 14085 0 0.0
bl706+mfd+rpc+littlefs FLASH 1057314 1057412 98 0.0
RAM 23933 23933 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 978688 978786 98 0.0
RAM 16572 16572 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 839576 839624 48 0.0
RAM 123656 123656 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 825116 825164 48 0.0
RAM 125536 125536 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 771864 771904 40 0.0
RAM 114004 114004 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 756052 756092 40 0.0
RAM 114220 114220 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 630686 630790 104 0.0
RAM 205808 205808 0 0.0
lock CC3235SF_LAUNCHXL FLASH 669298 669402 104 0.0
RAM 205952 205952 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 681249 681297 48 0.0
RAM 78716 78716 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 701101 701149 48 0.0
RAM 81348 81348 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 701101 701149 48 0.0
RAM 81348 81348 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 658037 658085 48 0.0
RAM 73784 73784 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 617809 617857 48 0.0
RAM 71692 71692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 637437 637485 48 0.0
RAM 74244 74244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 637437 637485 48 0.0
RAM 74244 74244 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 637201 637249 48 0.0
RAM 74708 74708 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 656917 656965 48 0.0
RAM 77260 77260 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 656917 656965 48 0.0
RAM 77260 77260 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 613669 613717 48 0.0
RAM 68796 68796 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 633521 633569 48 0.0
RAM 71436 71436 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 633521 633569 48 0.0
RAM 71436 71436 0 0.0
efr32 lock-app BRD4187C FLASH 932116 932148 32 0.0
RAM 160180 160180 0 0.0
BRD4338a FLASH 745920 746008 88 0.0
RAM 233312 233312 0 0.0
window-app BRD4187C FLASH 1024480 1024576 96 0.0
RAM 128284 128284 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1543258 1543364 106 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116296 116296 0 0.0
FLASH 1550002 1550006 4 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2713573 2713943 370 0.0
RAM 129768 129768 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 6005592 6007556 1964 0.0
RAM 523512 523512 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5343400 5345396 1996 0.0
RAM 242568 242568 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4682886 4684882 1996 0.0
RAM 218496 218496 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12845674 12847670 1996 0.0
RAM 582314 582314 0 0.0
chip-tool-ipv6only arm64 unknown 21312 21312 0 0.0
FLASH 10979680 10981008 1328 0.0
RAM 633232 633232 0 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11249739 11251735 1996 0.0
RAM 582690 582690 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4507142 4509106 1964 0.0
RAM 205504 205504 0 0.0
fabric-sync debug unknown 4936 4936 0 0.0
FLASH 5603733 5605701 1968 0.0
RAM 472488 472488 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5619729 5621697 1968 0.0
RAM 228760 228760 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4732240 4734204 1964 0.0
RAM 204744 204744 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4357994 4359958 1964 0.0
RAM 198416 198416 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4497034 4498998 1964 0.0
RAM 203000 203000 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3028413 3028797 384 0.0
RAM 160456 160456 0 0.0
thermostat-no-ble arm64 unknown 9520 9520 0 0.0
FLASH 4102464 4103792 1328 0.0
RAM 243040 243040 0 0.0
tv-app debug unknown 5704 5704 0 0.0
FLASH 5956245 5958197 1952 0.0
RAM 596000 596000 0 0.0
tv-casting-app debug unknown 5288 5288 0 0.0
FLASH 11052557 11054525 1968 0.0
RAM 692120 692120 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 917380 917416 36 0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 889868 889944 76 0.0
RAM 141479 141479 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 851548 851584 36 0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 585264 585296 32 0.0
RAM 71072 71072 0 0.0
mcxw71+release FLASH 599800 599840 40 0.0
RAM 63168 63168 0 0.0
light k32w0+release FLASH 612204 612252 48 0.0
RAM 70464 70464 0 0.0
k32w1+release FLASH 686344 686384 40 0.0
RAM 48792 48792 0 0.0
lock mcxw71+release FLASH 762680 762720 40 0.0
RAM 70828 70828 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646068 1646164 96 0.0
RAM 212088 212088 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1553836 1553932 96 0.0
RAM 208888 208888 0 0.0
light cy8ckit_062s2_43012 FLASH 1469108 1469204 96 0.0
RAM 200872 200872 0 0.0
lock cy8ckit_062s2_43012 FLASH 1466836 1466932 96 0.0
RAM 225232 225232 0 0.0
qpg lighting-app qpg6105+debug FLASH 663736 663776 40 0.0
RAM 105400 105400 0 0.0
lock-app qpg6105+debug FLASH 621572 621612 40 0.0
RAM 99860 99860 0 0.0
stm32 light STM32WB5MM-DK FLASH 484492 484532 40 0.0
RAM 144864 144864 0 0.0
telink bridge-app tlsr9258a FLASH 682594 682690 96 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 623004 623100 96 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 764510 764604 94 0.0
RAM 50212 50212 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710424 710520 96 0.0
RAM 73496 73496 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 627530 627626 96 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 813458 813554 96 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4980 4980 0 0.0
FLASH 1731832 1731880 48 0.0
RAM 90724 90724 0 0.0
chip-tool-ubsan arm unknown 10792 10792 0 0.0
FLASH 17965582 17967790 2208 0.0
RAM 7838600 7839708 1108 0.0

Copy link

github-actions bot commented Dec 2, 2024

PR #36679: Size comparison from d37eae1 to 224a626

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section d37eae1 224a626 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1352938 1353244 306 0.0
RAM 104104 104104 0 0.0
bl702 lighting-app bl702+eth FLASH 651536 651568 32 0.0
RAM 25345 25345 0 0.0
bl702+wifi FLASH 829120 829152 32 0.0
RAM 14085 14085 0 0.0
bl706+mfd+rpc+littlefs FLASH 1057314 1057346 32 0.0
RAM 23933 23933 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 978688 978720 32 0.0
RAM 16572 16572 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 839576 839584 8 0.0
RAM 123656 123656 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 825116 825124 8 0.0
RAM 125536 125536 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 771864 771848 -16 -0.0
RAM 114004 114004 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 756052 756028 -24 -0.0
RAM 114220 114220 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 630686 630758 72 0.0
RAM 205808 205808 0 0.0
lock CC3235SF_LAUNCHXL FLASH 669298 669370 72 0.0
RAM 205952 205952 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 681249 681241 -8 -0.0
RAM 78716 78716 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 701101 701093 -8 -0.0
RAM 81348 81348 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 701101 701093 -8 -0.0
RAM 81348 81348 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 658037 658029 -8 -0.0
RAM 73784 73784 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 617809 617809 0 0.0
RAM 71692 71692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 637437 637437 0 0.0
RAM 74244 74244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 637437 637437 0 0.0
RAM 74244 74244 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 637201 637201 0 0.0
RAM 74708 74708 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 656917 656917 0 0.0
RAM 77260 77260 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 656917 656917 0 0.0
RAM 77260 77260 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 613669 613669 0 0.0
RAM 68796 68796 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 633521 633521 0 0.0
RAM 71436 71436 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 633521 633521 0 0.0
RAM 71436 71436 0 0.0
efr32 lock-app BRD4187C FLASH 932116 932084 -32 -0.0
RAM 160180 160180 0 0.0
BRD4338a FLASH 745920 745976 56 0.0
RAM 233312 233312 0 0.0
window-app BRD4187C FLASH 1024480 1024544 64 0.0
RAM 128284 128284 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1543258 1543296 38 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116296 116296 0 0.0
FLASH 1550002 1549986 -16 -0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2713573 2713965 392 0.0
RAM 129768 129768 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 6005592 6007572 1980 0.0
RAM 523512 523512 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5343400 5345412 2012 0.0
RAM 242568 242568 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4682886 4684898 2012 0.0
RAM 218496 218432 -64 -0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12845674 12847686 2012 0.0
RAM 582314 582314 0 0.0
chip-tool-ipv6only arm64 unknown 21312 21312 0 0.0
FLASH 10979680 10981152 1472 0.0
RAM 633232 633232 0 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11249739 11251751 2012 0.0
RAM 582690 582690 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4507142 4509122 1980 0.0
RAM 205504 205504 0 0.0
fabric-sync debug unknown 4936 4936 0 0.0
FLASH 5603733 5605765 2032 0.0
RAM 472488 472488 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5619729 5621713 1984 0.0
RAM 228760 228760 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4732240 4734220 1980 0.0
RAM 204744 204744 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4357994 4359974 1980 0.0
RAM 198416 198416 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4497034 4499014 1980 0.0
RAM 203000 203000 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3028413 3028861 448 0.0
RAM 160456 160456 0 0.0
thermostat-no-ble arm64 unknown 9520 9520 0 0.0
FLASH 4102464 4103936 1472 0.0
RAM 243040 243040 0 0.0
tv-app debug unknown 5704 5704 0 0.0
FLASH 5956245 5958261 2016 0.0
RAM 596000 596000 0 0.0
tv-casting-app debug unknown 5288 5288 0 0.0
FLASH 11052557 11054589 2032 0.0
RAM 692120 692120 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 917380 917360 -20 -0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 889868 889928 60 0.0
RAM 141479 141479 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 851548 851528 -20 -0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 585264 585264 0 0.0
RAM 71072 71072 0 0.0
mcxw71+release FLASH 599800 599784 -16 -0.0
RAM 63168 63168 0 0.0
light k32w0+release FLASH 612204 612188 -16 -0.0
RAM 70464 70464 0 0.0
k32w1+release FLASH 686344 686320 -24 -0.0
RAM 48792 48792 0 0.0
lock mcxw71+release FLASH 762680 762672 -8 -0.0
RAM 70828 70828 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646068 1646132 64 0.0
RAM 212088 212088 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1553836 1553900 64 0.0
RAM 208888 208888 0 0.0
light cy8ckit_062s2_43012 FLASH 1469108 1469172 64 0.0
RAM 200872 200872 0 0.0
lock cy8ckit_062s2_43012 FLASH 1466836 1466900 64 0.0
RAM 225232 225232 0 0.0
qpg lighting-app qpg6105+debug FLASH 663736 663720 -16 -0.0
RAM 105400 105400 0 0.0
lock-app qpg6105+debug FLASH 621572 621556 -16 -0.0
RAM 99860 99860 0 0.0
stm32 light STM32WB5MM-DK FLASH 484492 484476 -16 -0.0
RAM 144864 144864 0 0.0
telink bridge-app tlsr9258a FLASH 682594 682622 28 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 623004 623032 28 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 764510 764544 34 0.0
RAM 50212 50212 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710424 710452 28 0.0
RAM 73496 73496 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 627530 627558 28 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 813458 813486 28 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4980 4980 0 0.0
FLASH 1731832 1731904 72 0.0
RAM 90724 90724 0 0.0
chip-tool-ubsan arm unknown 10792 10792 0 0.0
FLASH 17965582 17967798 2216 0.0
RAM 7838600 7839724 1124 0.0

@Alami-Amine Alami-Amine marked this pull request as ready for review December 2, 2024 19:36
@Alami-Amine Alami-Amine marked this pull request as draft December 2, 2024 19:39
@Alami-Amine Alami-Amine force-pushed the AA/CASERefactorSigma1 branch from cf3ac6a to a2624fa Compare December 10, 2024 09:47
Copy link

github-actions bot commented Dec 10, 2024

PR #36679: Size comparison from 5d42d92 to a2624fa

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 5d42d92 a2624fa change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1353308 1353972 664 0.0
RAM 104112 104112 0 0.0
bl702 lighting-app bl702+eth FLASH 651816 652124 308 0.0
RAM 25353 25353 0 0.0
bl702+wifi FLASH 829144 829452 308 0.0
RAM 14093 14093 0 0.0
bl706+mfd+rpc+littlefs FLASH 1057594 1057902 308 0.0
RAM 23933 23933 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 978968 979276 308 0.0
RAM 16596 16596 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 839736 839956 220 0.0
RAM 123664 123688 24 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 825276 825488 212 0.0
RAM 125552 125576 24 0.0
pump-app LP_EM_CC1354P10_6 FLASH 772064 772256 192 0.0
RAM 114020 114044 24 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 756260 756460 200 0.0
RAM 114228 114252 24 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 631026 631334 308 0.0
RAM 205824 205848 24 0.0
lock CC3235SF_LAUNCHXL FLASH 669622 669930 308 0.0
RAM 205968 205992 24 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 681473 681689 216 0.0
RAM 78724 78724 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 701325 701541 216 0.0
RAM 81364 81364 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 701325 701541 216 0.0
RAM 81364 81364 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 658261 658477 216 0.0
RAM 73792 73792 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 618033 618249 216 0.0
RAM 71708 71708 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 637661 637877 216 0.0
RAM 74252 74252 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 637661 637877 216 0.0
RAM 74252 74252 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 637433 637649 216 0.0
RAM 74724 74724 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 657149 657365 216 0.0
RAM 77268 77268 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 657149 657365 216 0.0
RAM 77268 77268 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 613901 614117 216 0.0
RAM 68812 68812 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 633753 633969 216 0.0
RAM 71444 71444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 633753 633969 216 0.0
RAM 71444 71444 0 0.0
efr32 lock-app BRD4187C FLASH 932308 932500 192 0.0
RAM 160192 160216 24 0.0
BRD4338a FLASH 746112 746424 312 0.0
RAM 233320 233320 0 0.0
window-app BRD4187C FLASH 1024752 1025072 320 0.0
RAM 128296 128320 24 0.0
esp32 all-clusters-app c3devkit DRAM 95360 95360 0 0.0
FLASH 1543466 1543788 322 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116312 116312 0 0.0
FLASH 1550118 1550214 96 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2715045 2716421 1376 0.1
RAM 129800 129800 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 6007046 6013220 6174 0.1
RAM 523544 523544 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5344786 5350928 6142 0.1
RAM 242600 242600 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4684354 4690496 6142 0.1
RAM 218416 218416 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12847594 12853656 6062 0.0
RAM 582474 582474 0 0.0
chip-tool-ipv6only arm64 unknown 21344 21344 0 0.0
FLASH 10982304 10986928 4624 0.0
RAM 633384 633408 24 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11254395 11260489 6094 0.1
RAM 582850 582850 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4509930 4516104 6174 0.1
RAM 205600 205600 0 0.0
fabric-sync debug unknown 4936 4936 0 0.0
FLASH 5607797 5613941 6144 0.1
RAM 472584 472584 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5621057 5627201 6144 0.1
RAM 228792 228792 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4733594 4739736 6142 0.1
RAM 204776 204776 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4359332 4365506 6174 0.1
RAM 198448 198448 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4498324 4504498 6174 0.1
RAM 203032 203032 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3030061 3031437 1376 0.0
RAM 160424 160424 0 0.0
thermostat-no-ble arm64 unknown 9536 9536 0 0.0
FLASH 4103456 4108080 4624 0.1
RAM 243040 243064 24 0.0
tv-app debug unknown 5704 5704 0 0.0
FLASH 5958757 5964933 6176 0.1
RAM 596016 596016 0 0.0
tv-casting-app debug unknown 5288 5288 0 0.0
FLASH 11054349 11060493 6144 0.1
RAM 692152 692152 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 917588 917808 220 0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 890096 890244 148 0.0
RAM 141487 141487 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 851732 851952 220 0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 585408 585648 240 0.0
RAM 71080 71080 0 0.0
mcxw71+release FLASH 600016 600232 216 0.0
RAM 63176 63176 0 0.0
light k32w0+release FLASH 612364 612604 240 0.0
RAM 70472 70472 0 0.0
k32w1+release FLASH 686552 686768 216 0.0
RAM 48808 48808 0 0.0
lock mcxw71+release FLASH 762896 763120 224 0.0
RAM 70844 70844 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646348 1646652 304 0.0
RAM 212104 212128 24 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1554092 1554396 304 0.0
RAM 208904 208928 24 0.0
light cy8ckit_062s2_43012 FLASH 1469404 1469724 320 0.0
RAM 200880 200904 24 0.0
lock cy8ckit_062s2_43012 FLASH 1467148 1467452 304 0.0
RAM 225240 225264 24 0.0
qpg lighting-app qpg6105+debug FLASH 663976 664208 232 0.0
RAM 105424 105424 0 0.0
lock-app qpg6105+debug FLASH 621772 621996 224 0.0
RAM 99868 99868 0 0.0
stm32 light STM32WB5MM-DK FLASH 484696 484924 228 0.0
RAM 144880 144880 0 0.0
telink bridge-app tlsr9258a FLASH 682888 683230 342 0.1
RAM 91208 91208 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 623318 623660 342 0.1
RAM 31440 31440 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 772148 772490 342 0.0
RAM 49300 49300 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710742 711084 342 0.0
RAM 73504 73504 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 627784 628126 342 0.1
RAM 142140 142140 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 813776 814118 342 0.0
RAM 99684 99684 0 0.0
tizen all-clusters-app arm unknown 4988 4988 0 0.0
FLASH 1732480 1732772 292 0.0
RAM 90744 90752 8 0.0
chip-tool-ubsan arm unknown 10804 10804 0 0.0
FLASH 17969438 17974990 5552 0.0
RAM 7840748 7843652 2904 0.0

@Alami-Amine Alami-Amine force-pushed the AA/CASERefactorSigma1 branch 2 times, most recently from a70c7c5 to 673c53b Compare December 11, 2024 18:58
Copy link

github-actions bot commented Dec 11, 2024

PR #36679: Size comparison from 41a9dea to 673c53b

Full report (11 builds for cc13x4_26x4, cc32xx, qpg, stm32, tizen)
platform target config section 41a9dea 673c53b change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 839760 840012 252 0.0
RAM 123664 123688 24 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 825308 825552 244 0.0
RAM 125552 125576 24 0.0
pump-app LP_EM_CC1354P10_6 FLASH 772096 772320 224 0.0
RAM 114020 114044 24 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 756284 756516 232 0.0
RAM 114228 114252 24 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 631050 631382 332 0.1
RAM 205824 205848 24 0.0
lock CC3235SF_LAUNCHXL FLASH 669646 669978 332 0.0
RAM 205968 205992 24 0.0
qpg lighting-app qpg6105+debug FLASH 664008 664264 256 0.0
RAM 105424 105424 0 0.0
lock-app qpg6105+debug FLASH 621796 622060 264 0.0
RAM 99868 99868 0 0.0
stm32 light STM32WB5MM-DK FLASH 484720 484980 260 0.1
RAM 144880 144880 0 0.0
tizen all-clusters-app arm unknown 4988 4988 0 0.0
FLASH 1732528 1732944 416 0.0
RAM 90744 90752 8 0.0
chip-tool-ubsan arm unknown 10804 10804 0 0.0
FLASH 17969958 17975862 5904 0.0
RAM 7840924 7843952 3028 0.0

@Alami-Amine Alami-Amine force-pushed the AA/CASERefactorSigma1 branch from 673c53b to 7d0b4a6 Compare December 11, 2024 19:28
Copy link

github-actions bot commented Dec 11, 2024

PR #36679: Size comparison from 41a9dea to 7d0b4a6

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 41a9dea 7d0b4a6 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1353340 1354032 692 0.1
RAM 104112 104112 0 0.0
bl702 lighting-app bl702+eth FLASH 651826 652154 328 0.1
RAM 25353 25353 0 0.0
bl702+wifi FLASH 829154 829482 328 0.0
RAM 14093 14093 0 0.0
bl706+mfd+rpc+littlefs FLASH 1057626 1057954 328 0.0
RAM 23933 23933 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 979000 979328 328 0.0
RAM 16596 16596 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 839760 840012 252 0.0
RAM 123664 123688 24 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 825308 825552 244 0.0
RAM 125552 125576 24 0.0
pump-app LP_EM_CC1354P10_6 FLASH 772096 772320 224 0.0
RAM 114020 114044 24 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 756284 756516 232 0.0
RAM 114228 114252 24 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 631050 631382 332 0.1
RAM 205824 205848 24 0.0
lock CC3235SF_LAUNCHXL FLASH 669646 669978 332 0.0
RAM 205968 205992 24 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 681505 681753 248 0.0
RAM 78724 78724 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 701349 701597 248 0.0
RAM 81364 81364 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 701349 701597 248 0.0
RAM 81364 81364 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 658293 658541 248 0.0
RAM 73792 73792 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 618065 618313 248 0.0
RAM 71708 71708 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 637693 637941 248 0.0
RAM 74252 74252 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 637693 637941 248 0.0
RAM 74252 74252 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 637465 637713 248 0.0
RAM 74724 74724 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 657173 657421 248 0.0
RAM 77268 77268 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 657173 657421 248 0.0
RAM 77268 77268 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 613925 614173 248 0.0
RAM 68812 68812 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 633777 634025 248 0.0
RAM 71444 71444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 633777 634025 248 0.0
RAM 71444 71444 0 0.0
efr32 lock-app BRD4187C FLASH 932340 932532 192 0.0
RAM 160192 160216 24 0.0
BRD4338a FLASH 746144 746472 328 0.0
RAM 233320 233320 0 0.0
window-app BRD4187C FLASH 1024784 1025136 352 0.0
RAM 128296 128320 24 0.0
esp32 all-clusters-app c3devkit DRAM 95360 95360 0 0.0
FLASH 1543480 1543822 342 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116312 116312 0 0.0
FLASH 1550134 1550242 108 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2715063 2716671 1608 0.1
RAM 129800 129800 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 6007064 6013468 6404 0.1
RAM 523544 523544 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5344804 5351176 6372 0.1
RAM 242600 242600 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4684372 4690744 6372 0.1
RAM 218416 218416 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12847832 12854124 6292 0.0
RAM 582474 582474 0 0.0
chip-tool-ipv6only arm64 unknown 21352 21352 0 0.0
FLASH 10982560 10987424 4864 0.0
RAM 633392 633416 24 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11255157 11261481 6324 0.1
RAM 582850 582850 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4509948 4516352 6404 0.1
RAM 205600 205600 0 0.0
fabric-sync debug unknown 4936 4936 0 0.0
FLASH 5608837 5615205 6368 0.1
RAM 472584 472584 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5621073 5627441 6368 0.1
RAM 228792 228792 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4733612 4739984 6372 0.1
RAM 204776 204776 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4359350 4365754 6404 0.1
RAM 198448 198448 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4498342 4504746 6404 0.1
RAM 203032 203032 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3030077 3031693 1616 0.1
RAM 160424 160424 0 0.0
thermostat-no-ble arm64 unknown 9536 9536 0 0.0
FLASH 4103472 4108352 4880 0.1
RAM 243040 243064 24 0.0
tv-app debug unknown 5704 5704 0 0.0
FLASH 5958773 5965173 6400 0.1
RAM 596016 596016 0 0.0
tv-casting-app debug unknown 5288 5288 0 0.0
FLASH 11054589 11060957 6368 0.1
RAM 692184 692184 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 917616 917864 248 0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 890104 890268 164 0.0
RAM 141487 141487 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 851760 852012 252 0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 585440 585712 272 0.0
RAM 71080 71080 0 0.0
mcxw71+release FLASH 600048 600296 248 0.0
RAM 63176 63176 0 0.0
light k32w0+release FLASH 612396 612668 272 0.0
RAM 70472 70472 0 0.0
k32w1+release FLASH 686576 686832 256 0.0
RAM 48808 48808 0 0.0
lock mcxw71+release FLASH 762928 763184 256 0.0
RAM 70844 70844 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646364 1646700 336 0.0
RAM 212104 212128 24 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1554108 1554444 336 0.0
RAM 208904 208928 24 0.0
light cy8ckit_062s2_43012 FLASH 1469436 1469772 336 0.0
RAM 200880 200904 24 0.0
lock cy8ckit_062s2_43012 FLASH 1467164 1467500 336 0.0
RAM 225240 225264 24 0.0
qpg lighting-app qpg6105+debug FLASH 664008 664264 256 0.0
RAM 105424 105424 0 0.0
lock-app qpg6105+debug FLASH 621796 622060 264 0.0
RAM 99868 99868 0 0.0
stm32 light STM32WB5MM-DK FLASH 484720 484980 260 0.1
RAM 144880 144880 0 0.0
telink bridge-app tlsr9258a FLASH 682920 683280 360 0.1
RAM 91208 91208 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 623350 623710 360 0.1
RAM 31440 31440 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 772180 772540 360 0.0
RAM 49300 49300 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710774 711134 360 0.1
RAM 73504 73504 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 627794 628154 360 0.1
RAM 142140 142140 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 813808 814168 360 0.0
RAM 99684 99684 0 0.0
tizen all-clusters-app arm unknown 4988 4988 0 0.0
FLASH 1732528 1732944 416 0.0
RAM 90744 90752 8 0.0
chip-tool-ubsan arm unknown 10804 10804 0 0.0
FLASH 17969958 17975862 5904 0.0
RAM 7840924 7843952 3028 0.0

@Alami-Amine Alami-Amine force-pushed the AA/CASERefactorSigma1 branch from 0013419 to 6c13347 Compare December 12, 2024 12:47
Copy link

github-actions bot commented Dec 12, 2024

PR #36679: Size comparison from 75ab4c9 to 6c13347

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 75ab4c9 6c13347 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1353338 1354048 710 0.1
RAM 104112 104112 0 0.0
bl702 lighting-app bl702+eth FLASH 651826 652168 342 0.1
RAM 25353 25353 0 0.0
bl702+wifi FLASH 829154 829496 342 0.0
RAM 14093 14093 0 0.0
bl706+mfd+rpc+littlefs FLASH 1057624 1057966 342 0.0
RAM 23933 23933 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 978998 979340 342 0.0
RAM 16596 16596 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 839760 840028 268 0.0
RAM 123664 123688 24 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 825308 825568 260 0.0
RAM 125552 125576 24 0.0
pump-app LP_EM_CC1354P10_6 FLASH 772096 772336 240 0.0
RAM 114020 114044 24 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 756284 756532 248 0.0
RAM 114228 114252 24 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 631050 631398 348 0.1
RAM 205824 205848 24 0.0
lock CC3235SF_LAUNCHXL FLASH 669646 669994 348 0.1
RAM 205968 205992 24 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 681505 681769 264 0.0
RAM 78724 78724 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 701349 701613 264 0.0
RAM 81364 81364 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 701349 701613 264 0.0
RAM 81364 81364 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 658293 658557 264 0.0
RAM 73792 73792 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 618065 618329 264 0.0
RAM 71708 71708 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 637693 637957 264 0.0
RAM 74252 74252 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 637693 637957 264 0.0
RAM 74252 74252 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 637465 637729 264 0.0
RAM 74724 74724 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 657173 657437 264 0.0
RAM 77268 77268 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 657173 657437 264 0.0
RAM 77268 77268 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 613925 614189 264 0.0
RAM 68812 68812 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 633777 634041 264 0.0
RAM 71444 71444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 633777 634041 264 0.0
RAM 71444 71444 0 0.0
efr32 lock-app BRD4187C FLASH 932340 932564 224 0.0
RAM 160192 160216 24 0.0
BRD4338a FLASH 746144 746488 344 0.0
RAM 233320 233320 0 0.0
window-app BRD4187C FLASH 1024784 1025168 384 0.0
RAM 128296 128320 24 0.0
esp32 all-clusters-app c3devkit DRAM 95360 95360 0 0.0
FLASH 1543480 1543836 356 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116312 116312 0 0.0
FLASH 1550134 1550254 120 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2715063 2716773 1710 0.1
RAM 129800 129800 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 6007064 6013570 6506 0.1
RAM 523544 523544 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5344804 5351278 6474 0.1
RAM 242600 242600 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4684372 4690846 6474 0.1
RAM 218416 218416 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12847958 12854352 6394 0.0
RAM 582474 582474 0 0.0
chip-tool-ipv6only arm64 unknown 21352 21352 0 0.0
FLASH 10982688 10987648 4960 0.0
RAM 633392 633416 24 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11255283 11261709 6426 0.1
RAM 582850 582850 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4509948 4516454 6506 0.1
RAM 205600 205600 0 0.0
fabric-sync debug unknown 4936 4936 0 0.0
FLASH 5610053 5616517 6464 0.1
RAM 472584 472584 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5621073 5627537 6464 0.1
RAM 228792 228792 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4733612 4740086 6474 0.1
RAM 204776 204776 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4359350 4365856 6506 0.1
RAM 198448 198448 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4498342 4504848 6506 0.1
RAM 203032 203032 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3030077 3031789 1712 0.1
RAM 160424 160424 0 0.0
thermostat-no-ble arm64 unknown 9536 9536 0 0.0
FLASH 4103472 4108448 4976 0.1
RAM 243040 243064 24 0.0
tv-app debug unknown 5704 5704 0 0.0
FLASH 5958901 5965397 6496 0.1
RAM 596016 596016 0 0.0
tv-casting-app debug unknown 5288 5288 0 0.0
FLASH 11054589 11061069 6480 0.1
RAM 692184 692184 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 917616 917880 264 0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 890104 890284 180 0.0
RAM 141487 141487 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 851760 852024 264 0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 585440 585728 288 0.0
RAM 71080 71080 0 0.0
mcxw71+release FLASH 600048 600312 264 0.0
RAM 63176 63176 0 0.0
light k32w0+release FLASH 612396 612684 288 0.0
RAM 70472 70472 0 0.0
k32w1+release FLASH 686576 686848 272 0.0
RAM 48808 48808 0 0.0
lock mcxw71+release FLASH 762928 763200 272 0.0
RAM 70844 70844 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646364 1646716 352 0.0
RAM 212104 212128 24 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1554108 1554460 352 0.0
RAM 208904 208928 24 0.0
light cy8ckit_062s2_43012 FLASH 1469436 1469788 352 0.0
RAM 200880 200904 24 0.0
lock cy8ckit_062s2_43012 FLASH 1467164 1467516 352 0.0
RAM 225240 225264 24 0.0
qpg lighting-app qpg6105+debug FLASH 664008 664280 272 0.0
RAM 105424 105424 0 0.0
lock-app qpg6105+debug FLASH 621796 622076 280 0.0
RAM 99868 99868 0 0.0
stm32 light STM32WB5MM-DK FLASH 484720 484996 276 0.1
RAM 144880 144880 0 0.0
telink bridge-app tlsr9258a FLASH 682920 683294 374 0.1
RAM 91208 91208 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 623350 623724 374 0.1
RAM 31440 31440 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 772180 772554 374 0.0
RAM 49300 49300 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710774 711148 374 0.1
RAM 73504 73504 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 627794 628168 374 0.1
RAM 142140 142140 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 813808 814182 374 0.0
RAM 99684 99684 0 0.0
tizen all-clusters-app arm unknown 4988 4988 0 0.0
FLASH 1732528 1732992 464 0.0
RAM 90744 90752 8 0.0
chip-tool-ubsan arm unknown 10804 10804 0 0.0
FLASH 17970638 17976878 6240 0.0
RAM 7841352 7844540 3188 0.0

@Alami-Amine Alami-Amine changed the title JUST TESTING [CASESession] refactoring and improving testability of Sigma1 sending and handling, and Sigma2 Sending Dec 12, 2024
@Alami-Amine Alami-Amine marked this pull request as ready for review December 12, 2024 13:49
Comment on lines +973 to +974
// TODO should I keep this?
case Step::kSendStatusReport:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. If kSendStatusReport is the outcome from Sigma1, it means there is a status report to send, and we need to send it:


        // FindLocalNodeFromDestinationId returns CHIP_ERROR_KEY_NOT_FOUND if validation of DestinationID fails, which will trigger
        // status Report with ProtocolCode = NoSharedTrustRoots.
        mNextStep = Step::kSendStatusReport;

So I recommend moving the following block in kSendStatusReport case:

    if (err == CHIP_ERROR_KEY_NOT_FOUND)
    {
        SendStatusReport(mExchangeCtxt, kProtocolCodeNoSharedRoot);
        mState = State::kInitialized;
    }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I made the case Step::kSendStatusReport automatically redirect us to exit through ExitNow() and kept the SendStatusReport with NoSharedTrustRoots in exit because:

  • Technically, it is possible to get a CHIP_ERROR_KEY_NOT_FOUND in other Code Paths than the one you quoted (where I defined the NextStep); such as through calls to SignWithOpKeypair, called in PrepareSigma2().

  • I don't know if getting to that codepath is impossible or not, so I thought I'll just keep that SendStatusReport in exit and redirect that case to exit (which does make the NextStep kind of useless.

  • What do you think?

Comment on lines +1142 to +1143
// FindLocalNodeFromDestinationId returns CHIP_ERROR_KEY_NOT_FOUND if validation of DestinationID fails, which will trigger
// status Report with ProtocolCode = NoSharedTrustRoots.
Copy link
Contributor

@tcarmelveilleux tcarmelveilleux Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this always true? We need to make sure that SendStatusReport always at least returns invalid parameters where needed (or nothing at all in some cases). This comment indicates something brittle about the implementation, which means we should try to ensure the error is CHIP_ERROR_KEY_NOT_FOUND if FindLocalNodeFromDestinationId failed, but perhaps a log of error be done to help diagnose at the DUT.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Actually my comment isn't correct, we can get other return values such as CHIP_ERROR_INCORRECT_STATE.
  • are you suggesting that we add a ChipLogError with some more parameters to be added inside FindLocalNodeFromDestinationId when found == false, or do you want to modify the SendStatusReport itself to communicate those?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChipLogError with some more parameters to be added inside FindLocalNodeFromDestinationId when found == false

That

VerifyOrReturnError(mLocalMRPConfig.HasValue(), CHIP_ERROR_INCORRECT_STATE);
output.responderMrpConfig = &mLocalMRPConfig.Value();

mState = State::kSentSigma2Resume;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not sent yet. Perhaps kSendSigma2Resume?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mistake! will remove it (it is already present inside SendSigma2Resume)

// Check if length of msg_R2_Encrypted is set and is at least larger than the MIC length
VerifyOrReturnError(input.encrypted2Length > CHIP_CRYPTO_AEAD_MIC_LENGTH_BYTES, CHIP_ERROR_INCORRECT_STATE);

ReturnErrorOnFailure(tlvWriterMsg2.PutBytes(TLV::ContextTag(ToRaw(Sigma2Tags::kEncrypted2)), input.msg_R2_Encrypted.Get(),
Copy link
Contributor

@tcarmelveilleux tcarmelveilleux Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this PutBytes, consider freeing the input.msg_R2_Encrypted message buffer. How is it released right now, otherwise?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be freed once we EncodeSigma2Inputs goes out of scope and we exit HandleSigma1_and_SendSigma2, wouldn't it? since it is a ScopedMemoryBuffer

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it will be.

I want implying that perhaps it should be scoped shorter.

msg_r2_signed_enc_len = static_cast<size_t>(tlvWriter.GetLengthWritten());

msg_r2_signed_enc_len = static_cast<size_t>(tlvWriter.GetLengthWritten());
output.encrypted2Length = msg_r2_signed_enc_len + CHIP_CRYPTO_AEAD_MIC_LENGTH_BYTES;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's too bad the data type of the encrypted message doesn't maintain its length on its own and it has to be ridden-along here.

Copy link
Contributor Author

@Alami-Amine Alami-Amine Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought of using ScopedMemoryBufferWithSize for msg_R2_Encrypted but it gives the actual allocated size and there is no support for resizing, and using the LengthWritten by the TLVWriter. Should I add resize function to ScopedMemoryBufferWithSize ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for now.

Copy link

github-actions bot commented Dec 17, 2024

PR #36679: Size comparison from 1c92162 to 3060675

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 1c92162 3060675 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1353786 1354546 760 0.1
RAM 104136 104136 0 0.0
bl702 lighting-app bl702+eth FLASH 651960 652364 404 0.1
RAM 25353 25353 0 0.0
bl702+wifi FLASH 829548 829952 404 0.0
RAM 14093 14093 0 0.0
bl706+mfd+rpc+littlefs FLASH 1058020 1058424 404 0.0
RAM 23933 23933 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 979394 979798 404 0.0
RAM 16596 16596 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 839968 840316 348 0.0
RAM 123672 123696 24 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 825492 825840 348 0.0
RAM 125560 125584 24 0.0
pump-app LP_EM_CC1354P10_6 FLASH 772372 772676 304 0.0
RAM 114036 114060 24 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 756560 756864 304 0.0
RAM 114236 114260 24 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 539853 540165 312 0.1
RAM 205776 205800 24 0.0
lock CC3235SF_LAUNCHXL FLASH 574149 574461 312 0.1
RAM 205920 205944 24 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 681737 682065 328 0.0
RAM 78732 78732 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 701589 701917 328 0.0
RAM 81372 81372 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 701589 701917 328 0.0
RAM 81372 81372 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 658517 658845 328 0.0
RAM 73800 73800 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 618353 618681 328 0.1
RAM 71724 71724 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 637981 638309 328 0.1
RAM 74268 74268 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 637981 638309 328 0.1
RAM 74268 74268 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 637753 638081 328 0.1
RAM 74732 74732 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 657461 657789 328 0.0
RAM 77276 77276 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 657461 657789 328 0.0
RAM 77276 77276 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 614205 614533 328 0.1
RAM 68820 68820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634065 634393 328 0.1
RAM 71452 71452 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634065 634393 328 0.1
RAM 71452 71452 0 0.0
efr32 lock-app BRD4187C FLASH 932620 932908 288 0.0
RAM 160204 160228 24 0.0
BRD4338a FLASH 746584 746984 400 0.1
RAM 233332 233332 0 0.0
window-app BRD4187C FLASH 1025232 1025640 408 0.0
RAM 128308 128332 24 0.0
esp32 all-clusters-app c3devkit DRAM 95376 95376 0 0.0
FLASH 1543590 1544014 424 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116320 116320 0 0.0
FLASH 1550190 1550334 144 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2716225 2718337 2112 0.1
RAM 129928 129928 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 6009536 6016444 6908 0.1
RAM 523640 523640 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5346044 5352920 6876 0.1
RAM 242728 242728 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4685580 4692456 6876 0.1
RAM 218528 218528 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12849428 12856256 6828 0.1
RAM 582506 582506 0 0.0
chip-tool-ipv6only arm64 unknown 21352 21352 0 0.0
FLASH 10984032 10989456 5424 0.0
RAM 633432 633456 24 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11255977 11262805 6828 0.1
RAM 582850 582850 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4511112 4518020 6908 0.2
RAM 205696 205696 0 0.0
fabric-sync debug unknown 4936 4936 0 0.0
FLASH 5611173 5618053 6880 0.1
RAM 472696 472696 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5622305 5629185 6880 0.1
RAM 228888 228888 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4734852 4741728 6876 0.1
RAM 204872 204872 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4360558 4367466 6908 0.2
RAM 198560 198560 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4499582 4506490 6908 0.2
RAM 203144 203144 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3033469 3035581 2112 0.1
RAM 160552 160552 0 0.0
thermostat-no-ble arm64 unknown 9552 9552 0 0.0
FLASH 4104832 4110240 5408 0.1
RAM 243168 243192 24 0.0
tv-app debug unknown 5704 5704 0 0.0
FLASH 5960165 5967061 6896 0.1
RAM 596128 596128 0 0.0
tv-casting-app debug unknown 5288 5288 0 0.0
FLASH 11055821 11062701 6880 0.1
RAM 692328 692328 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 918112 918444 332 0.0
RAM 143308 143308 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 890256 890532 276 0.0
RAM 141495 141495 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 851992 852328 336 0.0
RAM 142220 142220 0 0.0
nxp contact k32w0+release FLASH 585624 585992 368 0.1
RAM 71088 71088 0 0.0
mcxw71+release FLASH 600320 600656 336 0.1
RAM 63184 63184 0 0.0
light k32w0+release FLASH 612548 612884 336 0.1
RAM 70480 70480 0 0.0
k32w1+release FLASH 686808 687144 336 0.0
RAM 48816 48816 0 0.0
lock mcxw71+release FLASH 763216 763552 336 0.0
RAM 70852 70852 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1647132 1647532 400 0.0
RAM 212104 212128 24 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1554564 1554964 400 0.0
RAM 208920 208944 24 0.0
light cy8ckit_062s2_43012 FLASH 1469884 1470284 400 0.0
RAM 200888 200912 24 0.0
lock cy8ckit_062s2_43012 FLASH 1467604 1468004 400 0.0
RAM 225248 225272 24 0.0
qpg lighting-app qpg6105+debug FLASH 664288 664632 344 0.1
RAM 105432 105432 0 0.0
lock-app qpg6105+debug FLASH 622108 622452 344 0.1
RAM 99884 99884 0 0.0
stm32 light STM32WB5MM-DK FLASH 485004 485344 340 0.1
RAM 144888 144888 0 0.0
telink bridge-app tlsr9258a FLASH 683206 683630 424 0.1
RAM 91224 91224 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 623620 624044 424 0.1
RAM 31456 31456 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 772438 772860 422 0.1
RAM 49316 49316 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 711060 711484 424 0.1
RAM 73520 73520 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 628076 628500 424 0.1
RAM 142156 142156 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 814094 814518 424 0.1
RAM 99700 99700 0 0.0
tizen all-clusters-app arm unknown 4996 4996 0 0.0
FLASH 1734952 1735808 856 0.0
RAM 90788 90796 8 0.0
chip-tool-ubsan arm unknown 10804 10804 0 0.0
FLASH 17973686 17980686 7000 0.0
RAM 7842724 7846168 3444 0.0

@@ -211,6 +190,116 @@ class DLL_EXPORT CASESession : public Messaging::UnsolicitedMessageHandler,
// If this function returns true, the CASE session has been reset and is ready for a new session establishment.
bool InvokeBackgroundWorkWatchdog();

protected:
// Helper Enum for usage in HandleSigma1_and_SendSigma2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Helper Enum for usage in HandleSigma1_and_SendSigma2
// Helper Enum for use in HandleSigma1_and_SendSigma2

kSendStatusReport
};

Step mNextStep = Step::kNone;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be a member? Seems like we could have a Step * outparam on HandleSigma1, since this value is just computed in that function, used immediately in its caller, and does not need to be persisted past that point....

ByteSpan destinationId;
bool sessionResumptionRequested = false;
ByteSpan resumptionId;
ByteSpan initiatorResumeMICSpan;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this field's name have a "Span" suffix? None of the other spans here do....


Step mNextStep = Step::kNone;

// This struct only serves as a base struct for EncodeSigma1 and ParseSigma1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// This struct only serves as a base struct for EncodeSigma1 and ParseSigma1
// This struct only serves as a base struct for EncodedSigma1Inputs and ParsedSigma1


struct EncodeSigma1Inputs : Sigma1Param
{
const Crypto::P256PublicKey * pEphPubKey = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const Crypto::P256PublicKey * pEphPubKey = nullptr;
const Crypto::P256PublicKey * ephPubKey = nullptr;

Please follow local naming style.

encodeParams.responderSessionId = 7315;

// Generate Ephemeral Public Key
Crypto::P256Keypair * EphemeralKey = gDeviceOperationalKeystore.AllocateEphemeralKeypairForCASE();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Crypto::P256Keypair * EphemeralKey = gDeviceOperationalKeystore.AllocateEphemeralKeypairForCASE();
Crypto::P256Keypair * ephemeralKey = gDeviceOperationalKeystore.AllocateEphemeralKeypairForCASE();


{
System::PacketBufferHandle msg;
EXPECT_EQ(CHIP_NO_ERROR, EncodeSigma2(msg, encodeParams));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, if EncodeSigma2 does not touch state it should be static, and if it does this needs to be done on a clean CASESession?


{
System::PacketBufferHandle msg;
EXPECT_EQ(CHIP_NO_ERROR, EncodeSigma2Resume(msg, encodeParams));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again: static if it does not use member state, use a clear CASESession for each call if it does.

encodeParams.responderSessionId = 7315;

// responder Session Parameters
ReliableMessageProtocolConfig MRPConfig = GetDefaultMRPConfig();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ReliableMessageProtocolConfig MRPConfig = GetDefaultMRPConfig();
ReliableMessageProtocolConfig mrpConfig = GetDefaultMRPConfig();

encodeParams.msgR2Encrypted.Alloc(encodeParams.encrypted2Length);

// responder Session Parameters
ReliableMessageProtocolConfig MRPConfig = GetDefaultMRPConfig();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ReliableMessageProtocolConfig MRPConfig = GetDefaultMRPConfig();
ReliableMessageProtocolConfig mrpConfig = GetDefaultMRPConfig();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use symbolic names for TLV tags in CASE
4 participants