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

Migrate from deprecated OpenSSL SHA256_* APIs to EVP APIs #36386

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

Alami-Amine
Copy link
Contributor

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

Migrating from deprecated OpenSSL SHA256_* APIs to the higher-level EVP APIs:

  • The deprecation impacts the APIs: SHA256_Init , SHA256_Update and SHA256_Final, details here
  • The Recommended replacement APIs seem to be present since at least OpenSSL 0.9.7, --> backward compatibility isn't an issue.
  • These APIs work for both OpenSSL and BoringSSL.

NOTE: The Digest Context EVP_MD_CTX with these new APIs is Opaque, and thus HashSHA256OpaqueContext was used to store the pointer to SHA256 Context (EVP_MD_CTX) instead of the structure itself (as was originally intended for HashSHA256OpaqueContext).

Testing

  • Unit Tests and Fuzz Tests (with OpenSSL and BoringSSL)
  • CI Testing

Copy link

Review changes with  SemanticDiff

@github-actions github-actions bot added the crypto label Nov 6, 2024
@Alami-Amine Alami-Amine force-pushed the AA/OpenSSLHashAPI branch 3 times, most recently from 112d4da to 1b79b1e Compare November 6, 2024 14:55
Copy link

github-actions bot commented Nov 6, 2024

PR #36386: Size comparison from da2b767 to 1b79b1e

Full report (17 builds for cc13x4_26x4, cc32xx, nrfconnect, qpg, stm32, telink)
platform target config section da2b767 1b79b1e change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 837924 837872 -52 -0.0
RAM 123628 123660 32 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823696 823668 -28 -0.0
RAM 125516 125548 32 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770436 770396 -40 -0.0
RAM 113984 114016 32 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754640 754600 -40 -0.0
RAM 114192 114224 32 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 627382 627362 -20 -0.0
RAM 205780 205812 32 0.0
lock CC3235SF_LAUNCHXL FLASH 667126 667106 -20 -0.0
RAM 205932 205964 32 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 915000 915024 24 0.0
RAM 143281 143313 32 0.0
nrf7002dk_nrf5340_cpuapp FLASH 887560 887556 -4 -0.0
RAM 141468 141476 8 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 849064 849088 24 0.0
RAM 142189 142221 32 0.0
qpg lighting-app qpg6105+debug FLASH 662240 662296 56 0.0
RAM 105380 105388 8 0.0
lock-app qpg6105+debug FLASH 620196 620212 16 0.0
RAM 99832 99840 8 0.0
stm32 light STM32WB5MM-DK FLASH 483056 483124 68 0.0
RAM 144844 144852 8 0.0
telink bridge-app tlsr9258a FLASH 684318 684318 0 0.0
RAM 91528 91536 8 0.0
contact-sensor-app tlsr9528a_retention FLASH 622362 622364 2 0.0
RAM 50464 50472 8 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710292 710294 2 0.0
RAM 73804 73812 8 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 628478 628478 0 0.0
RAM 145384 145392 8 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 814302 814302 0 0.0
RAM 100004 100012 8 0.0

Copy link

github-actions bot commented Nov 6, 2024

PR #36386: Size comparison from da2b767 to e42374b

