From 1908402032b0acddfbcdf7eb744c68154453a368 Mon Sep 17 00:00:00 2001 From: C Freeman Date: Fri, 7 Jul 2023 15:02:43 -0400 Subject: [PATCH] Add CD with origin VID/PID != VID/PID (#27616) * Add CD with origin VID/PID != VID/PID CD VID/PID == 0xFFF1/0x8000 (matches existing examples for cd) CD origin VID/PID = 0xFFF2/0x8001 DAC/PAI VID/PID = 0xFFF2/0x8001 Tests: - src/python_testing/test_testing/test_TC_DA_1.2.py (cert test that checks CD cert validity) - credentials/tests/TestCommissionerDUTVectors.cpp (unit test that ensures the test_vector.json is OK) - commissioned all-clusters-app using --dac_provider with chip-tool * Restyled by whitespace * Restyled by prettier-json --------- Co-authored-by: Restyled.io --- .../struct_cd_origin_pid_vid_correct/cd.der | Bin 0 -> 243 bytes .../dac-Cert.der | Bin 0 -> 488 bytes .../dac-Cert.pem | 13 ++++++ .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 +++ .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 +++++ .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 +++ .../test_case_vector.json | 9 ++++ src/tools/chip-cert/Cmd_GenCD.cpp | 5 +++ .../chip-cert/gen_com_dut_test_vectors.py | 42 ++++++++++++++---- 12 files changed, 83 insertions(+), 8 deletions(-) create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/cd.der create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/test_case_vector.json diff --git a/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/cd.der b/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..0207a50466118491b5419078ebc104576f7b5433 GIT binary patch literal 243 zcmXqL{J_Sk)#lOmotKfFX+h&7gU0(zjLe3-2Hb3%32h#Xsmv@)j0V04MT`p^SnNbq z7#LLpegkgh-p|t(`6OVVj>IDG!B~6(C literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..28185b2ea281a578742ffa77621a02265d0083c4 GIT binary patch literal 488 zcmXqLVtiuI#MrffnTe5!iNmQRCHU^*1z!!g*f_M>JkHs&Ff$pr8A=$4u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsLK9`;VX-hUFf>pQ=QT1m zFgGwU0D~wAeoG)QG%^MvQ%h6JD4aIAI69-5iQlG317S9Hu=|-9p&nsoWM_6_VCnW# z|Lb-^bWh(d9tqXWciaW}-M&sx`J>rW{Y<$iE9sQ2qR!?&Tc)d*@GAW*-+n=1+tCl# zx1Es>s5*CUu57IV=i&r|I0GJFV8{wHGX7^_GGH*^1M&DlJYZn4HyFr*_I0u0gy5fw`*ouw-nA6zV1^6$LXQ`IEp1?|W| z&+Nfq;L4=n{>-uNd6+;%Q+wwIed#McEnDV_MG4&8`>DD3jzFfVIg=v8i@4LAHdV_` e-~PF1>6d=RIs7&M-`n(kd6wU&|M2-JkHs&Ff$oQ8A=$4u`!3TF!S*H zCYF?>7Ab_J7MCalI64|Ai1Qj58<-oI7=S^P1ivK^7#bM^k*TGrWt4#%PTih{A_hWi zT-t1mER0QyYM2;#Slry)jL<}xcvvh93=9n-4TRa)!ERz=ggTCyk)7FzfyF}Z@05dA zSZ1Gf-NBrp>3Y#5^>D~Ehbfr_s*^a`mR_5$eD;CWr-zZpk~Z*}IGxH=vG=P?{!-Dp z=l62i?${%@`4*=cqyQbl94af!$oQXy!+;G)F)=b2@PWkmL1MsQU}Q6p1@ZY<#8^aB zETwdou3&s{v1G}=^IA_;lav><8_0vCm05s+)gV$4^PF`@cE4Z#@yV+aPCLKK%xJob z9H`8m3|sN`Es_3zgl g{}MwQZl*W|&yd`6UBc|*A71bGa}{mGWz@C<06VaTl>h($ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Cert.pem new file mode 100644 index 00000000000000..123132dc482872 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIIVwXbuTJAkMEwCgYIKoZIzj0EAwIwGjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMCAXDTIzMDcwNDAwMDAwMFoYDzk5OTkxMjMxMjM1OTU5 +WjBGMRgwFgYDVQQDDA9NYXR0ZXIgVGVzdCBQQUkxFDASBgorBgEEAYKifAIBDARG +RkYyMRQwEgYKKwYBBAGConwCAgwEODAwMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABDge/ZTB1ASbzUW4A2gpRdE0ZcNUlkCUaXAlkgkGpdafI83gOvLhWcZisA40 +QsppJD9OeWP0eIW8+6cdi13E2w6jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQAwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQkORospagB4NF0pP7PKuUlYiOghzAfBgNV +HSMEGDAWgBR4XOcFuGuPTm/Hk6pgy0PqaWiC1TAKBggqhkjOPQQDAgNJADBGAiEA +uxLDhQ3owmVZ8gopMaMGekcofyjciv4luAyTA5fJR7UCIQD2fHv76wj+YVSA2WRC +U5gZvNcYNtH8DUvvnSE8Fxwmtw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..751b0d641aa14fa8f4c7f80370c22d56ecc38b7b GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rzzk%z0BLbu}8DW~;J2ZBT_v@)!&G>_f~XS0Z142kxK>1_&yK zNX|V20SBQ(13~}