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

Add interfaces to pass ipk and adminSubject from op creds delegate #13830

Conversation

msandstedt
Copy link
Contributor

Problem

The operational credentials delegate provides interfaces to pass certificates back to the commissioner, but cannot fully specify the contents of the AddNOC command. Missing are the IPK and AdminSubject. Without these, those can only be managed locally.

Change overview

This commit adds optional interfaces to pass IPK and AdminSubject from the delegate. Where AdminSubject is not passed, the commissioner uses its own node ID as before. And where IPK is not passed, the commissioner writes a 0-length IPK, which is also as before and is what we are using until GroupKeyManagement and other dependencies are in place.

Fixes #13503

Testing

  • Added unit tests for the new AesCcm128Key container types
  • Manually verified with an ecosystem-specific op creds delegate that IPK and AdminSubject could be passed
  • Verified the same with ExampleOperationalCredentialsIssuer

The operational credentials delegate provides interfaces to pass
certificates back to the commissioner, but cannot fully specify the
contents of the AddNOC command.  Missing are the IPK and AdminSubject.
Without these, those can only be managed locally.

This commit adds optional interfaces to pass these from the delegate.
Where AdminSubject is not passed, the commissioner uses its own node ID
as before.  And where IPK is not passed, the commissioner writes a
0-length IPK, which is also as before and is what we are using until
GroupKeyManagement and other dependencies are in place.

Fixes project-chip#13503
@boring-cyborg boring-cyborg bot added the darwin label Jan 21, 2022
@github-actions
Copy link

PR #13830: Size comparison from a5a7d92 to 92d36ef

Full report (1 build for cyw30739)
platform target config section a5a7d92 92d36ef change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574274 574274 0 0.0
.app_xip_area 479288 479288 0 0.0
.bss 77724 77724 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0

 into 13503-add-admin-subject-and-ipk-interfaces
@github-actions
Copy link

github-actions bot commented Jan 21, 2022

PR #13830: Size comparison from 225a20b to 5b75b52