Full report (46 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, nrfconnect, psoc6, qpg, stm32, telink, tizen)
platform target config section da2b767 e42374b8 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1351454 1351460 6 0.0
RAM 104080 104088 8 0.0
bl702 lighting-app bl702+eth FLASH 649058 649064 6 0.0
RAM 25321 25321 0 0.0
bl702+wifi FLASH 826638 826644 6 0.0
RAM 14053 14053 0 0.0
bl706+mfd+rpc+littlefs FLASH 1056298 1056304 6 0.0
RAM 23901 23901 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 976464 976470 6 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 837924 837880 -44 -0.0
RAM 123628 123660 32 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823696 823676 -20 -0.0
RAM 125516 125548 32 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770436 770404 -32 -0.0
RAM 113984 114016 32 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754640 754608 -32 -0.0
RAM 114192 114224 32 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 627382 627362 -20 -0.0
RAM 205780 205812 32 0.0
lock CC3235SF_LAUNCHXL FLASH 667126 667106 -20 -0.0
RAM 205932 205964 32 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679585 679577 -8 -0.0
RAM 78684 78692 8 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699437 699429 -8 -0.0
RAM 81324 81332 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699437 699429 -8 -0.0
RAM 81324 81332 8 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656373 656365 -8 -0.0
RAM 73752 73760 8 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616289 616345 56 0.0
RAM 71644 71652 8 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635917 635973 56 0.0
RAM 74188 74196 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635917 635973 56 0.0
RAM 74188 74196 8 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635753 635809 56 0.0
RAM 74692 74700 8 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655469 655525 56 0.0
RAM 77236 77244 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655469 655525 56 0.0
RAM 77236 77244 8 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611157 611213 56 0.0
RAM 68772 68780 8 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631009 631065 56 0.0
RAM 71412 71420 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631009 631065 56 0.0
RAM 71412 71420 8 0.0
efr32 lock-app BRD4187C FLASH 928556 928556 0 0.0
RAM 160164 160196 32 0.0
BRD4338a FLASH 743448 743448 0 0.0
RAM 233288 233296 8 0.0
window-app BRD4187C FLASH 1018584 1018584 0 0.0
RAM 128260 128292 32 0.0
esp32 all-clusters-app c3devkit DRAM 95328 95336 8 0.0
FLASH 1539912 1539914 2 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116264 8 0.0
FLASH 1549102 1549110 8 0.0
IRAM 117039 117039 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 915000 915028 28 0.0
RAM 143281 143313 32 0.0
nrf7002dk_nrf5340_cpuapp FLASH 887560 887572 12 0.0
RAM 141468 141476 8 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 849064 849092 28 0.0
RAM 142189 142221 32 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1642828 1642828 0 0.0
RAM 212056 212088 32 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1550356 1550372 16 0.0
RAM 208856 208888 32 0.0
light cy8ckit_062s2_43012 FLASH 1466956 1466956 0 0.0
RAM 200840 200872 32 0.0
lock cy8ckit_062s2_43012 FLASH 1464684 1464684 0 0.0
RAM 225200 225232 32 0.0
qpg lighting-app qpg6105+debug FLASH 662240 662296 56 0.0
RAM 105380 105388 8 0.0
lock-app qpg6105+debug FLASH 620196 620212 16 0.0
RAM 99832 99840 8 0.0
stm32 light STM32WB5MM-DK FLASH 483056 483124 68 0.0
RAM 144844 144852 8 0.0
telink bridge-app tlsr9258a FLASH 684318 684322 4 0.0
RAM 91528 91536 8 0.0
contact-sensor-app tlsr9528a_retention FLASH 622362 622368 6 0.0
RAM 50464 50472 8 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710292 710298 6 0.0
RAM 73804 73812 8 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 628478 628482 4 0.0
RAM 145384 145392 8 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 814302 814306 4 0.0
RAM 100004 100012 8 0.0
tizen all-clusters-app arm unknown 4932 4944 12 0.2
FLASH 1721588 1721900 312 0.0
RAM 90608 90624 16 0.0
chip-tool-ubsan arm unknown 10820 10832 12 0.1
FLASH 18006430 18007342 912 0.0
RAM 7857244 7857564 320 0.0

Copy link

github-actions bot commented Nov 6, 2024

PR #36386: Size comparison from 6cf10d7 to 4ff3187

Increases above 0.2%:

