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

Introduce fail-safe compliant Operational Cert storage #19643

Merged
merged 3 commits into from
Jun 16, 2022

Conversation

tcarmelveilleux
Copy link
Contributor

Problem

  • This PR is an intermediate fully unit-tested step towards replacing
    all NOC/ICAC/RCAC storage from Fabric-Table to allow spec-compliant
    fail-safe implementation
  • Right now, we have hacky code in opcreds cluster server and in FabricTable
    to attempt to affect fail-safe properly. It doesn't actually work and
    prevents the TrustedRootCertificates, NOCs and Fabrics attributes from
    being implemented properly, and prevents UpdateNOC from being implemented
    to spec

Issue #18633
Issue #17208
Issue #15585

Change overview

This PR implements an operational cert storage interface and provides
an implementation based on exact storage from existing FabricTable
for backwards compatibility. Its usage in FabricTable and via
opcreds cluster is a follow-up.

Testing

Testing done:

  • Added large-scale new code unit test
  • Unit tests pass
  • Not hooked-up to device software yet, so just the unit tests need to pass

- This PR is an intermediate fully unit-tested step towards replacing
  all NOC/ICAC/RCAC storage from Fabric-Table to allow spec-compliant
  fail-safe implementation
- Right now, we have hacky code in opcreds cluster server and in FabricTable
  to attempt to affect fail-safe properly. It doesn't actually work and
  prevents the TrustedRootCertificates, NOCs and Fabrics attributes from
  being implemented properly, and prevents UpdateNOC from being implemented
  to spec

Issue project-chip#18633
Issue project-chip#17208
Issue project-chip#15585

This PR implements an operational cert storage interface and provides
an implementation based on exact storage from existing FabricTable
for backwards compatibility. Its usage in FabricTable and via
opcreds cluster is a follow-up.

Testing done:
- Added large-scale new code unit test
- Unit tests pass
- Not hooked-up to device software yet, so just the unit tests need to pass
@github-actions
Copy link

github-actions bot commented Jun 15, 2022

PR #19643: Size comparison from be878d3 to d8c92de

