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

[crypto] Replace AesCcm128Key with sensitive data buffer #24357

Merged
merged 1 commit into from
Jan 15, 2023

Conversation

Damian-Nordic
Copy link
Contributor

AesCcm128Key, despite its name, is currently only used for Identity Protection Key. Additionally, it has very similar interface to CapacityBoundBuffer.

Rename CapacityBoundBuffer to SensitiveDataBuffer to better describe its purpose and add SensitiveDataFixedBuffer for fixed-size contents. Align interfaces of these two and implicit cast operators for better type safety.

Finally, replace AesCcm128Key with new IdentityProtectionKey type alias defined as SensitiveDataFixedBuffer< CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES>. Removing AesCcm128Key was requested when reviewing #23792 which adds another AES key handle type.

@github-actions
Copy link

github-actions bot commented Jan 11, 2023

PR #24357: Size comparison from ed66cbe to 327545e

Increases (25 builds for bl702, cc13x2_26x2, k32w, linux, mbed, psoc6, telink)
platform target config section ed66cbe 327545e change % change
bl702 lighting-app bl702 .debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_line 5228552 5229058 506 0.0
.debug_loc 3394501 3394971 470 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508116 3508181 65 0.0
.strtab 569337 569530 193 0.0
.symtab 172016 172080 64 0.0
bl702+rpc .debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_line 5626141 5626647 506 0.0
.debug_loc 3590508 3590967 459 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910726 3910791 65 0.0
.strtab 629852 630045 193 0.0
.symtab 190336 190400 64 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 174404 174412 8 0.0
lock-ftd LP_CC2652R7 (read/write) 174504 174512 8 0.0
k32w lock k32w0+release (read/write) 631684 631700 16 0.0
.text 551292 551308 16 0.0
linux all-clusters-app debug (read only) 3124817 3124913 96 0.0
.text 2657410 2657506 96 0.0
all-clusters-minimal-app debug (read only) 2937065 2937161 96 0.0
.text 2474226 2474322 96 0.0
bridge-app debug (read only) 2496489 2496601 112 0.0
.text 2112226 2112338 112 0.0
chip-tool debug (read only) 11289329 11289393 64 0.0
.text 9177396 9177460 64 0.0
chip-tool-ipv6only arm64 (read only) 10688460 10688540 80 0.0
.text 8499076 8499156 80 0.0
lighting-app debug+rpc (read only) 2663953 2664049 96 0.0
.text 2258754 2258850 96 0.0
lock-app debug (read only) 2622825 2622921 96 0.0
.text 2206274 2206370 96 0.0
ota-provider-app debug (read only) 2196745 2196841 96 0.0
.text 1860834 1860930 96 0.0
ota-requestor-app debug (read only) 2358201 2358297 96 0.0
.text 2006594 2006690 96 0.0
shell debug (read only) 2657481 2657577 96 0.0
.text 2256802 2256898 96 0.0
thermostat-no-ble arm64 (read only) 2478500 2478612 112 0.0
.text 2068112 2068224 112 0.0
tv-app debug (read only) 3286601 3286665 64 0.0
.text 2822850 2822914 64 0.0
tv-casting-app debug (read only) 5638697 5638793 96 0.0
.text 4999218 4999314 96 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2461848 2461880 32 0.0
.text 1424492 1424524 32 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1748716 1748732 16 0.0
.debug_abbrev 1247585 1247728 143 0.0
.debug_aranges 111144 111248 104 0.1
.debug_frame 373232 373544 312 0.1
.debug_line 3753868 3754268 400 0.0
.debug_loc 3643136 3643840 704 0.0
.debug_ranges 356360 356464 104 0.0
.debug_str 3465988 3466053 65 0.0
.strtab 576216 576409 193 0.0
.symtab 423744 423872 128 0.0
.text 1549008 1549024 16 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1690156 1690172 16 0.0
.debug_abbrev 1233392 1233535 143 0.0
.debug_aranges 110408 110512 104 0.1
.debug_frame 375676 375988 312 0.1
.debug_line 3762657 3763057 400 0.0
.debug_loc 3626536 3627240 704 0.0
.debug_ranges 354328 354432 104 0.0
.debug_str 3450852 3450917 65 0.0
.strtab 536706 536899 193 0.0
.symtab 408704 408832 128 0.0
.text 1491208 1491224 16 0.0
light cy8ckit_062s2_43012 .debug_abbrev 1067785 1067928 143 0.0
.debug_aranges 102608 102712 104 0.1
.debug_frame 346008 346320 312 0.1
.debug_line 3327851 3328245 394 0.0
.debug_loc 3326717 3327329 612 0.0
.debug_ranges 318464 318568 104 0.0
.debug_str 3256384 3256449 65 0.0
.strtab 473013 473206 193 0.0
.symtab 377200 377328 128 0.0
lock cy8ckit_062s2_43012 (read/write) 1642876 1642892 16 0.0
.debug_abbrev 1069831 1069974 143 0.0
.debug_aranges 102992 103096 104 0.1
.debug_frame 347808 348120 312 0.1
.debug_line 3328951 3329343 392 0.0
.debug_loc 3348305 3348904 599 0.0
.debug_ranges 320320 320424 104 0.0
.debug_str 3272218 3272283 65 0.0
.strtab 475730 475923 193 0.0
.symtab 379024 379152 128 0.0
.text 1447128 1447144 16 0.0
telink all-clusters-app tlsr9518adk80d (read/write) 1026288 1026296 8 0.0
text 689096 689098 2 0.0
contact-sensor-app tlsr9518adk80d (read/write) 867572 867580 8 0.0
text 581572 581574 2 0.0
Decreases (17 builds for bl602, bl702, cc13x2_26x2, cyw30739, psoc6, qpg, telink)
platform target config section ed66cbe 327545e change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.text 1016646 1016638 -8 -0.0
bl602+rpc (read/write) 1374902 1374894 -8 -0.0
.text 1047634 1047628 -6 -0.0
bl702 lighting-app bl702 .debug_info 39900397 39896774 -3623 -0.0
.text 956874 956866 -8 -0.0
bl702+rpc (read/write) 1286899 1286883 -16 -0.0
.debug_info 44286220 44282320 -3900 -0.0
.text 1033764 1033758 -6 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677075 677067 -8 -0.0
.text 589460 589452 -8 -0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640691 640683 -8 -0.0
.text 562984 562976 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 674503 674495 -8 -0.0
.text 597664 597656 -8 -0.0
cyw30739 ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550022 550014 -8 -0.0
.app_xip_area 431856 431848 -8 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 27342472 27338691 -3781 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 26903756 26900259 -3497 -0.0
light cy8ckit_062s2_43012 .debug_info 22365996 22362785 -3211 -0.0
lock cy8ckit_062s2_43012 .debug_info 22584687 22581191 -3496 -0.0
qpg lighting-app qpg6105+debug (read/write) 1148388 1148380 -8 -0.0
.text 595488 595480 -8 -0.0
telink all-clusters-minimal-app tlsr9518adk80d text 652388 652386 -2 -0.0
light-switch-app tlsr9518adk80d (read/write) 883888 883880 -8 -0.0
text 596040 596036 -4 -0.0
lighting-app tlsr9518adk80d text 661890 661888 -2 -0.0
ota-requestor-app tlsr9518adk80d (read/write) 897868 897860 -8 -0.0
text 607290 607286 -4 -0.0
Full report (47 builds for bl602, bl702, cc13x2_26x2, cyw30739, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section ed66cbe 327545e change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.bss 86926 86926 0 0.0
.data 9576 9576 0 0.0
.text 1016646 1016638 -8 -0.0
bl602+rpc (read/write) 1374902 1374894 -8 -0.0
.bss 94966 94966 0 0.0
.data 9976 9976 0 0.0
.text 1047634 1047628 -6 -0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1194735 1194735 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 66590 66590 0 0.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4048 4048 0 0.0
.debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_info 39900397 39896774 -3623 -0.0
.debug_line 5228552 5229058 506 0.0
.debug_loc 3394501 3394971 470 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508116 3508181 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 115312 115312 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 569337 569530 193 0.0
.symtab 172016 172080 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
956874 956866 -8 -0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1286899 1286883 -16 -0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 74622 74622 0 0.0
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4600 4600 0 0.0
.debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_info 44286220 44282320 -3900 -0.0
.debug_line 5626141 5626647 506 0.0
.debug_loc 3590508 3590967 459 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910726 3910791 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 129776 129776 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 629852 630045 193 0.0
.symtab 190336 190400 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1033764 1033758 -6 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677075 677067 -8 -0.0
(read/write) 174404 174412 8 0.0
.bss 81172 81172 0 0.0
.data 3380 3380 0 0.0
.rodata 87299 87299 0 0.0
.text 589460 589452 -8 -0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640691 640683 -8 -0.0
(read/write) 157916 157916 0 0.0
.bss 80420 80420 0 0.0
.data 3380 3380 0 0.0
.rodata 77387 77387 0 0.0
.text 562984 562976 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 674503 674495 -8 -0.0
(read/write) 174504 174512 8 0.0
.bss 78788 78788 0 0.0
.data 3304 3304 0 0.0
.rodata 76359 76359 0 0.0
.text 597664 597656 -8 -0.0
lock-mtd LP_CC2652R7 (read only) 659563 659563 0 0.0
(read/write) 184708 184708 0 0.0
.bss 74052 74052 0 0.0
.data 3304 3304 0 0.0
.rodata 102443 102443 0 0.0
.text 556640 556640 0 0.0
pump-app LP_CC2652R7 (read only) 688215 688215 0 0.0
(read/write) 161528 161528 0 0.0
.bss 78756 78756 0 0.0
.data 3268 3268 0 0.0
.rodata 90431 90431 0 0.0
.text 597300 597300 0 0.0
pump-controller-app LP_CC2652R7 (read only) 672235 672235 0 0.0
(read/write) 177612 177612 0 0.0
.bss 78860 78860 0 0.0
.data 3292 3292 0 0.0
.rodata 86139 86139 0 0.0
.text 585616 585616 0 0.0
shell LP_CC2652R7 (read only) 668298 668298 0 0.0
(read/write) 185508 185508 0 0.0
.bss 83500 83500 0 0.0
.data 3376 3376 0 0.0
.rodata 84034 84034 0 0.0
.text 583952 583952 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 585674 585674 0 0.0
.app_xip_area 462020 462020 0 0.0
.bss 66112 66112 0 0.0
.data 728 728 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 589398 589398 0 0.0
.app_xip_area 460448 460448 0 0.0
.bss 71400 71400 0 0.0
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550022 550014 -8 -0.0
.app_xip_area 431856 431848 -8 -0.0
.bss 60664 60664 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
k32w contact k32w0+release (read/write) 660316 660316 0 0.0
.bss 77032 77032 0 0.0
.data 2104 2104 0 0.0
.text 562068 562068 0 0.0
light k32w0+release (read/write) 671408 671408 0 0.0
.bss 74824 74824 0 0.0
.data 2060 2060 0 0.0
.text 591796 591796 0 0.0
lock k32w0+release (read/write) 631684 631700 16 0.0
.bss 75584 75584 0 0.0
.data 2080 2080 0 0.0
.text 551292 551308 16 0.0
linux all-clusters-app debug (read only) 3124817 3124913 96 0.0
(read/write) 153104 153104 0 0.0
.bss 62496 62496 0 0.0
.data 2304 2304 0 0.0
.data.rel.ro 81704 81704 0 0.0
.dynamic 608 608 0 0.0
.got 4768 4768 0 0.0
.init 27 27 0 0.0
.init_array 1192 1192 0 0.0
.rodata 282507 282507 0 0.0
.text 2657410 2657506 96 0.0
all-clusters-minimal-app debug (read only) 2937065 2937161 96 0.0
(read/write) 146480 146480 0 0.0
.bss 61632 61632 0 0.0
.data 2272 2272 0 0.0
.data.rel.ro 76120 76120 0 0.0
.dynamic 608 608 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 281195 281195 0 0.0
.text 2474226 2474322 96 0.0
bridge-app debug (read only) 2496489 2496601 112 0.0
(read/write) 130944 130944 0 0.0
.bss 52512 52512 0 0.0
.data 3632 3632 0 0.0
.data.rel.ro 68712 68712 0 0.0
.dynamic 608 608 0 0.0
.got 4600 4600 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 212480 212480 0 0.0
.text 2112226 2112338 112 0.0
chip-tool debug (read only) 11289329 11289393 64 0.0
(read/write) 642416 642416 0 0.0
.bss 25880 25880 0 0.0
.data 2754 2754 0 0.0
.data.rel.ro 607168 607168 0 0.0
.dynamic 608 608 0 0.0
.got 5192 5192 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 623365 623365 0 0.0
.text 9177396 9177460 64 0.0
chip-tool-ipv6only arm64 (read only) 10688460 10688540 80 0.0
(read/write) 691864 691864 0 0.0
.bss 33912 33912 0 0.0
.data 2768 2768 0 0.0
.data.rel.ro 636168 636168 0 0.0
.dynamic 560 560 0 0.0
.got 13960 13960 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 551068 551068 0 0.0
.text 8499076 8499156 80 0.0
lighting-app debug+rpc (read only) 2663953 2664049 96 0.0
(read/write) 130280 130280 0 0.0
.bss 49952 49952 0 0.0
.data 2288 2288 0 0.0
.data.rel.ro 71848 71848 0 0.0
.dynamic 608 608 0 0.0
.got 4632 4632 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 228448 228448 0 0.0
.text 2258754 2258850 96 0.0
lock-app debug (read only) 2622825 2622921 96 0.0
(read/write) 125328 125328 0 0.0
.bss 48384 48384 0 0.0
.data 1904 1904 0 0.0
.data.rel.ro 68824 68824 0 0.0
.dynamic 608 608 0 0.0
.got 4664 4664 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 244648 244648 0 0.0
.text 2206274 2206370 96 0.0
ota-provider-app debug (read only) 2196745 2196841 96 0.0
(read/write) 105072 105072 0 0.0
.bss 46560 46560 0 0.0
.data 2080 2080 0 0.0
.data.rel.ro 51320 51320 0 0.0
.dynamic 608 608 0 0.0
.got 3728 3728 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 196008 196008 0 0.0
.text 1860834 1860930 96 0.0
ota-requestor-app debug (read only) 2358201 2358297 96 0.0
(read/write) 112800 112800 0 0.0
.bss 49056 49056 0 0.0
.data 2448 2448 0 0.0
.data.rel.ro 56088 56088 0 0.0
.dynamic 608 608 0 0.0
.got 3728 3728 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 202704 202704 0 0.0
.text 2006594 2006690 96 0.0
shell debug (read only) 2657481 2657577 96 0.0
(read/write) 137568 137568 0 0.0
.bss 57896 57896 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 72600 72600 0 0.0
.dynamic 608 608 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 1040 1040 0 0.0
.rodata 240754 240754 0 0.0
.text 2256802 2256898 96 0.0
thermostat-no-ble arm64 (read only) 2478500 2478612 112 0.0
(read/write) 143016 143016 0 0.0
.bss 55336 55336 0 0.0
.data 1816 1816 0 0.0
.data.rel.ro 76632 76632 0 0.0
.dynamic 560 560 0 0.0
.got 5192 5192 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 149792 149792 0 0.0
.text 2068112 2068224 112 0.0
tv-app debug (read only) 3286601 3286665 64 0.0
(read/write) 259344 259344 0 0.0
.bss 170776 170776 0 0.0
.data 3904 3904 0 0.0
.data.rel.ro 77952 77952 0 0.0
.dynamic 608 608 0 0.0
.got 5000 5000 0 0.0
.init 27 27 0 0.0
.init_array 1072 1072 0 0.0
.rodata 269400 269400 0 0.0
.text 2822850 2822914 64 0.0
tv-casting-app debug (read only) 5638697 5638793 96 0.0
(read/write) 160696 160696 0 0.0
.bss 52280 52280 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 99880 99880 0 0.0
.dynamic 608 608 0 0.0
.got 4920 4920 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 361433 361433 0 0.0
.text 4999218 4999314 96 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2461848 2461880 32 0.0
.bss 214932 214932 0 0.0
.data 5872 5872 0 0.0
.text 1424492 1424524 32 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1165324 1165324 0 0.0
bss 146748 146748 0 0.0
rodata 133820 133820 0 0.0
text 804548 804548 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1366968 1366968 0 0.0
bss 106048 106048 0 0.0
rodata 211308 211308 0 0.0
text 763788 763788 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1111168 1111168 0 0.0
bss 145947 145947 0 0.0
rodata 111104 111104 0 0.0
text 773944 773944 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 842024 842024 0 0.0
(read/write) 1748716 1748732 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188656 188656 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1247585 1247728 143 0.0
.debug_aranges 111144 111248 104 0.1
.debug_frame 373232 373544 312 0.1
.debug_info 27342472 27338691 -3781 -0.0
.debug_line 3753868 3754268 400 0.0
.debug_loc 3643136 3643840 704 0.0
.debug_ranges 356360 356464 104 0.0
.debug_str 3465988 3466053 65 0.0
.heap 842024 842024 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 576216 576409 193 0.0
.symtab 423744 423872 128 0.0
.text 1549008 1549024 16 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842784 842784 0 0.0
(read/write) 1690156 1690172 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187896 187896 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1233392 1233535 143 0.0
.debug_aranges 110408 110512 104 0.1
.debug_frame 375676 375988 312 0.1
.debug_info 26903756 26900259 -3497 -0.0
.debug_line 3762657 3763057 400 0.0
.debug_loc 3626536 3627240 704 0.0
.debug_ranges 354328 354432 104 0.0
.debug_str 3450852 3450917 65 0.0
.heap 842784 842784 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 536706 536899 193 0.0
.symtab 408704 408832 128 0.0
.text 1491208 1491224 16 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850976 850976 0 0.0
(read/write) 1608844 1608844 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179912 179912 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1067785 1067928 143 0.0
.debug_aranges 102608 102712 104 0.1
.debug_frame 346008 346320 312 0.1
.debug_info 22365996 22362785 -3211 -0.0
.debug_line 3327851 3328245 394 0.0
.debug_loc 3326717 3327329 612 0.0
.debug_ranges 318464 318568 104 0.0
.debug_str 3256384 3256449 65 0.0
.heap 850976 850976 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 473013 473206 193 0.0
.symtab 377200 377328 128 0.0
.text 1418088 1418088 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845984 845984 0 0.0
(read/write) 1642876 1642892 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184888 184888 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1069831 1069974 143 0.0
.debug_aranges 102992 103096 104 0.1
.debug_frame 347808 348120 312 0.1
.debug_info 22584687 22581191 -3496 -0.0
.debug_line 3328951 3329343 392 0.0
.debug_loc 3348305 3348904 599 0.0
.debug_ranges 320320 320424 104 0.0
.debug_str 3272218 3272283 65 0.0
.heap 845984 845984 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 475730 475923 193 0.0
.symtab 379024 379152 128 0.0
.text 1447128 1447144 16 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148388 1148380 -8 -0.0
.bss 100348 100348 0 0.0
.data 840 840 0 0.0
.text 595488 595480 -8 -0.0
lock-app qpg6105+debug (read/write) 1114836 1114836 0 0.0
.bss 95828 95828 0 0.0
.data 836 836 0 0.0
.text 561932 561932 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1026288 1026296 8 0.0
bss 98184 98184 0 0.0
text 689096 689098 2 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 964628 964628 0 0.0
bss 97368 97368 0 0.0
text 652388 652386 -2 -0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 867572 867580 8 0.0
bss 89524 89524 0 0.0
text 581572 581574 2 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 883888 883880 -8 -0.0
bss 89616 89616 0 0.0
text 596040 596036 -4 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 961860 961860 0 0.0
bss 97676 97676 0 0.0
text 661890 661888 -2 -0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 897868 897860 -8 -0.0
bss 90568 90568 0 0.0
text 607290 607286 -4 -0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 887120 887120 0 0.0
bss 91004 91004 0 0.0
text 596812 596812 0 0.0

@github-actions
Copy link

github-actions bot commented Jan 11, 2023

PR #24357: Size comparison from 18d3671 to 68eb1aa

Increases (5 builds for bl702, linux, mbed)
platform target config section 18d3671 68eb1aa change % change
bl702 lighting-app bl702 .debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_line 5228552 5229058 506 0.0
.debug_loc 3394501 3394969 468 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508116 3508181 65 0.0
.strtab 569337 569530 193 0.0
.symtab 172016 172080 64 0.0
bl702+rpc .debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_line 5626141 5626647 506 0.0
.debug_loc 3590508 3590980 472 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910726 3910791 65 0.0
.strtab 629852 630045 193 0.0
.symtab 190336 190400 64 0.0
linux chip-tool-ipv6only arm64 (read only) 10688460 10688540 80 0.0
.text 8499076 8499156 80 0.0
thermostat-no-ble arm64 (read only) 2478500 2478612 112 0.0
.text 2068112 2068224 112 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2461848 2461880 32 0.0
.text 1424492 1424524 32 0.0
Decreases (4 builds for bl602, bl702)
platform target config section 18d3671 68eb1aa change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.text 1016646 1016636 -10 -0.0
bl602+rpc (read/write) 1374902 1374886 -16 -0.0
.text 1047634 1047624 -10 -0.0
bl702 lighting-app bl702 (read/write) 1194735 1194719 -16 -0.0
.debug_info 39900396 39896773 -3623 -0.0
.text 956872 956864 -8 -0.0
bl702+rpc (read/write) 1286899 1286883 -16 -0.0
.debug_info 44286220 44282318 -3902 -0.0
.text 1033764 1033754 -10 -0.0
Full report (15 builds for bl602, bl702, k32w, linux, mbed, nrfconnect, qpg)
platform target config section 18d3671 68eb1aa change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.bss 86926 86926 0 0.0
.data 9576 9576 0 0.0
.text 1016646 1016636 -10 -0.0
bl602+rpc (read/write) 1374902 1374886 -16 -0.0
.bss 94966 94966 0 0.0
.data 9976 9976 0 0.0
.text 1047634 1047624 -10 -0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1194735 1194719 -16 -0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 66590 66590 0 0.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4048 4048 0 0.0
.debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_info 39900396 39896773 -3623 -0.0
.debug_line 5228552 5229058 506 0.0
.debug_loc 3394501 3394969 468 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508116 3508181 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 115312 115312 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 569337 569530 193 0.0
.symtab 172016 172080 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
956872 956864 -8 -0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1286899 1286883 -16 -0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 74622 74622 0 0.0
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4600 4600 0 0.0
.debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_info 44286220 44282318 -3902 -0.0
.debug_line 5626141 5626647 506 0.0
.debug_loc 3590508 3590980 472 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910726 3910791 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 129776 129776 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 629852 630045 193 0.0
.symtab 190336 190400 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1033764 1033754 -10 -0.0
k32w contact k32w0+release (read/write) 660316 660316 0 0.0
.bss 77032 77032 0 0.0
.data 2104 2104 0 0.0
.text 562068 562068 0 0.0
light k32w0+release (read/write) 671408 671408 0 0.0
.bss 74824 74824 0 0.0
.data 2060 2060 0 0.0
.text 591796 591796 0 0.0
lock k32w0+release (read/write) 631700 631700 0 0.0
.bss 75584 75584 0 0.0
.data 2080 2080 0 0.0
.text 551308 551308 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10688460 10688540 80 0.0
(read/write) 691864 691864 0 0.0
.bss 33912 33912 0 0.0
.data 2768 2768 0 0.0
.data.rel.ro 636168 636168 0 0.0
.dynamic 560 560 0 0.0
.got 13960 13960 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 551068 551068 0 0.0
.text 8499076 8499156 80 0.0
thermostat-no-ble arm64 (read only) 2478500 2478612 112 0.0
(read/write) 143016 143016 0 0.0
.bss 55336 55336 0 0.0
.data 1816 1816 0 0.0
.data.rel.ro 76632 76632 0 0.0
.dynamic 560 560 0 0.0
.got 5192 5192 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 149792 149792 0 0.0
.text 2068112 2068224 112 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2461848 2461880 32 0.0
.bss 214932 214932 0 0.0
.data 5872 5872 0 0.0
.text 1424492 1424524 32 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1165324 1165324 0 0.0
bss 146748 146748 0 0.0
rodata 133820 133820 0 0.0
text 804548 804548 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1366968 1366968 0 0.0
bss 106048 106048 0 0.0
rodata 211308 211308 0 0.0
text 763788 763788 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1111168 1111168 0 0.0
bss 145947 145947 0 0.0
rodata 111104 111104 0 0.0
text 773944 773944 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148388 1148388 0 0.0
.bss 100348 100348 0 0.0
.data 840 840 0 0.0
.text 595488 595488 0 0.0
lock-app qpg6105+debug (read/write) 1114836 1114836 0 0.0
.bss 95828 95828 0 0.0
.data 836 836 0 0.0
.text 561932 561932 0 0.0

@github-actions
Copy link

github-actions bot commented Jan 11, 2023

PR #24357: Size comparison from 18d3671 to e158134

Increases (30 builds for bl702, cc13x2_26x2, efr32, esp32, linux, mbed, psoc6, telink)
platform target config section 18d3671 e158134 change % change
bl702 lighting-app bl702 .debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_line 5228552 5229058 506 0.0
.debug_loc 3394501 3394969 468 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508116 3508181 65 0.0
.strtab 569337 569530 193 0.0
.symtab 172016 172080 64 0.0
bl702+rpc .debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_line 5626141 5626647 506 0.0
.debug_loc 3590508 3590980 472 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910726 3910791 65 0.0
.strtab 629852 630045 193 0.0
.symtab 190336 190400 64 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 174404 174412 8 0.0
lock-ftd LP_CC2652R7 (read/write) 174496 174504 8 0.0
efr32 lock-app BRD4161A+wf200 (read/write) 1066776 1066792 16 0.0
.text 906548 906564 16 0.0
window-app BRD4187C (read/write) 1140600 1140608 8 0.0
.text 973480 973488 8 0.0
esp32 all-clusters-app c3devkit (read only) 1221504 1221506 2 0.0
(read/write) 1788394 1788402 8 0.0
.flash.rodata 245784 245792 8 0.0
.flash.text 1221504 1221506 2 0.0
m5stack (read/write) 561611 561615 4 0.0
.flash.rodata 311564 311568 4 0.0
linux all-clusters-app debug (read only) 3124817 3124913 96 0.0
.text 2657410 2657506 96 0.0
all-clusters-minimal-app debug (read only) 2937065 2937161 96 0.0
.text 2474226 2474322 96 0.0
bridge-app debug (read only) 2496489 2496601 112 0.0
.text 2112226 2112338 112 0.0
chip-tool debug (read only) 11289329 11289393 64 0.0
.text 9177396 9177460 64 0.0
chip-tool-ipv6only arm64 (read only) 10688460 10688540 80 0.0
.text 8499076 8499156 80 0.0
lighting-app debug+rpc (read only) 2663953 2664049 96 0.0
.text 2258754 2258850 96 0.0
lock-app debug (read only) 2622825 2622921 96 0.0
.text 2206274 2206370 96 0.0
ota-provider-app debug (read only) 2196745 2196841 96 0.0
.text 1860834 1860930 96 0.0
ota-requestor-app debug (read only) 2358201 2358297 96 0.0
.text 2006594 2006690 96 0.0
shell debug (read only) 2657481 2657577 96 0.0
.text 2256802 2256898 96 0.0
thermostat-no-ble arm64 (read only) 2478500 2478612 112 0.0
.text 2068112 2068224 112 0.0
tv-app debug (read only) 3286601 3286665 64 0.0
.text 2822850 2822914 64 0.0
tv-casting-app debug (read only) 5638697 5638793 96 0.0
.text 4999218 4999314 96 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2461848 2461880 32 0.0
.text 1424492 1424524 32 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1748716 1748732 16 0.0
.debug_abbrev 1247585 1247728 143 0.0
.debug_aranges 111144 111248 104 0.1
.debug_frame 373232 373544 312 0.1
.debug_line 3753868 3754269 401 0.0
.debug_loc 3643136 3643813 677 0.0
.debug_ranges 356360 356464 104 0.0
.debug_str 3465988 3466053 65 0.0
.strtab 576216 576409 193 0.0
.symtab 423744 423872 128 0.0
.text 1549008 1549024 16 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1690156 1690172 16 0.0
.debug_abbrev 1233392 1233535 143 0.0
.debug_aranges 110408 110512 104 0.1
.debug_frame 375676 375988 312 0.1
.debug_line 3762657 3763058 401 0.0
.debug_loc 3626536 3627213 677 0.0
.debug_ranges 354328 354432 104 0.0
.debug_str 3450852 3450917 65 0.0
.strtab 536706 536899 193 0.0
.symtab 408704 408832 128 0.0
.text 1491208 1491224 16 0.0
light cy8ckit_062s2_43012 .debug_abbrev 1067785 1067928 143 0.0
.debug_aranges 102608 102712 104 0.1
.debug_frame 346008 346320 312 0.1
.debug_line 3327851 3328251 400 0.0
.debug_loc 3326717 3327408 691 0.0
.debug_ranges 318464 318568 104 0.0
.debug_str 3256384 3256449 65 0.0
.strtab 473013 473206 193 0.0
.symtab 377200 377328 128 0.0
lock cy8ckit_062s2_43012 (read/write) 1642876 1642892 16 0.0
.debug_abbrev 1069831 1069974 143 0.0
.debug_aranges 102992 103096 104 0.1
.debug_frame 347808 348120 312 0.1
.debug_line 3328951 3329346 395 0.0
.debug_loc 3348305 3348937 632 0.0
.debug_ranges 320320 320424 104 0.0
.debug_str 3272218 3272283 65 0.0
.strtab 475730 475923 193 0.0
.symtab 379024 379152 128 0.0
.text 1447128 1447144 16 0.0
telink all-clusters-app tlsr9518adk80d (read/write) 1026288 1026296 8 0.0
text 689096 689098 2 0.0
light-switch-app tlsr9518adk80d (read/write) 883880 883888 8 0.0
text 596036 596038 2 0.0
ota-requestor-app tlsr9518adk80d text 607286 607288 2 0.0
thermostat tlsr9518adk80d text 596814 596816 2 0.0
Decreases (14 builds for bl602, bl702, cc13x2_26x2, cyw30739, psoc6, telink)
platform target config section 18d3671 e158134 change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.text 1016646 1016640 -6 -0.0
bl602+rpc (read/write) 1374902 1374894 -8 -0.0
.text 1047634 1047628 -6 -0.0
bl702 lighting-app bl702 (read/write) 1194735 1194719 -16 -0.0
.debug_info 39900396 39896773 -3623 -0.0
.text 956872 956864 -8 -0.0
bl702+rpc (read/write) 1286899 1286883 -16 -0.0
.debug_info 44286220 44282319 -3901 -0.0
.text 1033764 1033756 -8 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677075 677067 -8 -0.0
.text 589460 589452 -8 -0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640691 640683 -8 -0.0
.text 562984 562976 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 674511 674503 -8 -0.0
.text 597672 597664 -8 -0.0
cyw30739 ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550022 550014 -8 -0.0
.app_xip_area 431856 431848 -8 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 27342472 27338690 -3782 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 26903756 26900259 -3497 -0.0
light cy8ckit_062s2_43012 .debug_info 22365998 22362786 -3212 -0.0
lock cy8ckit_062s2_43012 .debug_info 22584686 22581192 -3494 -0.0
telink all-clusters-minimal-app tlsr9518adk80d text 652388 652386 -2 -0.0
contact-sensor-app tlsr9518adk80d text 581572 581570 -2 -0.0
Full report (54 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 18d3671 e158134 change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.bss 86926 86926 0 0.0
.data 9576 9576 0 0.0
.text 1016646 1016640 -6 -0.0
bl602+rpc (read/write) 1374902 1374894 -8 -0.0
.bss 94966 94966 0 0.0
.data 9976 9976 0 0.0
.text 1047634 1047628 -6 -0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1194735 1194719 -16 -0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 66590 66590 0 0.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4048 4048 0 0.0
.debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_info 39900396 39896773 -3623 -0.0
.debug_line 5228552 5229058 506 0.0
.debug_loc 3394501 3394969 468 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508116 3508181 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 115312 115312 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 569337 569530 193 0.0
.symtab 172016 172080 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
956872 956864 -8 -0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1286899 1286883 -16 -0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 74622 74622 0 0.0
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4600 4600 0 0.0
.debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_info 44286220 44282319 -3901 -0.0
.debug_line 5626141 5626647 506 0.0
.debug_loc 3590508 3590980 472 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910726 3910791 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 129776 129776 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 629852 630045 193 0.0
.symtab 190336 190400 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1033764 1033756 -8 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677075 677067 -8 -0.0
(read/write) 174404 174412 8 0.0
.bss 81172 81172 0 0.0
.data 3380 3380 0 0.0
.rodata 87299 87299 0 0.0
.text 589460 589452 -8 -0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640691 640683 -8 -0.0
(read/write) 157916 157916 0 0.0
.bss 80420 80420 0 0.0
.data 3380 3380 0 0.0
.rodata 77387 77387 0 0.0
.text 562984 562976 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 674511 674503 -8 -0.0
(read/write) 174496 174504 8 0.0
.bss 78788 78788 0 0.0
.data 3304 3304 0 0.0
.rodata 76359 76359 0 0.0
.text 597672 597664 -8 -0.0
lock-mtd LP_CC2652R7 (read only) 659563 659563 0 0.0
(read/write) 184708 184708 0 0.0
.bss 74052 74052 0 0.0
.data 3304 3304 0 0.0
.rodata 102443 102443 0 0.0
.text 556640 556640 0 0.0
pump-app LP_CC2652R7 (read only) 688215 688215 0 0.0
(read/write) 161528 161528 0 0.0
.bss 78756 78756 0 0.0
.data 3268 3268 0 0.0
.rodata 90431 90431 0 0.0
.text 597300 597300 0 0.0
pump-controller-app LP_CC2652R7 (read only) 672235 672235 0 0.0
(read/write) 177612 177612 0 0.0
.bss 78860 78860 0 0.0
.data 3292 3292 0 0.0
.rodata 86139 86139 0 0.0
.text 585616 585616 0 0.0
shell LP_CC2652R7 (read only) 668298 668298 0 0.0
(read/write) 185508 185508 0 0.0
.bss 83500 83500 0 0.0
.data 3376 3376 0 0.0
.rodata 84034 84034 0 0.0
.text 583952 583952 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 585674 585674 0 0.0
.app_xip_area 462020 462020 0 0.0
.bss 66112 66112 0 0.0
.data 728 728 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 589398 589398 0 0.0
.app_xip_area 460448 460448 0 0.0
.bss 71400 71400 0 0.0
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550022 550014 -8 -0.0
.app_xip_area 431856 431848 -8 -0.0
.bss 60664 60664 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rpc (read/write) 974108 974108 0 0.0
.bss 152172 152172 0 0.0
.data 2168 2168 0 0.0
.text 819748 819748 0 0.0
BRD4161A+rs911x (read/write) 1037256 1037256 0 0.0
.bss 186648 186648 0 0.0
.data 2012 2012 0 0.0
.text 848576 848576 0 0.0
BRD4187C (read/write) 1147924 1147924 0 0.0
.bss 138568 138568 0 0.0
.data 2516 2516 0 0.0
.text 982244 982244 0 0.0
lock-app BRD4161A+wf200 (read/write) 1066776 1066792 16 0.0
.bss 158184 158184 0 0.0
.data 2020 2020 0 0.0
.text 906548 906564 16 0.0
window-app BRD4187C (read/write) 1140600 1140608 8 0.0
.bss 139984 139984 0 0.0
.data 2540 2540 0 0.0
.text 973480 973488 8 0.0
esp32 all-clusters-app c3devkit (read only) 1221504 1221506 2 0.0
(read/write) 1788394 1788402 8 0.0
.dram0.bss 76952 76952 0 0.0
.dram0.data 13928 13928 0 0.0
.flash.rodata 245784 245792 8 0.0
.flash.text 1221504 1221506 2 0.0
.iram0.text 71188 71188 0 0.0
m5stack (read only) 1235147 1235147 0 0.0
(read/write) 561611 561615 4 0.0
.dram0.bss 82104 82104 0 0.0
.dram0.data 34224 34224 0 0.0
.flash.rodata 311564 311568 4 0.0
.flash.text 1229763 1229763 0 0.0
.iram0.text 124803 124803 0 0.0
k32w contact k32w0+release (read/write) 660316 660316 0 0.0
.bss 77032 77032 0 0.0
.data 2104 2104 0 0.0
.text 562068 562068 0 0.0
light k32w0+release (read/write) 671408 671408 0 0.0
.bss 74824 74824 0 0.0
.data 2060 2060 0 0.0
.text 591796 591796 0 0.0
lock k32w0+release (read/write) 631700 631700 0 0.0
.bss 75584 75584 0 0.0
.data 2080 2080 0 0.0
.text 551308 551308 0 0.0
linux all-clusters-app debug (read only) 3124817 3124913 96 0.0
(read/write) 153104 153104 0 0.0
.bss 62496 62496 0 0.0
.data 2304 2304 0 0.0
.data.rel.ro 81704 81704 0 0.0
.dynamic 608 608 0 0.0
.got 4768 4768 0 0.0
.init 27 27 0 0.0
.init_array 1192 1192 0 0.0
.rodata 282507 282507 0 0.0
.text 2657410 2657506 96 0.0
all-clusters-minimal-app debug (read only) 2937065 2937161 96 0.0
(read/write) 146480 146480 0 0.0
.bss 61632 61632 0 0.0
.data 2272 2272 0 0.0
.data.rel.ro 76120 76120 0 0.0
.dynamic 608 608 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 281195 281195 0 0.0
.text 2474226 2474322 96 0.0
bridge-app debug (read only) 2496489 2496601 112 0.0
(read/write) 130944 130944 0 0.0
.bss 52512 52512 0 0.0
.data 3632 3632 0 0.0
.data.rel.ro 68712 68712 0 0.0
.dynamic 608 608 0 0.0
.got 4600 4600 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 212480 212480 0 0.0
.text 2112226 2112338 112 0.0
chip-tool debug (read only) 11289329 11289393 64 0.0
(read/write) 642416 642416 0 0.0
.bss 25880 25880 0 0.0
.data 2754 2754 0 0.0
.data.rel.ro 607168 607168 0 0.0
.dynamic 608 608 0 0.0
.got 5192 5192 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 623365 623365 0 0.0
.text 9177396 9177460 64 0.0
chip-tool-ipv6only arm64 (read only) 10688460 10688540 80 0.0
(read/write) 691864 691864 0 0.0
.bss 33912 33912 0 0.0
.data 2768 2768 0 0.0
.data.rel.ro 636168 636168 0 0.0
.dynamic 560 560 0 0.0
.got 13960 13960 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 551068 551068 0 0.0
.text 8499076 8499156 80 0.0
lighting-app debug+rpc (read only) 2663953 2664049 96 0.0
(read/write) 130280 130280 0 0.0
.bss 49952 49952 0 0.0
.data 2288 2288 0 0.0
.data.rel.ro 71848 71848 0 0.0
.dynamic 608 608 0 0.0
.got 4632 4632 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 228448 228448 0 0.0
.text 2258754 2258850 96 0.0
lock-app debug (read only) 2622825 2622921 96 0.0
(read/write) 125328 125328 0 0.0
.bss 48384 48384 0 0.0
.data 1904 1904 0 0.0
.data.rel.ro 68824 68824 0 0.0
.dynamic 608 608 0 0.0
.got 4664 4664 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 244648 244648 0 0.0
.text 2206274 2206370 96 0.0
ota-provider-app debug (read only) 2196745 2196841 96 0.0
(read/write) 105072 105072 0 0.0
.bss 46560 46560 0 0.0
.data 2080 2080 0 0.0
.data.rel.ro 51320 51320 0 0.0
.dynamic 608 608 0 0.0
.got 3728 3728 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 196008 196008 0 0.0
.text 1860834 1860930 96 0.0
ota-requestor-app debug (read only) 2358201 2358297 96 0.0
(read/write) 112800 112800 0 0.0
.bss 49056 49056 0 0.0
.data 2448 2448 0 0.0
.data.rel.ro 56088 56088 0 0.0
.dynamic 608 608 0 0.0
.got 3728 3728 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 202704 202704 0 0.0
.text 2006594 2006690 96 0.0
shell debug (read only) 2657481 2657577 96 0.0
(read/write) 137568 137568 0 0.0
.bss 57896 57896 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 72600 72600 0 0.0
.dynamic 608 608 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 1040 1040 0 0.0
.rodata 240754 240754 0 0.0
.text 2256802 2256898 96 0.0
thermostat-no-ble arm64 (read only) 2478500 2478612 112 0.0
(read/write) 143016 143016 0 0.0
.bss 55336 55336 0 0.0
.data 1816 1816 0 0.0
.data.rel.ro 76632 76632 0 0.0
.dynamic 560 560 0 0.0
.got 5192 5192 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 149792 149792 0 0.0
.text 2068112 2068224 112 0.0
tv-app debug (read only) 3286601 3286665 64 0.0
(read/write) 259344 259344 0 0.0
.bss 170776 170776 0 0.0
.data 3904 3904 0 0.0
.data.rel.ro 77952 77952 0 0.0
.dynamic 608 608 0 0.0
.got 5000 5000 0 0.0
.init 27 27 0 0.0
.init_array 1072 1072 0 0.0
.rodata 269400 269400 0 0.0
.text 2822850 2822914 64 0.0
tv-casting-app debug (read only) 5638697 5638793 96 0.0
(read/write) 160696 160696 0 0.0
.bss 52280 52280 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 99880 99880 0 0.0
.dynamic 608 608 0 0.0
.got 4920 4920 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 361433 361433 0 0.0
.text 4999218 4999314 96 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2461848 2461880 32 0.0
.bss 214932 214932 0 0.0
.data 5872 5872 0 0.0
.text 1424492 1424524 32 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1165324 1165324 0 0.0
bss 146748 146748 0 0.0
rodata 133820 133820 0 0.0
text 804548 804548 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1366968 1366968 0 0.0
bss 106048 106048 0 0.0
rodata 211308 211308 0 0.0
text 763788 763788 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1111168 1111168 0 0.0
bss 145947 145947 0 0.0
rodata 111104 111104 0 0.0
text 773944 773944 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 842024 842024 0 0.0
(read/write) 1748716 1748732 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188656 188656 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1247585 1247728 143 0.0
.debug_aranges 111144 111248 104 0.1
.debug_frame 373232 373544 312 0.1
.debug_info 27342472 27338690 -3782 -0.0
.debug_line 3753868 3754269 401 0.0
.debug_loc 3643136 3643813 677 0.0
.debug_ranges 356360 356464 104 0.0
.debug_str 3465988 3466053 65 0.0
.heap 842024 842024 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 576216 576409 193 0.0
.symtab 423744 423872 128 0.0
.text 1549008 1549024 16 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842784 842784 0 0.0
(read/write) 1690156 1690172 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187896 187896 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1233392 1233535 143 0.0
.debug_aranges 110408 110512 104 0.1
.debug_frame 375676 375988 312 0.1
.debug_info 26903756 26900259 -3497 -0.0
.debug_line 3762657 3763058 401 0.0
.debug_loc 3626536 3627213 677 0.0
.debug_ranges 354328 354432 104 0.0
.debug_str 3450852 3450917 65 0.0
.heap 842784 842784 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 536706 536899 193 0.0
.symtab 408704 408832 128 0.0
.text 1491208 1491224 16 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850976 850976 0 0.0
(read/write) 1608844 1608844 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179912 179912 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1067785 1067928 143 0.0
.debug_aranges 102608 102712 104 0.1
.debug_frame 346008 346320 312 0.1
.debug_info 22365998 22362786 -3212 -0.0
.debug_line 3327851 3328251 400 0.0
.debug_loc 3326717 3327408 691 0.0
.debug_ranges 318464 318568 104 0.0
.debug_str 3256384 3256449 65 0.0
.heap 850976 850976 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 473013 473206 193 0.0
.symtab 377200 377328 128 0.0
.text 1418088 1418088 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845984 845984 0 0.0
(read/write) 1642876 1642892 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184888 184888 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1069831 1069974 143 0.0
.debug_aranges 102992 103096 104 0.1
.debug_frame 347808 348120 312 0.1
.debug_info 22584686 22581192 -3494 -0.0
.debug_line 3328951 3329346 395 0.0
.debug_loc 3348305 3348937 632 0.0
.debug_ranges 320320 320424 104 0.0
.debug_str 3272218 3272283 65 0.0
.heap 845984 845984 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 475730 475923 193 0.0
.symtab 379024 379152 128 0.0
.text 1447128 1447144 16 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148388 1148388 0 0.0
.bss 100348 100348 0 0.0
.data 840 840 0 0.0
.text 595488 595488 0 0.0
lock-app qpg6105+debug (read/write) 1114836 1114836 0 0.0
.bss 95828 95828 0 0.0
.data 836 836 0 0.0
.text 561932 561932 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1026288 1026296 8 0.0
bss 98184 98184 0 0.0
text 689096 689098 2 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 964628 964628 0 0.0
bss 97368 97368 0 0.0
text 652388 652386 -2 -0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 867572 867572 0 0.0
bss 89524 89524 0 0.0
text 581572 581570 -2 -0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 883880 883888 8 0.0
bss 89616 89616 0 0.0
text 596036 596038 2 0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 961860 961860 0 0.0
bss 97676 97676 0 0.0
text 661888 661888 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 897860 897860 0 0.0
bss 90568 90568 0 0.0
text 607286 607288 2 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 887128 887128 0 0.0
bss 91004 91004 0 0.0
text 596814 596816 2 0.0

src/crypto/CHIPCryptoPAL.h Outdated Show resolved Hide resolved
src/crypto/CHIPCryptoPAL.h Outdated Show resolved Hide resolved
src/crypto/CHIPCryptoPAL.h Show resolved Hide resolved
AesCcm128Key, despite its name, is currently only used for
Identity Protection Key. Additionally, it has very similar
interface to CapacityBoundBuffer.

Rename CapacityBoundBuffer to SensitiveDataBuffer to better
describe its purpose and add SensitiveDataFixedBuffer for
fixed-size contents. Align interfaces of these two and
implicit cast operators for better type safety.

Finally, replace AesCcm128Key with new IdentityProtectionKey
type alias defined as SensitiveDataFixedBuffer<
CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES>.

Signed-off-by: Damian Krolik <[email protected]>
@github-actions
Copy link

github-actions bot commented Jan 14, 2023

PR #24357: Size comparison from 41d5711 to a831103

Increases (15 builds for bl702, cc13x2_26x2, efr32, esp32, linux, mbed, psoc6, telink)
platform target config section 41d5711 a831103 change % change
bl702 lighting-app bl702 .debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_line 5228530 5229036 506 0.0
.debug_loc 3394501 3394969 468 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508018 3508083 65 0.0
.strtab 569281 569474 193 0.0
.symtab 172016 172080 64 0.0
bl702+rpc .debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_line 5626119 5626625 506 0.0
.debug_loc 3590508 3590980 472 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910628 3910693 65 0.0
.strtab 629796 629989 193 0.0
.symtab 190336 190400 64 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 174404 174420 16 0.0
lock-ftd LP_CC2652R7 (read/write) 174496 174504 8 0.0
pump-controller-app LP_CC2652R7 (read/write) 177612 177620 8 0.0
efr32 window-app BRD4187C (read/write) 1140600 1140608 8 0.0
.text 973480 973488 8 0.0
esp32 all-clusters-app c3devkit (read only) 1221428 1221430 2 0.0
.flash.text 1221428 1221430 2 0.0
linux chip-tool-ipv6only arm64 (read only) 10848132 10848212 80 0.0
.text 8635412 8635492 80 0.0
thermostat-no-ble arm64 (read only) 2478556 2478668 112 0.0
.text 2068128 2068240 112 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2461848 2461880 32 0.0
.text 1424492 1424524 32 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1748716 1748732 16 0.0
.debug_abbrev 1247585 1247728 143 0.0
.debug_aranges 111144 111248 104 0.1
.debug_frame 373232 373544 312 0.1
.debug_line 3753850 3754251 401 0.0
.debug_loc 3643134 3643815 681 0.0
.debug_ranges 356360 356464 104 0.0
.debug_str 3465893 3465958 65 0.0
.strtab 576157 576350 193 0.0
.symtab 423744 423872 128 0.0
.text 1549008 1549024 16 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1690156 1690172 16 0.0
.debug_abbrev 1233392 1233535 143 0.0
.debug_aranges 110408 110512 104 0.1
.debug_frame 375676 375988 312 0.1
.debug_line 3762639 3763040 401 0.0
.debug_loc 3626534 3627215 681 0.0
.debug_ranges 354328 354432 104 0.0
.debug_str 3450757 3450822 65 0.0
.strtab 536647 536840 193 0.0
.symtab 408704 408832 128 0.0
.text 1491208 1491224 16 0.0
light cy8ckit_062s2_43012 .debug_abbrev 1067785 1067928 143 0.0
.debug_aranges 102608 102712 104 0.1
.debug_frame 346008 346320 312 0.1
.debug_line 3327833 3328233 400 0.0
.debug_loc 3326715 3327408 693 0.0
.debug_ranges 318464 318568 104 0.0
.debug_str 3256287 3256352 65 0.0
.strtab 472952 473145 193 0.0
.symtab 377200 377328 128 0.0
lock cy8ckit_062s2_43012 (read/write) 1642876 1642892 16 0.0
.debug_abbrev 1069831 1069974 143 0.0
.debug_aranges 102992 103096 104 0.1
.debug_frame 347808 348120 312 0.1
.debug_line 3328933 3329328 395 0.0
.debug_loc 3348319 3348937 618 0.0
.debug_ranges 320320 320424 104 0.0
.debug_str 3272121 3272186 65 0.0
.strtab 475669 475862 193 0.0
.symtab 379024 379152 128 0.0
.text 1447128 1447144 16 0.0
telink contact-sensor-app tlsr9518adk80d text 581570 581572 2 0.0
Decreases (17 builds for bl602, bl702, cc13x2_26x2, cyw30739, psoc6, telink)
platform target config section 41d5711 a831103 change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.text 1016648 1016638 -10 -0.0
bl602+rpc (read/write) 1374902 1374894 -8 -0.0
.text 1047634 1047626 -8 -0.0
bl702 lighting-app bl702 (read/write) 1194735 1194719 -16 -0.0
.debug_info 39900396 39896772 -3624 -0.0
.text 956872 956862 -10 -0.0
bl702+rpc (read/write) 1286899 1286883 -16 -0.0
.debug_info 44286220 44282319 -3901 -0.0
.text 1033764 1033756 -8 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677075 677059 -16 -0.0
.text 589460 589444 -16 -0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640691 640683 -8 -0.0
.text 562984 562976 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 674511 674503 -8 -0.0
.text 597672 597664 -8 -0.0
pump-controller-app LP_CC2652R7 (read only) 672235 672227 -8 -0.0
.text 585616 585608 -8 -0.0
cyw30739 ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550022 550014 -8 -0.0
.app_xip_area 431856 431848 -8 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 27342516 27338735 -3781 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 26903799 26900304 -3495 -0.0
light cy8ckit_062s2_43012 .debug_info 22366046 2236283 -3211 -0.0
lock cy8ckit_062s2_43012 .debug_info 22584737 22581241 -3496 -0.0
telink light-switch-app tlsr9518adk80d text 596040 596038 -2 -0.0
lighting-app tlsr9518adk80d text 661888 661886 -2 -0.0
ota-requestor-app tlsr9518adk80d text 607288 607286 -2 -0.0
thermostat tlsr9518adk80d (read/write) 887128 887120 -8 -0.0
text 596816 596812 -4 -0.0
Full report (43 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 41d5711 a831103 change % change
bl602 lighting-app bl602 (read/write) 1329406 1329398 -8 -0.0
.bss 86926 86926 0 0.0
.data 9576 9576 0 0.0
.text 1016648 1016638 -10 -0.0
bl602+rpc (read/write) 1374902 1374894 -8 -0.0
.bss 94966 94966 0 0.0
.data 9976 9976 0 0.0
.text 1047634 1047626 -8 -0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1194735 1194719 -16 -0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 66590 66590 0 0.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4048 4048 0 0.0
.debug_abbrev 1533431 1533557 126 0.0
.debug_aranges 132656 132752 96 0.1
.debug_frame 486996 487332 336 0.1
.debug_info 39900396 39896772 -3624 -0.0
.debug_line 5228530 5229036 506 0.0
.debug_loc 3394501 3394969 468 0.0
.debug_ranges 372192 372288 96 0.0
.debug_str 3508018 3508083 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 115312 115312 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 569281 569474 193 0.0
.symtab 172016 172080 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
956872 956862 -10 -0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1286899 1286883 -16 -0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 74622 74622 0 0.0
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4600 4600 0 0.0
.debug_abbrev 1681901 1682009 108 0.0
.debug_aranges 140880 140976 96 0.1
.debug_frame 514708 515044 336 0.1
.debug_info 44286220 44282319 -3901 -0.0
.debug_line 5626119 5626625 506 0.0
.debug_loc 3590508 3590980 472 0.0
.debug_ranges 395896 395992 96 0.0
.debug_str 3910628 3910693 65 0.0
.hbn 509 509 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 129776 129776 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 629796 629989 193 0.0
.symtab 190336 190400 64 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1033764 1033756 -8 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677075 677059 -16 -0.0
(read/write) 174404 174420 16 0.0
.bss 81172 81172 0 0.0
.data 3380 3380 0 0.0
.rodata 87299 87299 0 0.0
.text 589460 589444 -16 -0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640691 640683 -8 -0.0
(read/write) 157916 157916 0 0.0
.bss 80420 80420 0 0.0
.data 3380 3380 0 0.0
.rodata 77387 77387 0 0.0
.text 562984 562976 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 674511 674503 -8 -0.0
(read/write) 174496 174504 8 0.0
.bss 78788 78788 0 0.0
.data 3304 3304 0 0.0
.rodata 76359 76359 0 0.0
.text 597672 597664 -8 -0.0
lock-mtd LP_CC2652R7 (read only) 659563 659563 0 0.0
(read/write) 184708 184708 0 0.0
.bss 74052 74052 0 0.0
.data 3304 3304 0 0.0
.rodata 102443 102443 0 0.0
.text 556640 556640 0 0.0
pump-app LP_CC2652R7 (read only) 688215 688215 0 0.0
(read/write) 161528 161528 0 0.0
.bss 78756 78756 0 0.0
.data 3268 3268 0 0.0
.rodata 90431 90431 0 0.0
.text 597300 597300 0 0.0
pump-controller-app LP_CC2652R7 (read only) 672235 672227 -8 -0.0
(read/write) 177612 177620 8 0.0
.bss 78860 78860 0 0.0
.data 3292 3292 0 0.0
.rodata 86139 86139 0 0.0
.text 585616 585608 -8 -0.0
shell LP_CC2652R7 (read only) 668298 668298 0 0.0
(read/write) 185508 185508 0 0.0
.bss 83500 83500 0 0.0
.data 3376 3376 0 0.0
.rodata 84034 84034 0 0.0
.text 583952 583952 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 585674 585674 0 0.0
.app_xip_area 462020 462020 0 0.0
.bss 66112 66112 0 0.0
.data 728 728 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 589398 589398 0 0.0
.app_xip_area 460448 460448 0 0.0
.bss 71400 71400 0 0.0
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550022 550014 -8 -0.0
.app_xip_area 431856 431848 -8 -0.0
.bss 60664 60664 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rpc (read/write) 974108 974108 0 0.0
.bss 152172 152172 0 0.0
.data 2168 2168 0 0.0
.text 819748 819748 0 0.0
BRD4161A+rs911x (read/write) 1037256 1037256 0 0.0
.bss 186648 186648 0 0.0
.data 2012 2012 0 0.0
.text 848576 848576 0 0.0
BRD4187C (read/write) 1147924 1147924 0 0.0
.bss 138568 138568 0 0.0
.data 2516 2516 0 0.0
.text 982244 982244 0 0.0
lock-app BRD4161A+wf200 (read/write) 1066792 1066792 0 0.0
.bss 158184 158184 0 0.0
.data 2020 2020 0 0.0
.text 906564 906564 0 0.0
window-app BRD4187C (read/write) 1140600 1140608 8 0.0
.bss 139984 139984 0 0.0
.data 2540 2540 0 0.0
.text 973480 973488 8 0.0
esp32 all-clusters-app c3devkit (read only) 1221428 1221430 2 0.0
(read/write) 1787114 1787114 0 0.0
.dram0.bss 75832 75832 0 0.0
.dram0.data 13928 13928 0 0.0
.flash.rodata 245624 245624 0 0.0
.flash.text 1221428 1221430 2 0.0
.iram0.text 71188 71188 0 0.0
m5stack (read only) 1235007 1235007 0 0.0
(read/write) 560331 560331 0 0.0
.dram0.bss 80984 80984 0 0.0
.dram0.data 34224 34224 0 0.0
.flash.rodata 311404 311404 0 0.0
.flash.text 1229623 1229623 0 0.0
.iram0.text 124803 124803 0 0.0
k32w contact k32w0+release (read/write) 660380 660380 0 0.0
.bss 77032 77032 0 0.0
.data 2104 2104 0 0.0
.text 562132 562132 0 0.0
light k32w0+release (read/write) 671408 671408 0 0.0
.bss 74824 74824 0 0.0
.data 2060 2060 0 0.0
.text 591796 591796 0 0.0
lock k32w0+release (read/write) 631764 631764 0 0.0
.bss 75584 75584 0 0.0
.data 2080 2080 0 0.0
.text 551372 551372 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10848132 10848212 80 0.0
(read/write) 694616 694616 0 0.0
.bss 34168 34168 0 0.0
.data 3024 3024 0 0.0
.data.rel.ro 638120 638120 0 0.0
.dynamic 560 560 0 0.0
.got 14096 14096 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 567860 567860 0 0.0
.text 8635412 8635492 80 0.0
thermostat-no-ble arm64 (read only) 2478556 2478668 112 0.0
(read/write) 143016 143016 0 0.0
.bss 55336 55336 0 0.0
.data 1816 1816 0 0.0
.data.rel.ro 76632 76632 0 0.0
.dynamic 560 560 0 0.0
.got 5192 5192 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 149832 149832 0 0.0
.text 2068128 2068240 112 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2461848 2461880 32 0.0
.bss 214932 214932 0 0.0
.data 5872 5872 0 0.0
.text 1424492 1424524 32 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1164336 1164336 0 0.0
bss 146748 146748 0 0.0
rodata 132976 132976 0 0.0
text 804408 804408 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1365992 1365992 0 0.0
bss 106048 106048 0 0.0
rodata 210460 210460 0 0.0
text 763648 763648 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1110180 1110180 0 0.0
bss 145947 145947 0 0.0
rodata 110260 110260 0 0.0
text 773804 773804 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 842024 842024 0 0.0
(read/write) 1748716 1748732 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188656 188656 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1247585 1247728 143 0.0
.debug_aranges 111144 111248 104 0.1
.debug_frame 373232 373544 312 0.1
.debug_info 27342516 27338735 -3781 -0.0
.debug_line 3753850 3754251 401 0.0
.debug_loc 3643134 3643815 681 0.0
.debug_ranges 356360 356464 104 0.0
.debug_str 3465893 3465958 65 0.0
.heap 842024 842024 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 576157 576350 193 0.0
.symtab 423744 423872 128 0.0
.text 0 0 0 0.0
1549008 1549024 16 0.0
.zero.table 8 8 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842784 842784 0 0.0
(read/write) 1690156 1690172 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187896 187896 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1233392 1233535 143 0.0
.debug_aranges 110408 110512 104 0.1
.debug_frame 375676 375988 312 0.1
.debug_info 26903799 26900304 -3495 -0.0
.debug_line 3762639 3763040 401 0.0
.debug_loc 3626534 3627215 681 0.0
.debug_ranges 354328 354432 104 0.0
.debug_str 3450757 3450822 65 0.0
.heap 842784 842784 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 536647 536840 193 0.0
.symtab 408704 408832 128 0.0
.text 1491208 1491224 16 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850976 850976 0 0.0
(read/write) 1608844 1608844 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179912 179912 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1067785 1067928 143 0.0
.debug_aranges 102608 102712 104 0.1
.debug_frame 346008 346320 312 0.1
.debug_info 22366046 2236283 -3211 -0.0
.debug_line 3327833 3328233 400 0.0
.debug_loc 3326715 3327408 693 0.0
.debug_ranges 318464 318568 104 0.0
.debug_str 3256287 3256352 65 0.0
.heap 850976 850976 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 472952 473145 193 0.0
.symtab 377200 377328 128 0.0
.text 1418088 1418088 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845984 845984 0 0.0
(read/write) 1642876 1642892 16 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184888 184888 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1069831 1069974 143 0.0
.debug_aranges 102992 103096 104 0.1
.debug_frame 347808 348120 312 0.1
.debug_info 22584737 22581241 -3496 -0.0
.debug_line 3328933 3329328 395 0.0
.debug_loc 3348319 3348937 618 0.0
.debug_ranges 320320 320424 104 0.0
.debug_str 3272121 3272186 65 0.0
.heap 845984 845984 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 475669 475862 193 0.0
.symtab 379024 379152 128 0.0
.text 1447128 1447144 16 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148044 1148044 0 0.0
.bss 100348 100348 0 0.0
.data 840 840 0 0.0
.text 595144 595144 0 0.0
lock-app qpg6105+debug (read/write) 1115036 1115036 0 0.0
.bss 96868 96868 0 0.0
.data 852 852 0 0.0
.text 562132 562132 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1026288 1026288 0 0.0
bss 98184 98184 0 0.0
text 689096 689096 0 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 964628 964628 0 0.0
bss 97368 97368 0 0.0
text 652384 652384 0 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 867572 867572 0 0.0
bss 89524 89524 0 0.0
text 581570 581572 2 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 883888 883888 0 0.0
bss 89616 89616 0 0.0
text 596040 596038 -2 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 961860 961860 0 0.0
bss 97676 97676 0 0.0
text 661888 661886 -2 -0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 897860 897860 0 0.0
bss 90568 90568 0 0.0
text 607288 607286 -2 -0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 887128 887120 -8 -0.0
bss 91004 91004 0 0.0
text 596816 596812 -4 -0.0

@bzbarsky-apple bzbarsky-apple merged commit 9b63633 into project-chip:master Jan 15, 2023
@Damian-Nordic Damian-Nordic deleted the crypto-cleanup branch January 15, 2023 11:20
};

typedef CapacityBoundBuffer<kMax_ECDSA_Signature_Length> P256ECDSASignature;
template <size_t kCapacity>
class SensitiveDataFixedBuffer
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please document this class and its assumptions?

lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
…p#24357)

AesCcm128Key, despite its name, is currently only used for
Identity Protection Key. Additionally, it has very similar
interface to CapacityBoundBuffer.

Rename CapacityBoundBuffer to SensitiveDataBuffer to better
describe its purpose and add SensitiveDataFixedBuffer for
fixed-size contents. Align interfaces of these two and
implicit cast operators for better type safety.

Finally, replace AesCcm128Key with new IdentityProtectionKey
type alias defined as SensitiveDataFixedBuffer<
CRYPTO_SYMMETRIC_KEY_LENGTH_BYTES>.

Signed-off-by: Damian Krolik <[email protected]>

Signed-off-by: Damian Krolik <[email protected]>
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.

4 participants