platform target config section 6cf10d7 4ff3187 change % change
linux air-purifier-app debug unknown 4688 4712 24 0.5
all-clusters-app debug unknown 5528 5552 24 0.4
all-clusters-minimal-app debug unknown 5424 5448 24 0.4
bridge-app debug unknown 5408 5432 24 0.4
chip-tool debug unknown 5960 5984 24 0.4
fabric-admin debug unknown 5792 5816 24 0.4
fabric-bridge-app debug unknown 4632 4656 24 0.5
fabric-sync debug unknown 4856 4880 24 0.5
lighting-app debug+rpc+ui unknown 6056 6080 24 0.4
lock-app debug unknown 5344 5368 24 0.4
ota-provider-app debug unknown 4720 4744 24 0.5
ota-requestor-app debug unknown 4656 4680 24 0.5
shell debug unknown 4216 4240 24 0.6
tv-app debug unknown 5624 5648 24 0.4
tv-casting-app debug unknown 5208 5232 24 0.5
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 6cf10d7 4ff3187 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1351454 1351454 0 0.0
RAM 104080 104080 0 0.0
bl702 lighting-app bl702+eth FLASH 649058 649058 0 0.0
RAM 25321 25321 0 0.0
bl702+wifi FLASH 826638 826638 0 0.0
RAM 14053 14053 0 0.0
bl706+mfd+rpc+littlefs FLASH 1056298 1056298 0 0.0
RAM 23901 23901 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 976464 976464 0 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 837924 837924 0 0.0
RAM 123628 123628 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823696 823696 0 0.0
RAM 125516 125516 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770436 770436 0 0.0
RAM 113984 113984 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754640 754640 0 0.0
RAM 114192 114192 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 627382 627382 0 0.0
RAM 205780 205780 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667126 667126 0 0.0
RAM 205932 205932 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679585 679585 0 0.0
RAM 78684 78684 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699437 699437 0 0.0
RAM 81324 81324 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699437 699437 0 0.0
RAM 81324 81324 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656373 656373 0 0.0
RAM 73752 73752 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616289 616289 0 0.0
RAM 71644 71644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635917 635917 0 0.0
RAM 74188 74188 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635917 635917 0 0.0
RAM 74188 74188 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635753 635753 0 0.0
RAM 74692 74692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655469 655469 0 0.0
RAM 77236 77236 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655469 655469 0 0.0
RAM 77236 77236 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611157 611157 0 0.0
RAM 68772 68772 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631009 631009 0 0.0
RAM 71412 71412 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631009 631009 0 0.0
RAM 71412 71412 0 0.0
efr32 lock-app BRD4187C FLASH 928556 928556 0 0.0
RAM 160164 160164 0 0.0
BRD4338a FLASH 743448 743448 0 0.0
RAM 233288 233288 0 0.0
window-app BRD4187C FLASH 1018584 1018584 0 0.0
RAM 128260 128260 0 0.0
esp32 all-clusters-app c3devkit DRAM 95328 95328 0 0.0
FLASH 1539912 1539912 0 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1549102 1549102 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4712 24 0.5
FLASH 2698549 2698921 372 0.0
RAM 129616 129648 32 0.0
all-clusters-app debug unknown 5528 5552 24 0.4
FLASH 5990696 5991068 372 0.0
RAM 523872 523904 32 0.0
all-clusters-minimal-app debug unknown 5424 5448 24 0.4
FLASH 5328004 5328376 372 0.0
RAM 242448 242480 32 0.0
bridge-app debug unknown 5408 5432 24 0.4
FLASH 4670416 4670788 372 0.0
RAM 218384 218416 32 0.0
chip-tool debug unknown 5960 5984 24 0.4
FLASH 12871656 12872028 372 0.0
RAM 584466 584466 0 0.0
chip-tool-ipv6only arm64 unknown 21400 21400 0 0.0
FLASH 11001840 11002480 640 0.0
RAM 635368 635368 0 0.0
fabric-admin debug unknown 5792 5816 24 0.4
FLASH 11278901 11279273 372 0.0
RAM 584922 584922 0 0.0
fabric-bridge-app debug unknown 4632 4656 24 0.5
FLASH 4497280 4497652 372 0.0
RAM 205368 205400 32 0.0
fabric-sync debug unknown 4856 4880 24 0.5
FLASH 5303941 5304309 368 0.0
RAM 466864 466896 32 0.0
lighting-app debug+rpc+ui unknown 6056 6080 24 0.4
FLASH 5609185 5609569 384 0.0
RAM 228520 228552 32 0.0
lock-app debug unknown 5344 5368 24 0.4
FLASH 4719890 4720262 372 0.0
RAM 204520 204552 32 0.0
ota-provider-app debug unknown 4720 4744 24 0.5
FLASH 4345322 4345694 372 0.0
RAM 198240 198272 32 0.0
ota-requestor-app debug unknown 4656 4680 24 0.5
FLASH 4483724 4484096 372 0.0
RAM 202808 202840 32 0.0
shell debug unknown 4216 4240 24 0.6
FLASH 3013773 3014141 368 0.0
RAM 160336 160368 32 0.0
thermostat-no-ble arm64 unknown 9440 9440 0 0.0
FLASH 4089072 4089712 640 0.0
RAM 242904 242936 32 0.0
tv-app debug unknown 5624 5648 24 0.4
FLASH 5942037 5942405 368 0.0
RAM 596304 596336 32 0.0
tv-casting-app debug unknown 5208 5232 24 0.5
FLASH 11078813 11079181 368 0.0
RAM 694536 694536 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 915000 915000 0 0.0
RAM 143281 143281 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 887560 887560 0 0.0
RAM 141468 141468 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 849064 849064 0 0.0
RAM 142189 142189 0 0.0
nxp contact k32w0+release FLASH 584112 584112 0 0.0
RAM 71044 71044 0 0.0
mcxw71+release FLASH 598656 598656 0 0.0
RAM 63144 63144 0 0.0
light k32w0+release FLASH 611156 611156 0 0.0
RAM 70436 70436 0 0.0
k32w1+release FLASH 684952 684952 0 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 748488 748488 0 0.0
RAM 67300 67300 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1642828 1642828 0 0.0
RAM 212056 212056 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1550356 1550356 0 0.0
RAM 208856 208856 0 0.0
light cy8ckit_062s2_43012 FLASH 1466956 1466956 0 0.0
RAM 200840 200840 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464684 1464684 0 0.0
RAM 225200 225200 0 0.0
qpg lighting-app qpg6105+debug FLASH 662240 662240 0 0.0
RAM 105380 105380 0 0.0
lock-app qpg6105+debug FLASH 620196 620196 0 0.0
RAM 99832 99832 0 0.0
stm32 light STM32WB5MM-DK FLASH 483056 483056 0 0.0
RAM 144844 144844 0 0.0
telink bridge-app tlsr9258a FLASH 684318 684318 0 0.0
RAM 91528 91528 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622362 622362 0 0.0
RAM 50464 50464 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710292 710292 0 0.0
RAM 73804 73804 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 628478 628478 0 0.0
RAM 145384 145384 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 814302 814302 0 0.0
RAM 100004 100004 0 0.0
tizen all-clusters-app arm unknown 4932 4944 12 0.2
FLASH 1721588 1721900 312 0.0
RAM 90608 90624 16 0.0
chip-tool-ubsan arm unknown 10820 10832 12 0.1
FLASH 18006430 18007342 912 0.0
RAM 7857244 7857564 320 0.0