Increases (1 build for telink)
platform target config section be878d3 d8c92de change % change
telink light-switch-app tlsr9518adk80d text 557810 557812 2 0.0
Decreases (1 build for telink)
platform target config section be878d3 d8c92de change % change
telink lighting-app tlsr9518adk80d (read/write) 806904 806896 -8 -0.0
text 574506 574502 -4 -0.0
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section be878d3 d8c92de change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 657803 657803 0 0.0
(read/write) 193012 193012 0 0.0
.bss 73708 73708 0 0.0
.data 3380 3380 0 0.0
.rodata 86883 86883 0 0.0
.text 570608 570608 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 646303 646303 0 0.0
(read/write) 157260 157260 0 0.0
.bss 72988 72988 0 0.0
.data 3356 3356 0 0.0
.rodata 90159 90159 0 0.0
.text 555824 555824 0 0.0
lock-ftd LP_CC2652R7 (read only) 688639 688639 0 0.0
(read/write) 152280 152280 0 0.0
.bss 70700 70700 0 0.0
.data 3280 3280 0 0.0
.rodata 98911 98911 0 0.0
.text 589244 589244 0 0.0
lock-mtd LP_CC2652R7 (read only) 638047 638047 0 0.0
(read/write) 143832 143832 0 0.0
.bss 66436 66436 0 0.0
.data 3280 3280 0 0.0
.rodata 98791 98791 0 0.0
.text 538764 538764 0 0.0
pump-app LP_CC2652R7 (read only) 669863 669863 0 0.0
(read/write) 171944 171944 0 0.0
.bss 70820 70820 0 0.0
.data 3316 3316 0 0.0
.rodata 87007 87007 0 0.0
.text 582372 582372 0 0.0
pump-controller-app LP_CC2652R7 (read only) 660619 660619 0 0.0
(read/write) 181316 181316 0 0.0
.bss 70948 70948 0 0.0
.data 3276 3276 0 0.0
.rodata 84931 84931 0 0.0
.text 575204 575204 0 0.0
shell LP_CC2652R7 (read only) 687138 687138 0 0.0
(read/write) 159172 159172 0 0.0
.bss 76004 76004 0 0.0
.data 3384 3384 0 0.0
.rodata 109410 109410 0 0.0
.text 577416 577416 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 611170 611170 0 0.0
.app_xip_area 467860 467860 0 0.0
.bss 86232 86232 0 0.0
.data 764 764 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 608254 608254 0 0.0
.app_xip_area 464800 464800 0 0.0
.bss 86408 86408 0 0.0
.data 732 732 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 614266 614266 0 0.0
.app_xip_area 471876 471876 0 0.0
.bss 85400 85400 0 0.0
.data 672 672 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 920708 920708 0 0.0
(read/write) 132396 132396 0 0.0
.bss 130280 130280 0 0.0
.data 2116 2116 0 0.0
.text 920700 920700 0 0.0
BRD4161A+rpc (read only) 956364 956364 0 0.0
(read/write) 149272 149272 0 0.0
.bss 146952 146952 0 0.0
.data 2320 2320 0 0.0
.text 956356 956356 0 0.0
BRD4161A+rs911x (read only) 795824 795824 0 0.0
(read/write) 128676 128676 0 0.0
.bss 126548 126548 0 0.0
.data 2124 2124 0 0.0
.text 795816 795816 0 0.0
lock-app BRD4161A+wf200 (read only) 963720 963720 0 0.0
(read/write) 129012 129012 0 0.0
.bss 126924 126924 0 0.0
.data 2088 2088 0 0.0
.text 963712 963712 0 0.0
window-app BRD4161A (read only) 905596 905596 0 0.0
(read/write) 132460 132460 0 0.0
.bss 130352 130352 0 0.0
.data 2108 2108 0 0.0
.text 905588 905588 0 0.0
esp32 all-clusters-app c3devkit (read only) 1010754 1010754 0 0.0
(read/write) 1482626 1482626 0 0.0
.dram0.bss 69344 69344 0 0.0
.dram0.data 14656 14656 0 0.0
.flash.rodata 213200 213200 0 0.0
.flash.text 1010754 1010754 0 0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1065035 1065035 0 0.0
(read/write) 484744 484744 0 0.0
.dram0.bss 74864 74864 0 0.0
.dram0.data 34176 34176 0 0.0
.flash.rodata 243708 243708 0 0.0
.flash.text 1059651 1059651 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w061+release (read/write) 657368 657368 0 0.0
.bss 68708 68708 0 0.0
.data 2028 2028 0 0.0
.text 580832 580832 0 0.0
lock k32w061+release (read/write) 719008 719008 0 0.0
.bss 69140 69140 0 0.0
.data 2000 2000 0 0.0
.text 642068 642068 0 0.0
linux all-clusters-app debug (read only) 2920241 2920241 0 0.0
(read/write) 188328 188328 0 0.0
.bss 95680 95680 0 0.0
.data 2112 2112 0 0.0
.data.rel.ro 84344 84344 0 0.0
.dynamic 608 608 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 258749 258749 0 0.0
.text 2485794 2485794 0 0.0
all-clusters-minimal-app debug (read only) 2774121 2774121 0 0.0
(read/write) 180136 180136 0 0.0
.bss 94976 94976 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 76984 76984 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 260221 260221 0 0.0
.text 2340450 2340450 0 0.0
bridge-app debug+rpc (read only) 2254377 2254377 0 0.0
(read/write) 158008 158008 0 0.0
.bss 81952 81952 0 0.0
.data 3888 3888 0 0.0
.data.rel.ro 66408 66408 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 193504 193504 0 0.0
.text 1900482 1900482 0 0.0
chip-tool debug (read only) 9941429 9941429 0 0.0
(read/write) 581632 581632 0 0.0
.bss 24352 24352 0 0.0
.data 1088 1088 0 0.0
.data.rel.ro 549896 549896 0 0.0
.dynamic 624 624 0 0.0
.got 5008 5008 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 502229 502229 0 0.0
.text 8098965 8098965 0 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 9690572 9690572 0 0.0
(read/write) 646001 646001 0 0.0
.bss 42625 42625 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 585264 585264 0 0.0
.dynamic 528 528 0 0.0
.got 13152 13152 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 466396 466396 0 0.0
.text 7754036 7754036 0 0.0
lighting-app debug+rpc (read only) 2509929 2509929 0 0.0
(read/write) 163120 163120 0 0.0
.bss 83552 83552 0 0.0
.data 2128 2128 0 0.0
.data.rel.ro 71560 71560 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 209416 209416 0 0.0
.text 2131506 2131506 0 0.0
lock-app debug (read only) 2448361 2448361 0 0.0
(read/write) 157680 157680 0 0.0
.bss 81920 81920 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 68248 68248 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 223176 223176 0 0.0
.text 2061650 2061650 0 0.0
ota-provider-app debug (read only) 2286313 2286313 0 0.0
(read/write) 151816 151816 0 0.0
.bss 81600 81600 0 0.0
.data 1912 1912 0 0.0
.data.rel.ro 62520 62520 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 199320 199320 0 0.0
.text 1925586 1925586 0 0.0
ota-requestor-app debug (read only) 2402073 2402073 0 0.0
(read/write) 158592 158592 0 0.0
.bss 83904 83904 0 0.0
.data 2200 2200 0 0.0
.data.rel.ro 66632 66632 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 203040 203040 0 0.0
.text 2029394 2029394 0 0.0
shell debug (read only) 2593785 2593785 0 0.0
(read/write) 218992 218992 0 0.0
.bss 134440 134440 0 0.0
.data 1296 1296 0 0.0
.data.rel.ro 77512 77512 0 0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 229074 229074 0 0.0
.text 2205698 2205698 0 0.0
thermostat-no-ble arm64 (read only) 2561996 2561996 0 0.0
(read/write) 191729 191729 0 0.0
.bss 99393 99393 0 0.0
.data 1688 1688 0 0.0
.data.rel.ro 82560 82560 0 0.0
.dynamic 528 528 0 0.0
.got 5064 5064 0 0.0
.init 24 24 0 0.0
.init_array 400 400 0 0.0
.rodata 163004 163004 0 0.0
.text 2160704 2160704 0 0.0
tv-app debug (read only) 3058337 3058337 0 0.0
(read/write) 289120 289120 0 0.0
.bss 199176 199176 0 0.0
.data 4816 4816 0 0.0
.data.rel.ro 78688 78688 0 0.0
.dynamic 608 608 0 0.0
.got 4840 4840 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 245024 245024 0 0.0
.text 2627122 2627122 0 0.0
tv-casting-app debug (read only) 5540761 5540761 0 0.0
(read/write) 199664 199664 0 0.0
.bss 88040 88040 0 0.0
.data 2544 2544 0 0.0
.data.rel.ro 102856 102856 0 0.0
.dynamic 608 608 0 0.0
.got 4712 4712 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 340521 340521 0 0.0
.text 4924514 4924514 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2435720 2435720 0 0.0
.bss 208148 208148 0 0.0
.data 5864 5864 0 0.0
.text 1398364 1398364 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1196803 1196803 0 0.0
bss 141554 141554 0 0.0
rodata 155420 155420 0 0.0
text 820972 820972 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1144851 1144851 0 0.0
bss 140794 140794 0 0.0
rodata 131948 131948 0 0.0
text 793288 793288 0 0.0
p6 all-clusters-app default (read/write) 2550112 2550112 0 0.0
.bss 143344 143344 0 0.0
.data 2800 2800 0 0.0
.text 1508376 1508376 0 0.0
all-clusters-minimal-app default (read/write) 2496056 2496056 0 0.0
.bss 142608 142608 0 0.0
.data 2776 2776 0 0.0
.text 1454320 1454320 0 0.0
light-app default (read/write) 2426936 2426936 0 0.0
.bss 134688 134688 0 0.0
.data 2624 2624 0 0.0
.text 1385200 1385200 0 0.0
lock-app default (read/write) 2447352 2447352 0 0.0
.bss 134512 134512 0 0.0
.data 2600 2600 0 0.0
.text 1405616 1405616 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 786916 786916 0 0.0
bss 69836 69836 0 0.0
noinit 40416 40416 0 0.0
text 557810 557812 2 0.0
lighting-app tlsr9518adk80d (read/write) 806904 806896 -8 -0.0
bss 70088 70088 0 0.0
noinit 40416 40416 0 0.0
text 574506 574502 -4 -0.0

