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

Check VID/PID when doing device attestation #14551

Merged
merged 2 commits into from
Feb 4, 2022

Conversation

cecille
Copy link
Contributor

@cecille cecille commented Jan 28, 2022

Problem

Device attestation currently uses a hardcoded vid/pid, not the one read from the basic cluster

Change overview

  • Adds VID/PID check to device attestation.

Testing

  • VID/PID are now as expected, commissioning passes on linux

@github-actions
Copy link

github-actions bot commented Jan 28, 2022

PR #14551: Size comparison from eb628d3 to e66499b

Increases above 0.2%:

platform target config section eb628d3 e66499b change % change
linux tv-app debug (read only) 2338913 2385473 46560 2.0
.data.rel.ro 71408 71824 416 0.6
.rodata 198764 199276 512 0.3
.text 1970466 2015554 45088 2.3
Increases (3 builds for linux)
platform target config section eb628d3 e66499b change % change
linux chip-tool debug (read only) 6959877 6968117 8240 0.1
.rodata 415745 416289 544 0.1
.text 6193605 6201301 7696 0.1
chip-tool-ipv6only arm64 (read only) 6928124 6935628 7504 0.1
(read/write) 283281 283313 32 0.0
.got 44528 44568 40 0.1
.rodata 396580 397092 512 0.1
.text 5949252 5956116 6864 0.1
tv-app debug (read only) 2338913 2385473 46560 2.0
(read/write) 321440 321888 448 0.1
.bss 241056 241088 32 0.0
.data.rel.ro 71408 71824 416 0.6
.rodata 198764 199276 512 0.3
.text 1970466 2015554 45088 2.3
Full report (25 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
platform target config section eb628d3 e66499b change % change
cyw30739 light cyw930739m2evb_01 (read/write) 578126 578126 0 0.0
.app_xip_area 484220 484220 0 0.0
.bss 76652 76652 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock-app CYW30739 (read/write) 536146 536146 0 0.0
.app_xip_area 443784 443784 0 0.0
.bss 75148 75148 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 842968 842968 0 0.0
(read/write) 126200 126200 0 0.0
.bss 124296 124296 0 0.0
.data 1900 1900 0 0.0
.text 842960 842960 0 0.0
BRD4161A+rpc (read only) 830320 830320 0 0.0
(read/write) 142856 142856 0 0.0
.bss 140856 140856 0 0.0
.data 2000 2000 0 0.0
.text 830312 830312 0 0.0
window-app BRD4161A (read only) 815576 815576 0 0.0
(read/write) 124852 124852 0 0.0
.bss 122996 122996 0 0.0
.data 1856 1856 0 0.0
.text 815568 815568 0 0.0
k32w light k32w061+release (read/write) 662956 662956 0 0.0
.bss 76428 76428 0 0.0
.data 1868 1868 0 0.0
.text 578860 578860 0 0.0
lock k32w061+release (read/write) 663844 663844 0 0.0
.bss 76692 76692 0 0.0
.data 1892 1892 0 0.0
.text 579460 579460 0 0.0
linux all-clusters-app debug (read only) 2288873 2288873 0 0.0
(read/write) 146288 146288 0 0.0
.bss 62560 62560 0 0.0
.data 1200 1200 0 0.0
.data.rel.ro 76824 76824 0 0.0
.dynamic 592 592 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 203957 203957 0 0.0
.text 1924258 1924258 0 0.0
bridge-app debug+rpc (read only) 1624021 1624021 0 0.0
(read/write) 88936 88936 0 0.0
.bss 44896 44896 0 0.0
.data 1794 1794 0 0.0
.data.rel.ro 37088 37088 0 0.0
.dynamic 592 592 0 0.0
.got 3968 3968 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 137460 137460 0 0.0
.text 1371781 1371781 0 0.0
chip-tool debug (read only) 6959877 6968117 8240 0.1
(read/write) 180336 180336 0 0.0
.bss 37240 37240 0 0.0
.data 1064 1064 0 0.0
.data.rel.ro 136016 136016 0 0.0
.dynamic 608 608 0 0.0
.got 4736 4736 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 415745 416289 544 0.1
.text 6193605 6201301 7696 0.1
chip-tool-ipv6only arm64 (read only) 6928124 6935628 7504 0.1
(read/write) 283281 283313 32 0.0
.bss 55537 55537 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 178312 178312 0 0.0
.dynamic 560 560 0 0.0
.got 44528 44568 40 0.1
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 396580 397092 512 0.1
.text 5949252 5956116 6864 0.1
door-lock-app debug (read only) 1845633 1845633 0 0.0
(read/write) 119040 119040 0 0.0
.bss 51136 51136 0 0.0
.data 994 994 0 0.0
.data.rel.ro 61504 61504 0 0.0
.dynamic 592 592 0 0.0
.got 4104 4104 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 170780 170780 0 0.0
.text 1527122 1527122 0 0.0
lighting-app debug+rpc (read only) 1945561 1945561 0 0.0
(read/write) 123968 123968 0 0.0
.bss 52056 52056 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 65040 65040 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 704 704 0 0.0
.rodata 160785 160785 0 0.0
.text 1631026 1631026 0 0.0
ota-provider-app debug (read only) 1624809 1624809 0 0.0
(read/write) 88808 88808 0 0.0
.bss 50080 50080 0 0.0
.data 1064 1064 0 0.0
.data.rel.ro 32168 32168 0 0.0
.dynamic 608 608 0 0.0
.got 4240 4240 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 147302 147302 0 0.0
.text 1360450 1360450 0 0.0
ota-requestor-app debug (read only) 1633217 1633217 0 0.0
(read/write) 91840 91840 0 0.0
.bss 51360 51360 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 34088 34088 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 143735 143735 0 0.0
.text 1373458 1373458 0 0.0
shell debug (read only) 2263785 2263785 0 0.0
(read/write) 148064 148064 0 0.0
.bss 70272 70272 0 0.0
.data 768 768 0 0.0
.data.rel.ro 71344 71344 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 204690 204690 0 0.0
.text 1904370 1904370 0 0.0
thermostat-no-ble arm64 (read only) 2080748 2080748 0 0.0
(read/write) 149537 149537 0 0.0
.bss 67169 67169 0 0.0
.data 960 960 0 0.0
.data.rel.ro 74288 74288 0 0.0
.dynamic 560 560 0 0.0
.got 4144 4144 0 0.0
.init 24 24 0 0.0
.init_array 336 336 0 0.0
.rodata 129932 129932 0 0.0
.text 1733472 1733472 0 0.0
tv-app debug (read only) 2338913 2385473 46560 2.0
(read/write) 321440 321888 448 0.1
.bss 241056 241088 32 0.0
.data 2944 2944 0 0.0
.data.rel.ro 71408 71824 416 0.6
.dynamic 592 592 0 0.0
.got 4520 4520 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 198764 199276 512 0.3
.text 1970466 2015554 45088 2.3
p6 all-clusters-app default (read/write) 2443056 2443056 0 0.0
.bss 116732 116732 0 0.0
.data 2584 2584 0 0.0
.text 1401320 1401320 0 0.0
light-app default (read/write) 2338552 2338552 0 0.0
.bss 104484 104484 0 0.0
.data 2408 2408 0 0.0
.text 1296816 1296816 0 0.0
lock-app default (read/write) 2304048 2304048 0 0.0
.bss 104228 104228 0 0.0
.data 2360 2360 0 0.0
.text 1262312 1262312 0 0.0
qpg lighting-app qpg6105+debug (read only) 570884 570884 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88640 88640 0 0.0
.data 1060 1060 0 0.0
.text 565564 565564 0 0.0
lock-app qpg6105+debug (read only) 516996 516996 0 0.0
(read/write) 146940 146940 0 0.0
.bss 88112 88112 0 0.0
.data 992 992 0 0.0
.text 511676 511676 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) 845786 845786 0 0.0
bss 86440 86440 0 0.0
noinit 37160 37160 0 0.0
text 592518 592518 0 0.0