@Alami-Amine Alami-Amine marked this pull request as ready for review November 6, 2024 18:37
Copy link

github-actions bot commented Nov 7, 2024

PR #36386: Size comparison from 6cf10d7 to 03b5cf5

Increases above 0.2%:

platform target config section 6cf10d7 03b5cf5 change % change
linux air-purifier-app debug unknown 4688 4712 24 0.5
all-clusters-app debug unknown 5528 5552 24 0.4
all-clusters-minimal-app debug unknown 5424 5448 24 0.4
bridge-app debug unknown 5408 5432 24 0.4
chip-tool debug unknown 5960 5984 24 0.4
fabric-admin debug unknown 5792 5808 16 0.3
fabric-bridge-app debug unknown 4632 4688 56 1.2
fabric-sync debug unknown 4856 4880 24 0.5
lighting-app debug+rpc+ui unknown 6056 6096 40 0.7
lock-app debug unknown 5344 5368 24 0.4
ota-provider-app debug unknown 4720 4744 24 0.5
ota-requestor-app debug unknown 4656 4680 24 0.5
shell debug unknown 4216 4240 24 0.6
tv-app debug unknown 5624 5648 24 0.4
tv-casting-app debug unknown 5208 5232 24 0.5
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 6cf10d7 03b5cf5 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1351454 1349792 -1662 -0.1
RAM 104080 104080 0 0.0
bl702 lighting-app bl702+eth FLASH 649058 649058 0 0.0
RAM 25321 25321 0 0.0
bl702+wifi FLASH 826638 826638 0 0.0
RAM 14053 14053 0 0.0
bl706+mfd+rpc+littlefs FLASH 1056298 1054842 -1456 -0.1
RAM 23901 23893 -8 -0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 976464 976464 0 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 837924 837892 -32 -0.0
RAM 123628 123628 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823696 823696 0 0.0
RAM 125516 125516 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770436 770436 0 0.0
RAM 113984 113984 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754640 754640 0 0.0
RAM 114192 114192 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 627382 627382 0 0.0
RAM 205780 205780 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667126 667126 0 0.0
RAM 205932 205932 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679585 679569 -16 -0.0
RAM 78684 78684 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699437 699421 -16 -0.0
RAM 81324 81324 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699437 699421 -16 -0.0
RAM 81324 81324 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656373 656357 -16 -0.0
RAM 73752 73752 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616289 616289 0 0.0
RAM 71644 71644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635917 635917 0 0.0
RAM 74188 74188 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635917 635917 0 0.0
RAM 74188 74188 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635753 635753 0 0.0
RAM 74692 74692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655469 655469 0 0.0
RAM 77236 77236 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655469 655469 0 0.0
RAM 77236 77236 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611157 611157 0 0.0
RAM 68772 68772 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631009 631009 0 0.0
RAM 71412 71412 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631009 631009 0 0.0
RAM 71412 71412 0 0.0
efr32 lock-app BRD4187C FLASH 928556 927444 -1112 -0.1
RAM 160164 160160 -4 -0.0
BRD4338a FLASH 743448 743448 0 0.0
RAM 233288 233288 0 0.0
window-app BRD4187C FLASH 1018584 1018584 0 0.0
RAM 128260 128260 0 0.0
esp32 all-clusters-app c3devkit DRAM 95328 95328 0 0.0
FLASH 1539912 1539906 -6 -0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1549102 1549026 -76 -0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4712 24 0.5
FLASH 2698549 2698913 364 0.0
RAM 129616 129648 32 0.0
all-clusters-app debug unknown 5528 5552 24 0.4
FLASH 5990696 5990890 194 0.0
RAM 523872 523904 32 0.0
all-clusters-minimal-app debug unknown 5424 5448 24 0.4
FLASH 5328004 5328368 364 0.0
RAM 242448 242480 32 0.0
bridge-app debug unknown 5408 5432 24 0.4
FLASH 4670416 4670780 364 0.0
RAM 218384 218416 32 0.0
chip-tool debug unknown 5960 5984 24 0.4
FLASH 12871656 12872020 364 0.0
RAM 584466 584466 0 0.0
chip-tool-ipv6only arm64 unknown 21400 21400 0 0.0
FLASH 11001840 11002464 624 0.0
RAM 635368 635368 0 0.0
fabric-admin debug unknown 5792 5808 16 0.3
FLASH 11278901 11277101 -1800 -0.0
RAM 584922 584890 -32 -0.0
fabric-bridge-app debug unknown 4632 4688 56 1.2
FLASH 4497280 4495046 -2234 -0.0
RAM 205368 205400 32 0.0
fabric-sync debug unknown 4856 4880 24 0.5
FLASH 5303941 5304309 368 0.0
RAM 466864 466896 32 0.0
lighting-app debug+rpc+ui unknown 6056 6096 40 0.7
FLASH 5609185 5607281 -1904 -0.0
RAM 228520 228552 32 0.0
lock-app debug unknown 5344 5368 24 0.4
FLASH 4719890 4720254 364 0.0
RAM 204520 204552 32 0.0
ota-provider-app debug unknown 4720 4744 24 0.5
FLASH 4345322 4345686 364 0.0
RAM 198240 198272 32 0.0
ota-requestor-app debug unknown 4656 4680 24 0.5
FLASH 4483724 4484088 364 0.0
RAM 202808 202840 32 0.0
shell debug unknown 4216 4240 24 0.6
FLASH 3013773 3013965 192 0.0
RAM 160336 160368 32 0.0
thermostat-no-ble arm64 unknown 9440 9440 0 0.0
FLASH 4089072 4089696 624 0.0
RAM 242904 242936 32 0.0
tv-app debug unknown 5624 5648 24 0.4
FLASH 5942037 5942389 352 0.0
RAM 596304 596336 32 0.0
tv-casting-app debug unknown 5208 5232 24 0.5
FLASH 11078813 11079165 352 0.0
RAM 694536 694536 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 915000 914980 -20 -0.0
RAM 143281 143281 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 887560 887544 -16 -0.0
RAM 141468 141468 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 849064 849064 0 0.0
RAM 142189 142189 0 0.0
nxp contact k32w0+release FLASH 584112 584112 0 0.0
RAM 71044 71044 0 0.0
mcxw71+release FLASH 598656 598648 -8 -0.0
RAM 63144 63144 0 0.0
light k32w0+release FLASH 611156 611156 0 0.0
RAM 70436 70436 0 0.0
k32w1+release FLASH 684952 684952 0 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 748488 748488 0 0.0
RAM 67300 67300 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1642828 1642716 -112 -0.0
RAM 212056 212056 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1550356 1550356 0 0.0
RAM 208856 208856 0 0.0
light cy8ckit_062s2_43012 FLASH 1466956 1466860 -96 -0.0
RAM 200840 200840 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464684 1464684 0 0.0
RAM 225200 225200 0 0.0
qpg lighting-app qpg6105+debug FLASH 662240 662208 -32 -0.0
RAM 105380 105380 0 0.0
lock-app qpg6105+debug FLASH 620196 620196 0 0.0
RAM 99832 99832 0 0.0
stm32 light STM32WB5MM-DK FLASH 483056 483040 -16 -0.0
RAM 144844 144844 0 0.0
telink bridge-app tlsr9258a FLASH 684318 684318 0 0.0
RAM 91528 91528 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622362 622362 0 0.0
RAM 50464 50464 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710292 710292 0 0.0
RAM 73804 73804 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 628478 628488 10 0.0
RAM 145384 145384 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 814302 814214 -88 -0.0
RAM 100004 100004 0 0.0
tizen all-clusters-app arm unknown 4932 4944 12 0.2
FLASH 1721588 1721772 184 0.0
RAM 90608 90624 16 0.0
chip-tool-ubsan arm unknown 10820 10832 12 0.1
FLASH 18006430 18007270 840 0.0
RAM 7857244 7857532 288 0.0