@github-actions
Copy link

github-actions bot commented Jun 15, 2022

PR #19643: Size comparison from be878d3 to 386392a

Increases (1 build for telink)
platform target config section be878d3 386392a change % change
telink light-switch-app tlsr9518adk80d text 557810 557814 4 0.0
Decreases (2 builds for esp32, telink)
platform target config section be878d3 386392a change % change
esp32 all-clusters-app c3devkit (read only) 1010754 1010752 -2 -0.0
.flash.text 1010754 1010752 -2 -0.0
telink lighting-app tlsr9518adk80d (read/write) 806904 806896 -8 -0.0
text 574506 574504 -2 -0.0
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section be878d3 386392a change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 657803 657803 0 0.0
(read/write) 193012 193012 0 0.0
.bss 73708 73708 0 0.0
.data 3380 3380 0 0.0
.rodata 86883 86883 0 0.0
.text 570608 570608 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 646303 646303 0 0.0
(read/write) 157260 157260 0 0.0
.bss 72988 72988 0 0.0
.data 3356 3356 0 0.0
.rodata 90159 90159 0 0.0
.text 555824 555824 0 0.0
lock-ftd LP_CC2652R7 (read only) 688639 688639 0 0.0
(read/write) 152280 152280 0 0.0
.bss 70700 70700 0 0.0
.data 3280 3280 0 0.0
.rodata 98911 98911 0 0.0
.text 589244 589244 0 0.0
lock-mtd LP_CC2652R7 (read only) 638047 638047 0 0.0
(read/write) 143832 143832 0 0.0
.bss 66436 66436 0 0.0
.data 3280 3280 0 0.0
.rodata 98791 98791 0 0.0
.text 538764 538764 0 0.0
pump-app LP_CC2652R7 (read only) 669863 669863 0 0.0
(read/write) 171944 171944 0 0.0
.bss 70820 70820 0 0.0
.data 3316 3316 0 0.0
.rodata 87007 87007 0 0.0
.text 582372 582372 0 0.0
pump-controller-app LP_CC2652R7 (read only) 660619 660619 0 0.0
(read/write) 181316 181316 0 0.0
.bss 70948 70948 0 0.0
.data 3276 3276 0 0.0
.rodata 84931 84931 0 0.0
.text 575204 575204 0 0.0
shell LP_CC2652R7 (read only) 687138 687138 0 0.0
(read/write) 159172 159172 0 0.0
.bss 76004 76004 0 0.0
.data 3384 3384 0 0.0
.rodata 109410 109410 0 0.0
.text 577416 577416 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 611170 611170 0 0.0
.app_xip_area 467860 467860 0 0.0
.bss 86232 86232 0 0.0
.data 764 764 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 608254 608254 0 0.0
.app_xip_area 464800 464800 0 0.0
.bss 86408 86408 0 0.0
.data 732 732 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 614266 614266 0 0.0
.app_xip_area 471876 471876 0 0.0
.bss 85400 85400 0 0.0
.data 672 672 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 920708 920708 0 0.0
(read/write) 132396 132396 0 0.0
.bss 130280 130280 0 0.0
.data 2116 2116 0 0.0
.text 920700 920700 0 0.0
BRD4161A+rpc (read only) 956364 956364 0 0.0
(read/write) 149272 149272 0 0.0
.bss 146952 146952 0 0.0
.data 2320 2320 0 0.0
.text 956356 956356 0 0.0
BRD4161A+rs911x (read only) 795824 795824 0 0.0
(read/write) 128676 128676 0 0.0
.bss 126548 126548 0 0.0
.data 2124 2124 0 0.0
.text 795816 795816 0 0.0
lock-app BRD4161A+wf200 (read only) 963720 963720 0 0.0
(read/write) 129012 129012 0 0.0
.bss 126924 126924 0 0.0
.data 2088 2088 0 0.0
.text 963712 963712 0 0.0
window-app BRD4161A (read only) 905596 905596 0 0.0
(read/write) 132460 132460 0 0.0
.bss 130352 130352 0 0.0
.data 2108 2108 0 0.0
.text 905588 905588 0 0.0
esp32 all-clusters-app c3devkit (read only) 1010754 1010752 -2 -0.0
(read/write) 1482626 1482626 0 0.0
.dram0.bss 69344 69344 0 0.0
.dram0.data 14656 14656 0 0.0
.flash.rodata 213200 213200 0 0.0
.flash.text 1010754 1010752 -2 -0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1065035 1065035 0 0.0
(read/write) 484744 484744 0 0.0
.dram0.bss 74864 74864 0 0.0
.dram0.data 34176 34176 0 0.0
.flash.rodata 243708 243708 0 0.0
.flash.text 1059651 1059651 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w061+release (read/write) 657368 657368 0 0.0
.bss 68708 68708 0 0.0
.data 2028 2028 0 0.0
.text 580832 580832 0 0.0
lock k32w061+release (read/write) 719008 719008 0 0.0
.bss 69140 69140 0 0.0
.data 2000 2000 0 0.0
.text 642068 642068 0 0.0
linux all-clusters-app debug (read only) 2920241 2920241 0 0.0
(read/write) 188328 188328 0 0.0
.bss 95680 95680 0 0.0
.data 2112 2112 0 0.0
.data.rel.ro 84344 84344 0 0.0
.dynamic 608 608 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 258749 258749 0 0.0
.text 2485794 2485794 0 0.0
all-clusters-minimal-app debug (read only) 2774121 2774121 0 0.0
(read/write) 180136 180136 0 0.0
.bss 94976 94976 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 76984 76984 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 260221 260221 0 0.0
.text 2340450 2340450 0 0.0
bridge-app debug+rpc (read only) 2254377 2254377 0 0.0
(read/write) 158008 158008 0 0.0
.bss 81952 81952 0 0.0
.data 3888 3888 0 0.0
.data.rel.ro 66408 66408 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 193504 193504 0 0.0
.text 1900482 1900482 0 0.0
chip-tool debug (read only) 9941429 9941429 0 0.0
(read/write) 581632 581632 0 0.0
.bss 24352 24352 0 0.0
.data 1088 1088 0 0.0
.data.rel.ro 549896 549896 0 0.0
.dynamic 624 624 0 0.0
.got 5008 5008 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 502229 502229 0 0.0
.text 8098965 8098965 0 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 9690572 9690572 0 0.0
(read/write) 646001 646001 0 0.0
.bss 42625 42625 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 585264 585264 0 0.0
.dynamic 528 528 0 0.0
.got 13152 13152 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 466396 466396 0 0.0
.text 7754036 7754036 0 0.0
lighting-app debug+rpc (read only) 2509929 2509929 0 0.0
(read/write) 163120 163120 0 0.0
.bss 83552 83552 0 0.0
.data 2128 2128 0 0.0
.data.rel.ro 71560 71560 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 209416 209416 0 0.0
.text 2131506 2131506 0 0.0
lock-app debug (read only) 2448361 2448361 0 0.0
(read/write) 157680 157680 0 0.0
.bss 81920 81920 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 68248 68248 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 223176 223176 0 0.0
.text 2061650 2061650 0 0.0
ota-provider-app debug (read only) 2286313 2286313 0 0.0
(read/write) 151816 151816 0 0.0
.bss 81600 81600 0 0.0
.data 1912 1912 0 0.0
.data.rel.ro 62520 62520 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 199320 199320 0 0.0
.text 1925586 1925586 0 0.0
ota-requestor-app debug (read only) 2402073 2402073 0 0.0
(read/write) 158592 158592 0 0.0
.bss 83904 83904 0 0.0
.data 2200 2200 0 0.0
.data.rel.ro 66632 66632 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 203040 203040 0 0.0
.text 2029394 2029394 0 0.0
shell debug (read only) 2593785 2593785 0 0.0
(read/write) 218992 218992 0 0.0
.bss 134440 134440 0 0.0
.data 1296 1296 0 0.0
.data.rel.ro 77512 77512 0 0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 229074 229074 0 0.0
.text 2205698 2205698 0 0.0
thermostat-no-ble arm64 (read only) 2561996 2561996 0 0.0
(read/write) 191729 191729 0 0.0
.bss 99393 99393 0 0.0
.data 1688 1688 0 0.0
.data.rel.ro 82560 82560 0 0.0
.dynamic 528 528 0 0.0
.got 5064 5064 0 0.0
.init 24 24 0 0.0
.init_array 400 400 0 0.0
.rodata 163004 163004 0 0.0
.text 2160704 2160704 0 0.0
tv-app debug (read only) 3058337 3058337 0 0.0
(read/write) 289120 289120 0 0.0
.bss 199176 199176 0 0.0
.data 4816 4816 0 0.0
.data.rel.ro 78688 78688 0 0.0
.dynamic 608 608 0 0.0
.got 4840 4840 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 245024 245024 0 0.0
.text 2627122 2627122 0 0.0
tv-casting-app debug (read only) 5540761 5540761 0 0.0
(read/write) 199664 199664 0 0.0
.bss 88040 88040 0 0.0
.data 2544 2544 0 0.0
.data.rel.ro 102856 102856 0 0.0
.dynamic 608 608 0 0.0
.got 4712 4712 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 340521 340521 0 0.0
.text 4924514 4924514 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2435720 2435720 0 0.0
.bss 208148 208148 0 0.0
.data 5864 5864 0 0.0
.text 1398364 1398364 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1196803 1196803 0 0.0
bss 141554 141554 0 0.0
rodata 155420 155420 0 0.0
text 820972 820972 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1144851 1144851 0 0.0
bss 140794 140794 0 0.0
rodata 131948 131948 0 0.0
text 793288 793288 0 0.0
p6 all-clusters-app default (read/write) 2550112 2550112 0 0.0
.bss 143344 143344 0 0.0
.data 2800 2800 0 0.0
.text 1508376 1508376 0 0.0
all-clusters-minimal-app default (read/write) 2496056 2496056 0 0.0
.bss 142608 142608 0 0.0
.data 2776 2776 0 0.0
.text 1454320 1454320 0 0.0
light-app default (read/write) 2426936 2426936 0 0.0
.bss 134688 134688 0 0.0
.data 2624 2624 0 0.0
.text 1385200 1385200 0 0.0
lock-app default (read/write) 2447352 2447352 0 0.0
.bss 134512 134512 0 0.0
.data 2600 2600 0 0.0
.text 1405616 1405616 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 786916 786916 0 0.0
bss 69836 69836 0 0.0
noinit 40416 40416 0 0.0
text 557810 557814 4 0.0
lighting-app tlsr9518adk80d (read/write) 806904 806896 -8 -0.0
bss 70088 70088 0 0.0
noinit 40416 40416 0 0.0
text 574506 574504 -2 -0.0