@pullapprove pullapprove bot requested a review from isiu-apple January 29, 2022 05:03
src/controller/AutoCommissioner.cpp Outdated Show resolved Hide resolved
@cecille
Copy link
Contributor Author

cecille commented Feb 3, 2022

Please do not submit until I PSA the platform devs about this change.

@github-actions
Copy link

github-actions bot commented Feb 3, 2022

PR #14551: Size comparison from 4267a9b to bcf0c71

Increases (3 builds for linux)
platform target config section 4267a9b bcf0c71 change % change
linux chip-tool debug (read only) 7215949 7217741 1792 0.0
.text 6440645 6442437 1792 0.0
chip-tool-ipv6only arm64 (read only) 7164708 7166436 1728 0.0
.text 6173044 6174772 1728 0.0
tv-app debug (read only) 2512505 2514409 1904 0.1
.text 2146498 2148402 1904 0.1
Full report (43 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 4267a9b bcf0c71 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 586702 586702 0 0.0
.app_xip_area 493300 493300 0 0.0
.bss 76124 76124 0 0.0
.data 620 620 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 544602 544602 0 0.0
.app_xip_area 452768 452768 0 0.0
.bss 74596 74596 0 0.0
.data 584 584 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 569014 569014 0 0.0
.app_xip_area 467860 467860 0 0.0
.bss 83588 83588 0 0.0
.data 528 528 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 855952 855952 0 0.0
(read/write) 125880 125880 0 0.0
.bss 123960 123960 0 0.0
.data 1920 1920 0 0.0
.text 855944 855944 0 0.0
BRD4161A+rpc (read only) 843320 843320 0 0.0
(read/write) 142544 142544 0 0.0
.bss 140520 140520 0 0.0
.data 2020 2020 0 0.0
.text 843312 843312 0 0.0
window-app BRD4161A (read only) 828180 828180 0 0.0
(read/write) 124520 124520 0 0.0
.bss 122644 122644 0 0.0
.data 1876 1876 0 0.0
.text 828172 828172 0 0.0
esp32 all-clusters-app c3devkit (read only) 934576 934576 0 0.0
(read/write) 1401026 1401026 0 0.0
.dram0.bss 70056 70056 0 0.0
.dram0.data 14268 14268 0 0.0
.flash.rodata 197800 197800 0 0.0
.flash.text 934576 934576 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 982767 982767 0 0.0
(read/write) 465388 465388 0 0.0
.dram0.bss 74816 74816 0 0.0
.dram0.data 34024 34024 0 0.0
.flash.rodata 224420 224420 0 0.0
.flash.text 977383 977383 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 671016 671016 0 0.0
.bss 75828 75828 0 0.0
.data 1880 1880 0 0.0
.text 587508 587508 0 0.0
lock k32w061+release (read/write) 672560 672560 0 0.0
.bss 76148 76148 0 0.0
.data 1920 1920 0 0.0
.text 588692 588692 0 0.0
linux all-clusters-app debug (read only) 2310049 2310049 0 0.0
(read/write) 139872 139872 0 0.0
.bss 54592 54592 0 0.0
.data 1200 1200 0 0.0
.data.rel.ro 78392 78392 0 0.0
.dynamic 592 592 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 204005 204005 0 0.0
.text 1944114 1944114 0 0.0
bridge-app debug+rpc (read only) 1695565 1695565 0 0.0
(read/write) 84504 84504 0 0.0
.bss 39296 39296 0 0.0
.data 1986 1986 0 0.0
.data.rel.ro 38064 38064 0 0.0
.dynamic 592 592 0 0.0
.got 3968 3968 0 0.0
.init 27 27 0 0.0
.init_array 560 560 0 0.0
.rodata 139028 139028 0 0.0
.text 1440245 1440245 0 0.0
chip-tool debug (read only) 7215949 7217741 1792 0.0
(read/write) 180424 180424 0 0.0
.bss 29192 29192 0 0.0
.data 1088 1088 0 0.0
.data.rel.ro 144168 144168 0 0.0
.dynamic 608 608 0 0.0
.got 4760 4760 0 0.0
.init 27 27 0 0.0
.init_array 600 600 0 0.0
.rodata 407573 407573 0 0.0
.text 6440645 6442437 1792 0.0
chip-tool-ipv6only arm64 (read only) 7164708 7166436 1728 0.0
(read/write) 283233 283233 0 0.0
.bss 47457 47457 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 185496 185496 0 0.0
.dynamic 560 560 0 0.0
.got 45376 45376 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 390412 390412 0 0.0
.text 6173044 6174772 1728 0.0
door-lock-app debug (read only) 1893137 1893137 0 0.0
(read/write) 110696 110696 0 0.0
.bss 42272 42272 0 0.0
.data 962 962 0 0.0
.data.rel.ro 62048 62048 0 0.0
.dynamic 592 592 0 0.0
.got 4104 4104 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 171804 171804 0 0.0
.text 1573074 1573074 0 0.0
lighting-app debug+rpc (read only) 1995329 1995329 0 0.0
(read/write) 115784 115784 0 0.0
.bss 43224 43224 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 65664 65664 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 712 712 0 0.0
.rodata 161745 161745 0 0.0
.text 1679042 1679042 0 0.0
ota-provider-app debug (read only) 1691233 1691233 0 0.0
(read/write) 80560 80560 0 0.0
.bss 41152 41152 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 32808 32808 0 0.0
.dynamic 608 608 0 0.0
.got 4240 4240 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 149414 149414 0 0.0
.text 1423778 1423778 0 0.0
ota-requestor-app debug (read only) 1696529 1696529 0 0.0
(read/write) 83512 83512 0 0.0
.bss 42464 42464 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 34616 34616 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 144695 144695 0 0.0
.text 1435042 1435042 0 0.0
shell debug (read only) 2283249 2283249 0 0.0
(read/write) 141360 141360 0 0.0
.bss 62016 62016 0 0.0
.data 768 768 0 0.0
.data.rel.ro 72896 72896 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 204754 204754 0 0.0
.text 1922498 1922498 0 0.0
thermostat-no-ble arm64 (read only) 2121884 2121884 0 0.0
(read/write) 140705 140705 0 0.0
.bss 57745 57745 0 0.0
.data 952 952 0 0.0
.data.rel.ro 74880 74880 0 0.0
.dynamic 560 560 0 0.0
.got 4152 4152 0 0.0
.init 24 24 0 0.0
.init_array 336 336 0 0.0
.rodata 131068 131068 0 0.0
.text 1772864 1772864 0 0.0
tv-app debug (read only) 2512505 2514409 1904 0.1
(read/write) 139512 139512 0 0.0
.bss 57248 57248 0 0.0
.data 3104 3104 0 0.0
.data.rel.ro 73144 73144 0 0.0
.dynamic 592 592 0 0.0
.got 4520 4520 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 193132 193132 0 0.0
.text 2146498 2148402 1904 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2386272 2386272 0 0.0
.bss 188964 188964 0 0.0
.data 5280 5280 0 0.0
.text 1348872 1348872 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2347184 2347184 0 0.0
.bss 181072 181072 0 0.0
.data 5592 5592 0 0.0
.text 1309784 1309784 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2311176 2311176 0 0.0
.bss 180960 180960 0 0.0
.data 5576 5576 0 0.0
.text 1273776 1273776 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) 2301508 2301508 0 0.0
.bss 178244 178244 0 0.0
.data 5392 5392 0 0.0
.text 1264080 1264080 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 994391 994391 0 0.0
bss 120540 120540 0 0.0
rodata 117092 117092 0 0.0
text 677892 677892 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 976267 976267 0 0.0
bss 116396 116396 0 0.0
rodata 108480 108480 0 0.0
text 672960 672960 0 0.0
nrf52840dongle_nrf52840 (read/write) 1011043 1011043 0 0.0
bss 121904 121904 0 0.0
rodata 115932 115932 0 0.0
text 683344 683344 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 903830 903830 0 0.0
bss 117104 117104 0 0.0
rodata 110384 110384 0 0.0
text 595576 595576 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 926495 926495 0 0.0
bss 118880 118880 0 0.0
rodata 105444 105444 0 0.0
text 623712 623712 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 836766 836766 0 0.0
bss 115472 115472 0 0.0
rodata 98648 98648 0 0.0
text 542172 542172 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541779 541779 0 0.0
bss 52588 52588 0 0.0
rodata 50048 50048 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 929115 929115 0 0.0
bss 118632 118632 0 0.0
rodata 105912 105912 0 0.0
text 626048 626048 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 924079 924079 0 0.0
bss 118632 118632 0 0.0
rodata 104916 104916 0 0.0
text 621988 621988 0 0.0
shell nrf52840dk_nrf52840 (read/write) 802571 802571 0 0.0
bss 110968 110968 0 0.0
rodata 78480 78480 0 0.0
text 535544 535544 0 0.0
p6 all-clusters-app default (read/write) 2447200 2447200 0 0.0
.bss 117124 117124 0 0.0
.data 2568 2568 0 0.0
.text 1405464 1405464 0 0.0
light-app default (read/write) 2352496 2352496 0 0.0
.bss 106268 106268 0 0.0
.data 2432 2432 0 0.0
.text 1310760 1310760 0 0.0
lock-app default (read/write) 2317688 2317688 0 0.0
.bss 105980 105980 0 0.0
.data 2392 2392 0 0.0
.text 1275952 1275952 0 0.0
qpg lighting-app qpg6105+debug (read only) 579272 579272 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88120 88120 0 0.0
.data 1084 1084 0 0.0
.text 573952 573952 0 0.0
lock-app qpg6105+debug (read only) 525312 525312 0 0.0
(read/write) 146936 146936 0 0.0
.bss 87560 87560 0 0.0
.data 1020 1020 0 0.0
.text 519992 519992 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) 857886 857886 0 0.0
bss 88476 88476 0 0.0
noinit 37160 37160 0 0.0
text 601180 601180 0 0.0