Copy link

github-actions bot commented Nov 7, 2024

PR #36386: Size comparison from 4edae20 to 16d2c9a

Increases above 0.2%:

platform target config section 4edae20 16d2c9a change % change
linux air-purifier-app debug unknown 4688 4712 24 0.5
all-clusters-app debug unknown 5528 5552 24 0.4
all-clusters-minimal-app debug unknown 5424 5448 24 0.4
bridge-app debug unknown 5408 5432 24 0.4
chip-tool debug unknown 5960 5984 24 0.4
fabric-admin debug unknown 5784 5808 24 0.4
fabric-bridge-app debug unknown 4664 4688 24 0.5
fabric-sync debug unknown 4856 4880 24 0.5
lighting-app debug+rpc+ui unknown 6072 6096 24 0.4
lock-app debug unknown 5344 5368 24 0.4
ota-provider-app debug unknown 4720 4744 24 0.5
ota-requestor-app debug unknown 4656 4680 24 0.5
shell debug unknown 4216 4240 24 0.6
tv-app debug unknown 5624 5648 24 0.4
tv-casting-app debug unknown 5208 5232 24 0.5
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 4edae20 16d2c9a change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1349792 1349792 0 0.0
RAM 104080 104080 0 0.0
bl702 lighting-app bl702+eth FLASH 649058 649058 0 0.0
RAM 25321 25321 0 0.0
bl702+wifi FLASH 826638 826638 0 0.0
RAM 14053 14053 0 0.0
bl706+mfd+rpc+littlefs FLASH 1054842 1054842 0 0.0
RAM 23893 23893 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 976464 976464 0 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 837892 837892 0 0.0
RAM 123628 123628 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823696 823696 0 0.0
RAM 125516 125516 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770436 770436 0 0.0
RAM 113984 113984 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754640 754640 0 0.0
RAM 114192 114192 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 627382 627382 0 0.0
RAM 205780 205780 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667126 667126 0 0.0
RAM 205932 205932 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679569 679569 0 0.0
RAM 78684 78684 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699421 699421 0 0.0
RAM 81324 81324 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699421 699421 0 0.0
RAM 81324 81324 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656357 656357 0 0.0
RAM 73752 73752 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616289 616289 0 0.0
RAM 71644 71644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635917 635917 0 0.0
RAM 74188 74188 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635917 635917 0 0.0
RAM 74188 74188 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635753 635753 0 0.0
RAM 74692 74692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655469 655469 0 0.0
RAM 77236 77236 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655469 655469 0 0.0
RAM 77236 77236 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611157 611157 0 0.0
RAM 68772 68772 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631009 631009 0 0.0
RAM 71412 71412 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631009 631009 0 0.0
RAM 71412 71412 0 0.0
efr32 lock-app BRD4187C FLASH 927444 927444 0 0.0
RAM 160160 160160 0 0.0
BRD4338a FLASH 743448 743448 0 0.0
RAM 233288 233288 0 0.0
window-app BRD4187C FLASH 1018584 1018584 0 0.0
RAM 128260 128260 0 0.0
esp32 all-clusters-app c3devkit DRAM 95328 95328 0 0.0
FLASH 1539906 1539906 0 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1549026 1549026 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4712 24 0.5
FLASH 2698549 2698907 358 0.0
RAM 129616 129648 32 0.0
all-clusters-app debug unknown 5528 5552 24 0.4
FLASH 5990526 5990884 358 0.0
RAM 523872 523904 32 0.0
all-clusters-minimal-app debug unknown 5424 5448 24 0.4
FLASH 5328004 5328362 358 0.0
RAM 242448 242480 32 0.0
bridge-app debug unknown 5408 5432 24 0.4
FLASH 4670416 4670774 358 0.0
RAM 218384 218416 32 0.0
chip-tool debug unknown 5960 5984 24 0.4
FLASH 12871656 12872014 358 0.0
RAM 584466 584466 0 0.0
chip-tool-ipv6only arm64 unknown 21400 21400 0 0.0
FLASH 11001840 11002448 608 0.0
RAM 635368 635368 0 0.0
fabric-admin debug unknown 5784 5808 24 0.4
FLASH 11276737 1127709 358 0.0
RAM 584890 584890 0 0.0
fabric-bridge-app debug unknown 4664 4688 24 0.5
FLASH 4494682 4495040 358 0.0
RAM 205368 205400 32 0.0
fabric-sync debug unknown 4856 4880 24 0.5
FLASH 5303941 5304293 352 0.0
RAM 466864 466896 32 0.0
lighting-app debug+rpc+ui unknown 6072 6096 24 0.4
FLASH 5606913 5607265 352 0.0
RAM 228520 228552 32 0.0
lock-app debug unknown 5344 5368 24 0.4
FLASH 4719890 4720248 358 0.0
RAM 204520 204552 32 0.0
ota-provider-app debug unknown 4720 4744 24 0.5
FLASH 4345322 4345680 358 0.0
RAM 198240 198272 32 0.0
ota-requestor-app debug unknown 4656 4680 24 0.5
FLASH 4483724 4484082 358 0.0
RAM 202808 202840 32 0.0
shell debug unknown 4216 4240 24 0.6
FLASH 3013597 3013949 352 0.0
RAM 160336 160368 32 0.0
thermostat-no-ble arm64 unknown 9440 9440 0 0.0
FLASH 4089072 4089680 608 0.0
RAM 242904 242936 32 0.0
tv-app debug unknown 5624 5648 24 0.4
FLASH 5942037 5942389 352 0.0
RAM 596304 596336 32 0.0
tv-casting-app debug unknown 5208 5232 24 0.5
FLASH 11078813 11079165 352 0.0
RAM 694536 694536 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 914980 914980 0 0.0
RAM 143281 143281 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 887544 887544 0 0.0
RAM 141468 141468 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 849064 849064 0 0.0
RAM 142189 142189 0 0.0
nxp contact k32w0+release FLASH 584112 584112 0 0.0
RAM 71044 71044 0 0.0
mcxw71+release FLASH 598648 598648 0 0.0
RAM 63144 63144 0 0.0
light k32w0+release FLASH 611156 611156 0 0.0
RAM 70436 70436 0 0.0
k32w1+release FLASH 684952 684952 0 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 748488 748488 0 0.0
RAM 67300 67300 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1642716 1642716 0 0.0
RAM 212056 212056 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1550356 1550356 0 0.0
RAM 208856 208856 0 0.0
light cy8ckit_062s2_43012 FLASH 1466860 1466860 0 0.0
RAM 200840 200840 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464684 1464684 0 0.0
RAM 225200 225200 0 0.0
qpg lighting-app qpg6105+debug FLASH 662208 662208 0 0.0
RAM 105380 105380 0 0.0
lock-app qpg6105+debug FLASH 620196 620196 0 0.0
RAM 99832 99832 0 0.0
stm32 light STM32WB5MM-DK FLASH 483040 483040 0 0.0
RAM 144844 144844 0 0.0
telink bridge-app tlsr9258a FLASH 684318 684318 0 0.0
RAM 91528 91528 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622362 622362 0 0.0
RAM 50464 50464 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 710292 710292 0 0.0
RAM 73804 73804 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 628488 628488 0 0.0
RAM 145384 145384 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 814214 814214 0 0.0
RAM 100004 100004 0 0.0
tizen all-clusters-app arm unknown 4932 4944 12 0.2
FLASH 1721468 1721772 304 0.0
RAM 90608 90624 16 0.0
chip-tool-ubsan arm unknown 10820 10832 12 0.1
FLASH 18006430 18007270 840 0.0
RAM 7857244 7857532 288 0.0