@andy31415 andy31415 merged commit 22888b0 into project-chip:master Jun 16, 2022
src/credentials/OperationalCertificateStore.h Show resolved Hide resolved
src/credentials/OperationalCertificateStore.h Show resolved Hide resolved
src/credentials/OperationalCertificateStore.h Show resolved Hide resolved
* return CHIP_ERROR_INCORRECT_STATE since it is illegal in this implementation to store an
* NOC chain without associated root.
*
* NOTE: The Matter spec allows AddNOC without AddTrustedRootCertificate if the NOC
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm.. Our AddNOC impl right now definitely does not handle this right. Is there an issue tracking that?

src/credentials/OperationalCertificateStore.h Show resolved Hide resolved
src/credentials/OperationalCertificateStore.h Show resolved Hide resolved
src/credentials/OperationalCertificateStore.h Show resolved Hide resolved
tcarmelveilleux added a commit to tcarmelveilleux/connectedhomeip that referenced this pull request Jun 21, 2022
- After PR project-chip#19643 was merge, @bzbarsky-apple had several minor
  editorial comments.
- This PR applies the comments from
  project-chip#19643 (review)

Testing:
- Unit tests still pass
- No integration yet, so unit tests passing is enough
woody-apple pushed a commit that referenced this pull request Jun 22, 2022
* Follow-up minor changes to OpCertStore

- After PR #19643 was merge, @bzbarsky-apple had several minor
  editorial comments.
- This PR applies the comments from
  #19643 (review)

Testing:
- Unit tests still pass
- No integration yet, so unit tests passing is enough

* Restyled by clang-format

* Fix grammar

Co-authored-by: Restyled.io <commits@restyled.io>
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.

5 participants