@bzbarsky-apple bzbarsky-apple merged commit a7d7d8d into project-chip:master Feb 4, 2022
andy31415 added a commit to andy31415/connectedhomeip that referenced this pull request Feb 4, 2022
andy31415 added a commit that referenced this pull request Feb 4, 2022
cecille added a commit to cecille/connectedhomeip that referenced this pull request Feb 7, 2022
cecille added a commit to cecille/connectedhomeip that referenced this pull request Feb 7, 2022
andy31415 pushed a commit that referenced this pull request Feb 9, 2022
* Add new certs for development.

We are moving to have the certificate verification check the VID and PID
between the basic cluster and the DAC/CD. Right now, none of the examples
pass prorperly because the VIDs and PIDs do not match. In order to
facilitate development while platforms are developing their own
DeviceAttestationCredentialsProvider, we have provided a new set of
development certs that can be used for development only.

This new scheme is backed by the test PAA in attestation/test/. This was
done to reduce the number of changes required to the controllers, which
already contain this PAA in their trusted certs.

The PAI has been changed to omit the PID. This means the we can use a
common PAI cert for all products. The vendor ID for the PAI is 0xFFF1,
which a known test vendor for Matter.

The DACs below are signed by the new PAI and include certs and keys
for PIDs 0x8000-0x801F.