Increases (1 build for linux)
platform target config section 225a20b 5b75b52 change % change
linux chip-tool-ipv6only arm64 (read only) 8494356 8496740 2384 0.0
.text 7221780 7224164 2384 0.0
Full report (15 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
platform target config section 225a20b 5b75b52 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574274 574274 0 0.0
.app_xip_area 479288 479288 0 0.0
.bss 77724 77724 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 835500 835500 0 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 835492 835492 0 0.0
BRD4161A+rpc (read only) 822896 822896 0 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 822888 822888 0 0.0
window-app BRD4161A (read only) 806052 806052 0 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 806044 806044 0 0.0
k32w light k32w061+release (read/write) 660424 660424 0 0.0
.bss 76608 76608 0 0.0
.data 1868 1868 0 0.0
.text 576148 576148 0 0.0
lock k32w061+release (read/write) 661180 661180 0 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576644 576644 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8494356 8496740 2384 0.0
(read/write) 390129 390129 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260440 260440 0 0.0
.dynamic 560 560 0 0.0
.got 68760 68760 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 435724 435724 0 0.0
.text 7221780 7224164 2384 0.0
thermostat-no-ble arm64 (read only) 2050412 2050412 0 0.0
(read/write) 145697 145697 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72984 72984 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130684 130684 0 0.0
.text 1705232 1705232 0 0.0
p6 all-clusters-app default (read/write) 2409360 2409360 0 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1367624 1367624 0 0.0
light-app default (read/write) 2330328 2330328 0 0.0
.bss 105544 105544 0 0.0
.data 2408 2408 0 0.0
.text 1288592 1288592 0 0.0
lock-app default (read/write) 2299336 2299336 0 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257600 1257600 0 0.0
qpg lighting-app qpg6105+debug (read only) 567324 567324 0 0.0
(read/write) 146940 146940 0 0.0
.bss 89688 89688 0 0.0
.data 1064 1064 0 0.0
.text 562004 562004 0 0.0
lock-app qpg6105+debug (read only) 515792 515792 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510472 510472 0 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 841562 841562 0 0.0
bss 87492 87492 0 0.0
noinit 37160 37160 0 0.0
text 588208 588208 0 0.0

Copy link

@wbschiller wbschiller left a comment

Choose a reason for hiding this comment

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

Nice work!

 into 13503-add-admin-subject-and-ipk-interfaces
@github-actions
Copy link

github-actions bot commented Jan 22, 2022

PR #13830: Size comparison from ed8d276 to 578537e

Increases (1 build for linux)
platform target config section ed8d276 578537e change % change
linux chip-tool-ipv6only arm64 (read only) 8520948 8523332 2384 0.0
.text 7246052 7248436 2384 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section ed8d276 578537e change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574398 574398 0 0.0
.app_xip_area 479412 479412 0 0.0
.bss 77724 77724 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 835852 835852 0 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 835844 835844 0 0.0
BRD4161A+rpc (read only) 823256 823256 0 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 823248 823248 0 0.0
window-app BRD4161A (read only) 806412 806412 0 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 806404 806404 0 0.0
esp32 all-clusters-app c3devkit (read only) 918558 918558 0 0.0
(read/write) 1383418 1383418 0 0.0
.dram0.bss 70704 70704 0 0.0
.dram0.data 14252 14252 0 0.0
.flash.rodata 179344 179344 0 0.0
.flash.text 918558 918558 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 967107 967107 0 0.0
(read/write) 449836 449836 0 0.0
.dram0.bss 75168 75168 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 208508 208508 0 0.0
.flash.text 961723 961723 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 660556 660556 0 0.0
.bss 76608 76608 0 0.0
.data 1868 1868 0 0.0
.text 576280 576280 0 0.0
lock k32w061+release (read/write) 661312 661312 0 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576776 576776 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8520948 8523332 2384 0.0
(read/write) 390753 390753 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260872 260872 0 0.0
.dynamic 560 560 0 0.0
.got 68952 68952 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 436460 436460 0 0.0
.text 7246052 7248436 2384 0.0
thermostat-no-ble arm64 (read only) 2051516 2051516 0 0.0
(read/write) 145697 145697 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72984 72984 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130700 130700 0 0.0
.text 1706320 1706320 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2352072 2352072 0 0.0
.bss 189412 189412 0 0.0
.data 5304 5304 0 0.0
.text 1314648 1314648 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334296 2334296 0 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1296896 1296896 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304648 2304648 0 0.0
.bss 179960 179960 0 0.0
.data 5560 5560 0 0.0
.text 1267248 1267248 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942879 942879 0 0.0
bss 119044 119044 0 0.0
rodata 108916 108916 0 0.0
text 637312 637312 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 928347 928347 0 0.0
bss 116088 116088 0 0.0
rodata 101368 101368 0 0.0
text 632708 632708 0 0.0
nrf52840dongle_nrf52840 (read/write) 993527 993527 0 0.0
bss 121884 121884 0 0.0
rodata 113672 113672 0 0.0
text 669512 669512 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852706 852706 0 0.0
bss 115828 115828 0 0.0
rodata 102092 102092 0 0.0
text 554232 554232 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912223 912223 0 0.0
bss 118196 118196 0 0.0
rodata 103884 103884 0 0.0
text 612756 612756 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822294 822294 0 0.0
bss 115016 115016 0 0.0
rodata 97112 97112 0 0.0
text 529712 529712 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 915083 915083 0 0.0
bss 117960 117960 0 0.0
rodata 104248 104248 0 0.0
text 615404 615404 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910267 910267 0 0.0
bss 117984 117984 0 0.0
rodata 103400 103400 0 0.0
text 611428 611428 0 0.0
shell nrf52840dk_nrf52840 (read/write) 798527 798527 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533928 533928 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711342 711342 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451608 451608 0 0.0
p6 all-clusters-app default (read/write) 2410408 2410408 0 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1368672 1368672 0 0.0
light-app default (read/write) 2330672 2330672 0 0.0
.bss 105544 105544 0 0.0
.data 2408 2408 0 0.0
.text 1288936 1288936 0 0.0
lock-app default (read/write) 2299688 2299688 0 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257952 1257952 0 0.0
qpg lighting-app qpg6105+debug (read only) 567428 567428 0 0.0
(read/write) 146940 146940 0 0.0
.bss 89688 89688 0 0.0
.data 1064 1064 0 0.0
.text 562108 562108 0 0.0
lock-app qpg6105+debug (read only) 515904 515904 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510584 510584 0 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 841686 841686 0 0.0
bss 87492 87492 0 0.0
noinit 37160 37160 0 0.0
text 588312 588312 0 0.0

@github-actions
Copy link

github-actions bot commented Jan 24, 2022

PR #13830: Size comparison from e9da114 to e41e47b

Increases above 0.2%:

platform target config section e9da114 e41e47b change % change
p6 all-clusters-app default .data 2584 2592 8 0.3
qpg lock-app qpg6105+debug .data 988 992 4 0.4
Increases (18 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section e9da114 e41e47b change % change
efr32 window-app BRD4161A .data 1852 1856 4 0.2
esp32 all-clusters-app c3devkit (read only) 918874 919180 306 0.0
.flash.text 918874 919180 306 0.0
m5stack (read only) 967211 967531 320 0.0
.flash.text 961827 962147 320 0.0
k32w lock k32w061+release .data 1888 1892 4 0.2
linux chip-tool-ipv6only arm64 (read only) 8536964 8539156 2192 0.0
.text 7261028 7263236 2208 0.0
mbed lock-app CY8CPROTO_062_4343W+release .data 5560 5568 8 0.1
nrfconnect lighting-app nrf52840dk_nrf52840 text 637088 637164 76 0.0
nrf52840dk_nrf52840+rpc text 632484 632556 72 0.0
nrf52840dongle_nrf52840 text 669288 669360 72 0.0
nrf5340dk_nrf5340_cpuapp text 554008 554084 76 0.0
lock-app nrf52840dk_nrf52840 text 612532 612716 184 0.0
nrf5340dk_nrf5340_cpuapp text 529488 529672 184 0.0
pump-app nrf52840dk_nrf52840 text 615180 615252 72 0.0
pump-controller-app nrf52840dk_nrf52840 text 611204 611280 76 0.0
p6 all-clusters-app default .data 2584 2592 8 0.3
lock-app default (read/write) 2299576 2299608 32 0.0
.text 1257840 1257872 32 0.0
qpg lock-app qpg6105+debug (read/write) 146936 146940 4 0.0
.data 988 992 4 0.4
telink lighting-app tlsr9518adk80d text 588122 588232 110 0.0
Decreases (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section e9da114 e41e47b change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574158 573698 -460 -0.1
.app_xip_area 479172 478984 -188 -0.0
.bss 77724 77452 -272 -0.3
efr32 lighting-app BRD4161A (read only) 835756 835444 -312 -0.0
(read/write) 127244 126980 -264 -0.2
.bss 125344 125080 -264 -0.2
.text 835748 835436 -312 -0.0
BRD4161A+rpc (read only) 823160 822824 -336 -0.0
(read/write) 143904 143640 -264 -0.2
.bss 141904 141640 -264 -0.2
.text 823152 822816 -336 -0.0
window-app BRD4161A (read/write) 125812 125560 -252 -0.2
.bss 123960 123704 -256 -0.2
esp32 all-clusters-app c3devkit (read/write) 1383466 1376746 -6720 -0.5
.dram0.bss 70720 67384 -3336 -4.7
.flash.rodata 179376 175984 -3392 -1.9
m5stack (read/write) 449884 443168 -6716 -1.5
.dram0.bss 75184 71856 -3328 -4.4
.flash.rodata 208540 205152 -3388 -1.6
k32w light k32w061+release (read/write) 660364 659908 -456 -0.1
.bss 76608 76336 -272 -0.4
.text 576088 575904 -184 -0.0
lock k32w061+release (read/write) 661088 660776 -312 -0.0
.bss 76848 76600 -248 -0.3
.text 576552 576484 -68 -0.0
linux chip-tool-ipv6only arm64 .rodata 436908 436892 -16 -0.0
thermostat-no-ble arm64 (read only) 2051916 2050860 -1056 -0.1
(read/write) 145697 144929 -768 -0.5
.bss 64785 64017 -768 -1.2
.rodata 130700 129916 -784 -0.6
.text 1706720 1706544 -176 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2351928 2348824 -3104 -0.1
.bss 189428 186092 -3336 -1.8
.text 1314504 1311400 -3104 -0.2
lighting-app CY8CPROTO_062_4343W+release (read/write) 2334216 2334008 -208 -0.0
.bss 180960 180696 -264 -0.1
.text 1296816 1296608 -208 -0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304568 2304512 -56 -0.0
.bss 179960 179704 -256 -0.1
.text 1267168 1267112 -56 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942655 942167 -488 -0.1
bss 119044 118776 -268 -0.2
rodata 108916 108652 -264 -0.2
nrf52840dk_nrf52840+rpc (read/write) 928123 927679 -444 -0.0
bss 116088 115820 -268 -0.2
rodata 101368 101100 -268 -0.3
nrf52840dongle_nrf52840 (read/write) 993303 992843 -460 -0.0
bss 121884 121620 -264 -0.2
rodata 113672 113404 -268 -0.2
nrf5340dk_nrf5340_cpuapp (read/write) 852482 852026 -456 -0.1
bss 115828 115564 -264 -0.2
rodata 102092 101828 -264 -0.3
lock-app nrf52840dk_nrf52840 (read/write) 911999 911695 -304 -0.0
bss 118196 117948 -248 -0.2
rodata 103884 103644 -240 -0.2
nrf5340dk_nrf5340_cpuapp (read/write) 822070 821762 -308 -0.0
bss 115016 114764 -252 -0.2
rodata 97112 96868 -244 -0.3
pump-app nrf52840dk_nrf52840 (read/write) 914859 914383 -476 -0.1
bss 117960 117696 -264 -0.2
rodata 104248 103980 -268 -0.3
pump-controller-app nrf52840dk_nrf52840 (read/write) 910043 909599 -444 -0.0
bss 117984 117720 -264 -0.2
rodata 103400 103132 -268 -0.3
p6 all-clusters-app default (read/write) 2410488 2407528 -2960 -0.1
.bss 117772 114436 -3336 -2.8
.text 1368752 1365792 -2960 -0.2
light-app default (read/write) 2330576 2330256 -320 -0.0
.bss 105544 105272 -272 -0.3
.text 1288840 1288520 -320 -0.0
lock-app default .bss 104392 104144 -248 -0.2
qpg lighting-app qpg6105+debug (read only) 567252 567048 -204 -0.0
.bss 89688 89416 -272 -0.3
.text 561932 561728 -204 -0.0
lock-app qpg6105+debug (read only) 515680 515612 -68 -0.0
.bss 88256 88008 -248 -0.3
.text 510360 510292 -68 -0.0
telink lighting-app tlsr9518adk80d (read/write) 841494 841050 -444 -0.1
bss 87492 87224 -268 -0.3
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section e9da114 e41e47b change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574158 573698 -460 -0.1
.app_xip_area 479172 478984 -188 -0.0
.bss 77724 77452 -272 -0.3
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 835756 835444 -312 -0.0
(read/write) 127244 126980 -264 -0.2
.bss 125344 125080 -264 -0.2
.data 1900 1900 0 0.0
.text 835748 835436 -312 -0.0
BRD4161A+rpc (read only) 823160 822824 -336 -0.0
(read/write) 143904 143640 -264 -0.2
.bss 141904 141640 -264 -0.2
.data 2000 2000 0 0.0
.text 823152 822816 -336 -0.0
window-app BRD4161A (read only) 806300 806300 0 0.0
(read/write) 125812 125560 -252 -0.2
.bss 123960 123704 -256 -0.2
.data 1852 1856 4 0.2
.text 806292 806292 0 0.0
esp32 all-clusters-app c3devkit (read only) 918874 919180 306 0.0
(read/write) 1383466 1376746 -6720 -0.5
.dram0.bss 70720 67384 -3336 -4.7
.dram0.data 14252 14252 0 0.0
.flash.rodata 179376 175984 -3392 -1.9
.flash.text 918874 919180 306 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 967211 967531 320 0.0
(read/write) 449884 443168 -6716 -1.5
.dram0.bss 75184 71856 -3328 -4.4
.dram0.data 34032 34032 0 0.0
.flash.rodata 208540 205152 -3388 -1.6
.flash.text 961827 962147 320 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 660364 659908 -456 -0.1
.bss 76608 76336 -272 -0.4
.data 1868 1868 0 0.0
.text 576088 575904 -184 -0.0
lock k32w061+release (read/write) 661088 660776 -312 -0.0
.bss 76848 76600 -248 -0.3
.data 1888 1892 4 0.2
.text 576552 576484 -68 -0.0
linux chip-tool-ipv6only arm64 (read only) 8536964 8539156 2192 0.0
(read/write) 391009 391009 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 261032 261032 0 0.0
.dynamic 560 560 0 0.0
.got 69056 69056 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 436908 436892 -16 -0.0
.text 7261028 7263236 2208 0.0
thermostat-no-ble arm64 (read only) 2051916 2050860 -1056 -0.1
(read/write) 145697 144929 -768 -0.5
.bss 64785 64017 -768 -1.2
.data 904 904 0 0.0
.data.rel.ro 72984 72984 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130700 129916 -784 -0.6
.text 1706720 1706544 -176 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351928 2348824 -3104 -0.1
.bss 189428 186092 -3336 -1.8
.data 5304 5304 0 0.0
.text 1314504 1311400 -3104 -0.2
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334216 2334008 -208 -0.0
.bss 180960 180696 -264 -0.1
.data 5584 5584 0 0.0
.text 1296816 1296608 -208 -0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304568 2304512 -56 -0.0
.bss 179960 179704 -256 -0.1
.data 5560 5568 8 0.1
.text 1267168 1267112 -56 -0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054000 2054000 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016600 1016600 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942655 942167 -488 -0.1
bss 119044 118776 -268 -0.2
rodata 108916 108652 -264 -0.2
text 637088 637164 76 0.0
nrf52840dk_nrf52840+rpc (read/write) 928123 927679 -444 -0.0
bss 116088 115820 -268 -0.2
rodata 101368 101100 -268 -0.3
text 632484 632556 72 0.0
nrf52840dongle_nrf52840 (read/write) 993303 992843 -460 -0.0
bss 121884 121620 -264 -0.2
rodata 113672 113404 -268 -0.2
text 669288 669360 72 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852482 852026 -456 -0.1
bss 115828 115564 -264 -0.2
rodata 102092 101828 -264 -0.3
text 554008 554084 76 0.0
lock-app nrf52840dk_nrf52840 (read/write) 911999 911695 -304 -0.0
bss 118196 117948 -248 -0.2
rodata 103884 103644 -240 -0.2
text 612532 612716 184 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822070 821762 -308 -0.0
bss 115016 114764 -252 -0.2
rodata 97112 96868 -244 -0.3
text 529488 529672 184 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914859 914383 -476 -0.1
bss 117960 117696 -264 -0.2
rodata 104248 103980 -268 -0.3
text 615180 615252 72 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910043 909599 -444 -0.0
bss 117984 117720 -264 -0.2
rodata 103400 103132 -268 -0.3
text 611204 611280 76 0.0
shell nrf52840dk_nrf52840 (read/write) 798303 798303 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533704 533704 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711118 711118 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451384 451384 0 0.0
p6 all-clusters-app default (read/write) 2410488 2407528 -2960 -0.1
.bss 117772 114436 -3336 -2.8
.data 2584 2592 8 0.3
.text 1368752 1365792 -2960 -0.2
light-app default (read/write) 2330576 2330256 -320 -0.0
.bss 105544 105272 -272 -0.3
.data 2408 2408 0 0.0
.text 1288840 1288520 -320 -0.0
lock-app default (read/write) 2299576 2299608 32 0.0
.bss 104392 104144 -248 -0.2
.data 2360 2360 0 0.0
.text 1257840 1257872 32 0.0
qpg lighting-app qpg6105+debug (read only) 567252 567048 -204 -0.0
(read/write) 146940 146940 0 0.0
.bss 89688 89416 -272 -0.3
.data 1064 1064 0 0.0
.text 561932 561728 -204 -0.0
lock-app qpg6105+debug (read only) 515680 515612 -68 -0.0
(read/write) 146936 146940 4 0.0
.bss 88256 88008 -248 -0.3
.data 988 992 4 0.4
.text 510360 510292 -68 -0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 841494 841050 -444 -0.1
bss 87492 87224 -268 -0.3
noinit 37160 37160 0 0.0
text 588122 588232 110 0.0

@github-actions
Copy link

github-actions bot commented Jan 25, 2022

PR #13830: Size comparison from be9582b to 108c747

Increases (1 build for linux)
platform target config section be9582b 108c747 change % change
linux chip-tool-ipv6only arm64 (read only) 8697804 8701484 3680 0.0
.text 7326532 7330212 3680 0.1
Decreases (2 builds for qpg)
platform target config section be9582b 108c747 change % change
qpg lighting-app qpg6105+debug (read only) 565568 565552 -16 -0.0
.text 560248 560232 -16 -0.0
lock-app qpg6105+debug (read only) 514324 514316 -8 -0.0
.text 509004 508996 -8 -0.0
Full report (9 builds for cyw30739, k32w, linux, qpg, telink)
platform target config section be9582b 108c747 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 572258 572258 0 0.0
.app_xip_area 477320 477320 0 0.0
.bss 77684 77684 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
k32w light k32w061+release (read/write) 660496 660496 0 0.0
.bss 77456 77456 0 0.0
.data 1868 1868 0 0.0
.text 575372 575372 0 0.0
lock k32w061+release (read/write) 661392 661392 0 0.0
.bss 77720 77720 0 0.0
.data 1892 1892 0 0.0
.text 575980 575980 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8697804 8701484 3680 0.0
(read/write) 390817 390817 0 0.0
.bss 56017 56017 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260888 260888 0 0.0
.dynamic 560 560 0 0.0
.got 69040 69040 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 532532 532532 0 0.0
.text 7326532 7330212 3680 0.1
thermostat-no-ble arm64 (read only) 2043436 2043436 0 0.0
(read/write) 146625 146625 0 0.0
.bss 65649 65649 0 0.0
.data 904 904 0 0.0
.data.rel.ro 73072 73072 0 0.0
.dynamic 560 560 0 0.0
.got 4048 4048 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130620 130620 0 0.0
.text 1698512 1698512 0 0.0
qpg lighting-app qpg6105+debug (read only) 565568 565552 -16 -0.0
(read/write) 146936 146936 0 0.0
.bss 89656 89656 0 0.0
.data 1060 1060 0 0.0
.text 560248 560232 -16 -0.0
lock-app qpg6105+debug (read only) 514324 514316 -8 -0.0
(read/write) 146940 146940 0 0.0
.bss 89128 89128 0 0.0
.data 992 992 0 0.0
.text 509004 508996 -8 -0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 839534 839534 0 0.0
bss 87460 87460 0 0.0
noinit 37160 37160 0 0.0
text 586050 586050 0 0.0

 into 13503-add-admin-subject-and-ipk-interfaces
@github-actions
Copy link

github-actions bot commented Jan 25, 2022

PR #13830: Size comparison from de95567 to dc9dbf7

Increases (1 build for linux)
platform target config section de95567 dc9dbf7 change % change
linux chip-tool-ipv6only arm64 (read only) 8716252 8719932 3680 0.0
.text 7341284 7344964 3680 0.1
Full report (15 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
platform target config section de95567 dc9dbf7 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 578006 578006 0 0.0
.app_xip_area 483064 483064 0 0.0
.bss 77688 77688 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 839388 839388 0 0.0
(read/write) 127228 127228 0 0.0
.bss 125328 125328 0 0.0
.data 1900 1900 0 0.0
.text 839380 839380 0 0.0
BRD4161A+rpc (read only) 826760 826760 0 0.0
(read/write) 143888 143888 0 0.0
.bss 141888 141888 0 0.0
.data 2000 2000 0 0.0
.text 826752 826752 0 0.0
window-app BRD4161A (read only) 811716 811716 0 0.0
(read/write) 125884 125884 0 0.0
.bss 124028 124028 0 0.0
.data 1856 1856 0 0.0
.text 811708 811708 0 0.0
k32w light k32w061+release (read/write) 662880 662880 0 0.0
.bss 77460 77460 0 0.0
.data 1868 1868 0 0.0
.text 577752 577752 0 0.0
lock k32w061+release (read/write) 663792 663792 0 0.0
.bss 77724 77724 0 0.0
.data 1892 1892 0 0.0
.text 578376 578376 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8716252 8719932 3680 0.0
(read/write) 391585 391585 0 0.0
.bss 56033 56033 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 261440 261440 0 0.0
.dynamic 560 560 0 0.0
.got 69232 69232 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 534420 534420 0 0.0
.text 7341284 7344964 3680 0.1
thermostat-no-ble arm64 (read only) 2049708 2049708 0 0.0
(read/write) 146785 146785 0 0.0
.bss 65665 65665 0 0.0
.data 904 904 0 0.0
.data.rel.ro 73192 73192 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 131372 131372 0 0.0
.text 1703776 1703776 0 0.0
p6 all-clusters-app default (read/write) 2411464 2411464 0 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1369728 1369728 0 0.0
light-app default (read/write) 2334944 2334944 0 0.0
.bss 105516 105516 0 0.0
.data 2408 2408 0 0.0
.text 1293208 1293208 0 0.0
lock-app default (read/write) 2300496 2300496 0 0.0
.bss 105260 105260 0 0.0
.data 2360 2360 0 0.0
.text 1258760 1258760 0 0.0
qpg lighting-app qpg6105+debug (read only) 569848 569848 0 0.0
(read/write) 146936 146936 0 0.0
.bss 89672 89672 0 0.0
.data 1060 1060 0 0.0
.text 564528 564528 0 0.0
lock-app qpg6105+debug (read only) 515956 515956 0 0.0
(read/write) 146940 146940 0 0.0
.bss 89144 89144 0 0.0
.data 992 992 0 0.0
.text 510636 510636 0 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 845562 845562 0 0.0
bss 87472 87472 0 0.0
noinit 37160 37160 0 0.0
text 590686 590686 0 0.0

@msandstedt msandstedt force-pushed the 13503-add-admin-subject-and-ipk-interfaces branch from 9c85b56 to 0c51b64 Compare January 25, 2022 22:13
@github-actions
Copy link

github-actions bot commented Jan 25, 2022

PR #13830: Size comparison from 75b9637 to 0c51b64

Increases (1 build for linux)
platform target config section 75b9637 0c51b64 change % change
linux chip-tool-ipv6only arm64 (read only) 8716252 8720364 4112 0.0
.text 7341284 7345396 4112 0.1
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 75b9637 0c51b64 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 577998 577998 0 0.0
.app_xip_area 483056 483056 0 0.0
.bss 77688 77688 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 839388 839388 0 0.0
(read/write) 127228 127228 0 0.0
.bss 125328 125328 0 0.0
.data 1900 1900 0 0.0
.text 839380 839380 0 0.0
BRD4161A+rpc (read only) 826744 826744 0 0.0
(read/write) 143888 143888 0 0.0
.bss 141888 141888 0 0.0
.data 2000 2000 0 0.0
.text 826736 826736 0 0.0
window-app BRD4161A (read only) 811716 811716 0 0.0
(read/write) 125884 125884 0 0.0
.bss 124028 124028 0 0.0
.data 1856 1856 0 0.0
.text 811708 811708 0 0.0
esp32 all-clusters-app c3devkit (read only) 918892 918892 0 0.0
(read/write) 1384338 1384338 0 0.0
.dram0.bss 70704 70704 0 0.0
.dram0.data 14244 14244 0 0.0
.flash.rodata 180464 180464 0 0.0
.flash.text 918892 918892 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 968091 968091 0 0.0
(read/write) 451368 451368 0 0.0
.dram0.bss 75448 75448 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 209760 209760 0 0.0
.flash.text 962707 962707 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 662736 662736 0 0.0
.bss 77460 77460 0 0.0
.data 1868 1868 0 0.0
.text 577608 577608 0 0.0
lock k32w061+release (read/write) 663776 663776 0 0.0
.bss 77724 77724 0 0.0
.data 1892 1892 0 0.0
.text 578360 578360 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8716252 8720364 4112 0.0
(read/write) 391585 391585 0 0.0
.bss 56033 56033 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 261440 261440 0 0.0
.dynamic 560 560 0 0.0
.got 69232 69232 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 534420 534420 0 0.0
.text 7341284 7345396 4112 0.1
thermostat-no-ble arm64 (read only) 2049708 2049708 0 0.0
(read/write) 146785 146785 0 0.0
.bss 65665 65665 0 0.0
.data 904 904 0 0.0
.data.rel.ro 73192 73192 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 131372 131372 0 0.0
.text 1703776 1703776 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2353048 2353048 0 0.0
.bss 189412 189412 0 0.0
.data 5296 5296 0 0.0
.text 1315648 1315648 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2338968 2338968 0 0.0
.bss 180936 180936 0 0.0
.data 5576 5576 0 0.0
.text 1301568 1301568 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2305784 2305784 0 0.0
.bss 180832 180832 0 0.0
.data 5568 5568 0 0.0
.text 1268384 1268384 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053960 2053960 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016560 1016560 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 946763 946763 0 0.0
bss 119024 119024 0 0.0
rodata 110400 110400 0 0.0
text 639748 639748 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 932267 932267 0 0.0
bss 116068 116068 0 0.0
rodata 102856 102856 0 0.0
text 635140 635140 0 0.0
nrf52840dongle_nrf52840 (read/write) 997443 997443 0 0.0
bss 121864 121864 0 0.0
rodata 115156 115156 0 0.0
text 671944 671944 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 856622 856622 0 0.0
bss 115812 115812 0 0.0
rodata 103576 103576 0 0.0
text 556664 556664 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 913903 913903 0 0.0
bss 119072 119072 0 0.0
rodata 104940 104940 0 0.0
text 612508 612508 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 823958 823958 0 0.0
bss 115888 115888 0 0.0
rodata 98168 98168 0 0.0
text 529460 529460 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 916579 916579 0 0.0
bss 118816 118816 0 0.0
rodata 105328 105328 0 0.0
text 614976 614976 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 911747 911747 0 0.0
bss 118844 118844 0 0.0
rodata 104432 104432 0 0.0
text 611004 611004 0 0.0
shell nrf52840dk_nrf52840 (read/write) 798219 798219 0 0.0
bss 109776 109776 0 0.0
rodata 78288 78288 0 0.0
text 533648 533648 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711022 711022 0 0.0
bss 107664 107664 0 0.0
rodata 72592 72592 0 0.0
text 451324 451324 0 0.0
p6 all-clusters-app default (read/write) 2411464 2411464 0 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1369728 1369728 0 0.0
light-app default (read/write) 2334944 2334944 0 0.0
.bss 105516 105516 0 0.0
.data 2408 2408 0 0.0
.text 1293208 1293208 0 0.0
lock-app default (read/write) 2300496 2300496 0 0.0
.bss 105260 105260 0 0.0
.data 2360 2360 0 0.0
.text 1258760 1258760 0 0.0
qpg lighting-app qpg6105+debug (read only) 569704 569704 0 0.0
(read/write) 146936 146936 0 0.0
.bss 89672 89672 0 0.0
.data 1060 1060 0 0.0
.text 564384 564384 0 0.0
lock-app qpg6105+debug (read only) 515956 515956 0 0.0
(read/write) 146940 146940 0 0.0
.bss 89144 89144 0 0.0
.data 992 992 0 0.0
.text 510636 510636 0 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 845554 845554 0 0.0
bss 87472 87472 0 0.0
noinit 37160 37160 0 0.0
text 590682 590682 0 0.0

@woody-apple woody-apple merged commit d625d35 into project-chip:master Jan 26, 2022
Copy link
Contributor

@tcarmelveilleux tcarmelveilleux left a comment

Choose a reason for hiding this comment

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

LGTM

selissia pushed a commit to selissia/connectedhomeip that referenced this pull request Jan 28, 2022
…roject-chip#13830)

* Add interfaces to pass ipk and adminSubject from op creds delegate

The operational credentials delegate provides interfaces to pass
certificates back to the commissioner, but cannot fully specify the
contents of the AddNOC command.  Missing are the IPK and AdminSubject.
Without these, those can only be managed locally.

This commit adds optional interfaces to pass these from the delegate.
Where AdminSubject is not passed, the commissioner uses its own node ID
as before.  And where IPK is not passed, the commissioner writes a
0-length IPK, which is also as before and is what we are using until
GroupKeyManagement and other dependencies are in place.

Fixes project-chip#13503

* fix android build

* fix sanitization test

* fix iOS build

* per tcarmelveilleux, do not enclose 0-length IPK ind AddNOC

* remove Has methods from CommissioningParameters for brevity

* restyle

* Fix project-chip#12915 merge
@msandstedt msandstedt deleted the 13503-add-admin-subject-and-ipk-interfaces branch March 31, 2022 13:21
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.

Commissioner provides no interface to distribute IPKs or control AdminSubject
5 participants