@mergify mergify bot merged commit 44499b4 into project-chip:master Nov 7, 2024
67 checks passed
Alami-Amine added a commit to Alami-Amine/connectedhomeip that referenced this pull request Nov 22, 2024
This is a follow_up to project-chip#36386 based on a post-merge comment,
- an OpenSSL-specific mInitialized flag was added to HASH_SHA256 to check if digest computation was initialised, which isn't used for other Crypto Backends
- Fix: replace by a Public API `IsInitialized`, with its implementation for OpenSSL/BoringSSL
Alami-Amine added a commit to Alami-Amine/connectedhomeip that referenced this pull request Nov 22, 2024
This is a follow_up to project-chip#36386 based on a post-merge comment,
- an OpenSSL-specific mInitialized flag was added to HASH_SHA256 to check if digest computation was initialised, which isn't used for other Crypto Backends
- Fix: replace by a Public API `IsInitialized`, with its implementation for OpenSSL/BoringSSL
Alami-Amine added a commit to Alami-Amine/connectedhomeip that referenced this pull request Nov 22, 2024
This is a follow_up to project-chip#36386 based on a post-merge comment,
- an OpenSSL-specific mInitialized flag was added to HASH_SHA256 to check if digest computation was initialised, which isn't used for other Crypto Backends
- Fix: replace by a Public API `IsInitialized`, with its implementation for OpenSSL/BoringSSL
mergify bot pushed a commit that referenced this pull request Nov 22, 2024
This is a follow_up to #36386 based on a post-merge comment,
- an OpenSSL-specific mInitialized flag was added to HASH_SHA256 to check if digest computation was initialised, which isn't used for other Crypto Backends
- Fix: replace by a Public API `IsInitialized`, with its implementation for OpenSSL/BoringSSL
shgutte pushed a commit to shgutte/connectedhomeip that referenced this pull request Nov 25, 2024
…hip#36608)

This is a follow_up to project-chip#36386 based on a post-merge comment,
- an OpenSSL-specific mInitialized flag was added to HASH_SHA256 to check if digest computation was initialised, which isn't used for other Crypto Backends
- Fix: replace by a Public API `IsInitialized`, with its implementation for OpenSSL/BoringSSL
yyzhong-g pushed a commit to yyzhong-g/connectedhomeip that referenced this pull request Dec 12, 2024
…ip#36386)

* Migrate from deprecated OpenSSL SHA256_* APIs to EVP APIs

* Integrating comments
yyzhong-g pushed a commit to yyzhong-g/connectedhomeip that referenced this pull request Dec 12, 2024
…hip#36608)

This is a follow_up to project-chip#36386 based on a post-merge comment,
- an OpenSSL-specific mInitialized flag was added to HASH_SHA256 to check if digest computation was initialised, which isn't used for other Crypto Backends
- Fix: replace by a Public API `IsInitialized`, with its implementation for OpenSSL/BoringSSL
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.

3 participants