* Use new certificates in attestation.

Test: Can commission linux lighting app using pid 0x8000

* Add new certificate declaration

This new CD will veryify against all products with VID 0xFFF1
and PIDs in the range of 0x8000-0x8063.

Test: Verified on linux lighitng app by forcing app and controller
      to use pid 0x8001

* Update example PIDs.

Please see documentation in docs/examples.

* Add explicit warning for PID/VID mismatch.

* Revert "Revert "Check VID/PID when doing device attestation (#14551)" (#14795)"

This reverts commit ad28f32.

* Fix tests

Use hard coded cert values for tests rather than going through the
example creds provider.

* Update src/controller/AutoCommissioner.cpp

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>

* Update src/controller/CHIPDeviceController.h

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>

* Restyled by clang-format

* Fix two spelling errors

* Update src/credentials/tests/TestDeviceAttestationCredentials.cpp

Co-authored-by: Evgeny Margolis <[email protected]>

* Use define for CD size.

* YOU get a bracket, YOU get a bracket...

everybody gets a bracket!

* Spelling error.

* Fix P6

Sneaky P6...got by me.

* Put function names in single quotes

I think this will appease the spell checker.

* Fine, spell checker. Here you go.

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Evgeny Margolis <[email protected]>
@cecille cecille deleted the dac_vid_pid branch February 18, 2022 19:33
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