diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/cd.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/cd.der new file mode 100644 index 00000000000000..53e5cb4d67a06b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Cert.der new file mode 100644 index 00000000000000..80c0de2e6a7887 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Cert.pem new file mode 100644 index 00000000000000..2e1d0da26077b5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIDtJw5lBJd2IwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +aHdm7IC/HRIUD7pJ9BGAbZrjoLqtusIoXHEvNtH337dSpJ33XmTurNOVM5djDaDQ +JCyTMdJRGPzyW9w3NSvWc6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFP5jEcg1BvluzHKajDenbFY3MWfeMB8GA1UdIwQYMBaAFI7a +GmEQADreTTAcq0PbQI4sd/oUMAoGCCqGSM49BAMCA0gAMEUCIEayqWJRPerLDxbG +9lbZPDYAHcMM0Y9uCnI7pk+ViPBrAiEA+UYtsuqD6UMmZuSqSuq5DbsSPlQRSOZc +An01lyXwtbk= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Key.der new file mode 100644 index 00000000000000..3e8026da7f527a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Key.pem new file mode 100644 index 00000000000000..784eeb332cc7ca --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICGpPB4uswCmHUOinM96MynNntO/Yr1Fw8T2Ep5siSncoAoGCCqGSM49 +AwEHoUQDQgAEaHdm7IC/HRIUD7pJ9BGAbZrjoLqtusIoXHEvNtH337dSpJ33XmTu +rNOVM5djDaDQJCyTMdJRGPzyW9w3NSvWcw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Cert.der new file mode 100644 index 00000000000000..ebfe85e6b0f5e4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Cert.pem new file mode 100644 index 00000000000000..dc8066cb07163b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIG+yCQ0e7q7cwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQtjUKXG5iMToM+b9qyITgksM1W3FDF +7X44zEiDpmI3o4OS/wegQFjhG60UDzpElL0fpWWpKaIa5K7/F6vcTse/o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUjtoa +YRAAOt5NMByrQ9tAjix3+hQwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAOJyYz0uUlxhw9hVExzpW84h3aolmWw93SAx +Udds3NxvAiAs7MlDu7sw4iNL51MgwBYRa3MyVV8BUyU6dS7E02iwnQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Key.der new file mode 100644 index 00000000000000..50e04be6267d4f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Key.pem new file mode 100644 index 00000000000000..33d5c3f0350d51 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJeiWx406I1+OsL0h1xWOY93lhbyZLoZQTMhJyyZ5LhQoAoGCCqGSM49 +AwEHoUQDQgAELY1ClxuYjE6DPm/asiE4JLDNVtxQxe1+OMxIg6ZiN6ODkv8HoEBY +4RutFA86RJS9H6VlqSmiGuSu/xer3E7Hvw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/test_case_vector.json new file mode 100644 index 00000000000000..4cc3cde0bbe43f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count0/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The authorized_paa_list contains one valid PAA which is authorized to sign the PAI.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202080ed270e650497762300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004687766ec80bf1d12140fba49f411806d9ae3a0baadbac2285c712f36d1f7dfb752a49df75e64eeacd3953397630da0d0242c9331d25118fcf25bdc37352bd673a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414fe6311c83506f96ecc729a8c37a76c56373167de301f0603551d230418301680148eda1a6110003ade4d301cab43db408e2c77fa14300a06082a8648ce3d0403020348003045022046b2a962513deacb0f16c6f656d93c36001dc30cd18f6e0a723ba64f9588f06b022100f9462db2ea83e9432666e4aa4aeab90dbb123e541148e65c027d359725f0b5b9", + "pai_cert": "308201d43082017aa00302010202081bec824347bbabb7300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200042d8d42971b988c4e833e6fdab2213824b0cd56dc50c5ed7e38cc4883a66237a38392ff07a04058e11bad140f3a4494bd1fa565a929a21ae4aeff17abdc4ec7bfa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604148eda1a6110003ade4d301cab43db408e2c77fa14301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100e272633d2e525c61c3d855131ce95bce21ddaa25996c3ddd203151d76cdcdc6f02202cecc943bbbb30e2234be75320c016116b7332555f0153253a752ec4d368b09d", + "certification_declaration": "3081ec06092a864886f70d010702a081de3081db020103310d300b0609608648016503040201304806092a864886f70d010701a03b0439152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b1818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100eb42d6fe79c28db107bb6564695e2b53c990b500b97587eea57accb8034016a802202d2c21557fe74e1cba1444f14e844c79200d495fd86d28c1194966e7a0e0049b", + "dac_private_key": "21a93c1e2eb300a61d43a29ccf7a3329cd9ed3bf62bd45c3c4f6129e6c8929dc", + "dac_public_key": "04687766ec80bf1d12140fba49f411806d9ae3a0baadbac2285c712f36d1f7dfb752a49df75e64eeacd3953397630da0d0242c9331d25118fcf25bdc37352bd673" +} diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/cd.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/cd.der new file mode 100644 index 00000000000000..db95fba7b30b2a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Cert.der new file mode 100644 index 00000000000000..5858c42dafc644 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Cert.pem new file mode 100644 index 00000000000000..d40f0e615d6609 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIK8pbdgy1VcgwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +Rj6Qncdf/SueNI8ZRxZNtM/NC1DZ9DzNIPHfSf+t0bNP6x4zUzOPeav//tyhqC/j +VXKkpgOAa0bVbR5kAKKE4qNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFAHOVpBnnpk6BcVnpCA+7NdUGsUhMB8GA1UdIwQYMBaAFCqm +Z1/xFOE20znvG+X0ec+jrdTKMAoGCCqGSM49BAMCA0gAMEUCIQCEREcr7Lzqn5ai +yT7WtN3tEgagSBgArTRJup7Spfri8QIgXsX5Y0+GP5E4aAIh6MAsvIn/SOVycnk0 +ZMOoZML5u1g= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Key.der new file mode 100644 index 00000000000000..681ebe04f81f2d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Key.pem new file mode 100644 index 00000000000000..d6190f5d6b1f04 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMhqmLcYCUX/E7Pfe7VlQyQKRmEPEJ7LJMldfCgaVCa8oAoGCCqGSM49 +AwEHoUQDQgAERj6Qncdf/SueNI8ZRxZNtM/NC1DZ9DzNIPHfSf+t0bNP6x4zUzOP +eav//tyhqC/jVXKkpgOAa0bVbR5kAKKE4g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Cert.der new file mode 100644 index 00000000000000..f4440d034740df Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Cert.pem new file mode 100644 index 00000000000000..e9a7d69d3a1425 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIG8kqUmYTRaYwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASWb8VOfeZJ7r1OSB68PiboYRviYGy3 +RL4ePhIb/kcx3e4wFrLGPGHvv+ob52vjel6yABOfYVzhoL+mDikTcwL/o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUKqZn +X/EU4TbTOe8b5fR5z6Ot1MowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAIYxtlFKXyQ/qrFj4/e7eMoR7OzIld2u680v +6+fujQ3yAiBUC1rWdBazLJJdVTWTuxxXC+pgMQXmJTEM1Igi+odjWg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Key.der new file mode 100644 index 00000000000000..2c8c687848afc9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Key.pem new file mode 100644 index 00000000000000..08f6851bb59da6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOYZnNFrOFWzHr8wf7ZA2nTFvclJqCTAHQ2RmPuvw541oAoGCCqGSM49 +AwEHoUQDQgAElm/FTn3mSe69TkgevD4m6GEb4mBst0S+Hj4SG/5HMd3uMBayxjxh +77/qG+dr43pesgATn2Fc4aC/pg4pE3MC/w== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/test_case_vector.json new file mode 100644 index 00000000000000..2717d050c9f7b7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_invalid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The authorized_paa_list contains ten PAAs none of which is a valid PAA authorized to sign the PAI.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202082bca5b760cb555c8300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004463e909dc75ffd2b9e348f1947164db4cfcd0b50d9f43ccd20f1df49ffadd1b34feb1e3353338f79abfffedca1a82fe35572a4a603806b46d56d1e6400a284e2a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041401ce5690679e993a05c567a4203eecd7541ac521301f0603551d230418301680142aa6675ff114e136d339ef1be5f479cfa3add4ca300a06082a8648ce3d04030203480030450221008444472becbcea9f96a2c93ed6b4dded1206a0481800ad3449ba9ed2a5fae2f102205ec5f9634f863f9138680221e8c02cbc89ff48e57272793464c3a864c2f9bb58", + "pai_cert": "308201d43082017aa00302010202081bc92a52661345a6300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004966fc54e7de649eebd4e481ebc3e26e8611be2606cb744be1e3e121bfe4731ddee3016b2c63c61efbfea1be76be37a5eb200139f615ce1a0bfa60e29137302ffa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604142aa6675ff114e136d339ef1be5f479cfa3add4ca301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450221008631b6514a5f243faab163e3f7bb78ca11ececc895ddaeebcd2febe7ee8d0df20220540b5ad67416b32c925d553593bb1c570bea603105e625310cd48822fa87635a", + "certification_declaration": "308201d106092a864886f70d010702a08201c2308201be020103310d300b06096086480165030402013082012806092a864886f70d010701a082011904820115152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe662010140bbbcabbc5016577aa8b44ffb90fcca140fe662010140bbb35bbc5016577aa8b44ffb90fcca140fe662010140bbb3544c5016577aa8b44ffb90fcca140fe662010140bbb35443a016577aa8b44ffb90fcca140fe662010140bbb35443afe6577aa8b44ffb90fcca140fe662010140bbb35443afe9a77aa8b44ffb90fcca140fe662010140bbb35443afe9a88aa8b44ffb90fcca140fe662010140bbb35443afe9a88558b44ffb90fcca140fe662010140bbb35443afe9a88557444ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100e8d48d7040c6268533898c0fa4830938a3b4c21240cb6fa8109dbba8ad6a2a6b022100d7231e9fde1b472e481d412c799c303577912e0ada5c2ef192c74a49f6ed5c97", + "dac_private_key": "c86a98b7180945ff13b3df7bb56543240a46610f109ecb24c95d7c281a5426bc", + "dac_public_key": "04463e909dc75ffd2b9e348f1947164db4cfcd0b50d9f43ccd20f1df49ffadd1b34feb1e3353338f79abfffedca1a82fe35572a4a603806b46d56d1e6400a284e2" +} diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/cd.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/cd.der new file mode 100644 index 00000000000000..0cc501a035e017 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Cert.der new file mode 100644 index 00000000000000..3351b5bffcdf10 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Cert.pem new file mode 100644 index 00000000000000..a2e446179b9044 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIf1mCoDxz4yYwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +iFaVmjbYp9C9gJtoElpmY5EQ0iBw9wEjvUP0J/COujvDi58sTvR5CPovGupplS9a +7T5XFbe4awTlG9CVKToyq6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFLKeOK0VZRfBgjT6Mh5EttzqTipzMB8GA1UdIwQYMBaAFHSX +aLhQ+/ogweNwQqzkjJxn6/SHMAoGCCqGSM49BAMCA0gAMEUCIQC6jKkrvF86l/xg +DTmrDAOPbSa6e6UcHEv3FIVY2U5blgIgLb9KpOg8bcgeq2G4URM55JdvxK8UTx5B +p89RCgo6NlY= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Key.der new file mode 100644 index 00000000000000..0461728b2b8258 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Key.pem new file mode 100644 index 00000000000000..d251900f6489a4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIE+dxvaEHTTPjeplvsFNzv7VHLu6Z4eng9enqZqoEfqJoAoGCCqGSM49 +AwEHoUQDQgAEiFaVmjbYp9C9gJtoElpmY5EQ0iBw9wEjvUP0J/COujvDi58sTvR5 +CPovGupplS9a7T5XFbe4awTlG9CVKToyqw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Cert.der new file mode 100644 index 00000000000000..45093e62652cd0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Cert.pem new file mode 100644 index 00000000000000..49e53ae204387b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIIbZOk9e/o6C4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASE3aaZb3xnAzzOamqq2dYzgeYZLbI7 +zCIpN33TdTjxFnzNWgU2EjzT3bbzmf95R64vaZuw3ctblKtx6f9xCrT0o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUdJdo +uFD7+iDB43BCrOSMnGfr9IcwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgLqiaveztkXqVy7NaJ1lXMY+iBu8gnLnQJEhE +dIyXT4ACIBNNP0+W8LUwjtSP6DneliN9DQLeAdnxhb6O60n0G4Ua +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Key.der new file mode 100644 index 00000000000000..e57e30892702ba Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Key.pem new file mode 100644 index 00000000000000..c845d07e07f218 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGb30EUs4LkuZ0sdJBYhCWqd9Fzcuu+qj9NM5LD0yuIToAoGCCqGSM49 +AwEHoUQDQgAEhN2mmW98ZwM8zmpqqtnWM4HmGS2yO8wiKTd903U48RZ8zVoFNhI8 +092285n/eUeuL2mbsN3LW5Srcen/cQq09A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/test_case_vector.json new file mode 100644 index 00000000000000..9ea14e2c24d7d6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count10_valid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The authorized_paa_list contains ten PAAs one of which is valid PAA authorized to sign the PAI.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa00302010202087f5982a03c73e326300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200048856959a36d8a7d0bd809b68125a66639110d22070f70123bd43f427f08eba3bc38b9f2c4ef47908fa2f1aea69952f5aed3e5715b7b86b04e51bd095293a32aba360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414b29e38ad156517c18234fa321e44b6dcea4e2a73301f0603551d23041830168014749768b850fbfa20c1e37042ace48c9c67ebf487300a06082a8648ce3d0403020348003045022100ba8ca92bbc5f3a97fc600d39ab0c038f6d26ba7ba51c1c4bf7148558d94e5b9602202dbf4aa4e83c6dc81eab61b8511339e4976fc4af144f1e41a7cf510a0a3a3656", + "pai_cert": "308201d33082017aa00302010202086d93a4f5efe8e82e300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000484dda6996f7c67033cce6a6aaad9d63381e6192db23bcc2229377dd37538f1167ccd5a0536123cd3ddb6f399ff7947ae2f699bb0ddcb5b94ab71e9ff710ab4f4a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414749768b850fbfa20c1e37042ace48c9c67ebf487301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402202ea89abdeced917a95cbb35a275957318fa206ef209cb9d0244844748c974f800220134d3f4f96f0b5308ed48fe839de96237d0d02de01d9f185be8eeb49f41b851a", + "certification_declaration": "308201cf06092a864886f70d010702a08201c0308201bc020103310d300b06096086480165030402013082012806092a864886f70d010701a082011904820115152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10146afd22771f511fecbf1641976710dcdc31a1717e1014f4bbcabbc5016577aa8b44ffb90fcca140fe66201014f4bb35bbc5016577aa8b44ffb90fcca140fe66201014f4bb3544c5016577aa8b44ffb90fcca140fe66201014f4bb35443a016577aa8b44ffb90fcca140fe66201014f4bb35443afe6577aa8b44ffb90fcca140fe66201014f4bb35443afe9a77aa8b44ffb90fcca140fe66201014f4bb35443afe9a88aa8b44ffb90fcca140fe66201014f4bb35443afe9a88558b44ffb90fcca140fe66201014f4bb35443afe9a88557444ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044630440220036cfdbd9efc823d801a3f906cd764f4392cfd97200747a8f48f623ca8935312022055d32d8f87b3012575f1db54d3418c1807ef8dee5dcae0b261d4f3dfbaaebe8d", + "dac_private_key": "4f9dc6f6841d34cf8dea65bec14dcefed51cbbba6787a783d7a7a99aa811fa89", + "dac_public_key": "048856959a36d8a7d0bd809b68125a66639110d22070f70123bd43f427f08eba3bc38b9f2c4ef47908fa2f1aea69952f5aed3e5715b7b86b04e51bd095293a32ab" +} diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/cd.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/cd.der new file mode 100644 index 00000000000000..c3fef102317cfd Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Cert.der new file mode 100644 index 00000000000000..a6bf015433038c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Cert.pem new file mode 100644 index 00000000000000..0ac834df730e39 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIcETZsl89VkQwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +S+zLGT/RZV4t6W31W+dT5GCiPSPsth4tCMm6s5nG+n7jA3gv0imMHslqx3fn1ASR +UN/q59c40Sz46Ec/2QOaDaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFO8ZZZcuM1EJOrm6RwEuTmZNvXgTMB8GA1UdIwQYMBaAFGEM +k/YcOyOVLhNKzhITzZC2Lj/VMAoGCCqGSM49BAMCA0kAMEYCIQDzPAYt0TRUddya +52vqz8AC07Kq9/O2nmIN26xKQuG5YAIhAKKQwQTi/qChn9PRmT5jX0d0bqhSR+AP ++g+QlA9rO/Ad +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Key.der new file mode 100644 index 00000000000000..1431ad1c3c8c40 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Key.pem new file mode 100644 index 00000000000000..86fd78a7202826 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBkxC7e8YWX2+/XfgF44wqTSbnLmcl1ieG4h8kGy5VnFoAoGCCqGSM49 +AwEHoUQDQgAES+zLGT/RZV4t6W31W+dT5GCiPSPsth4tCMm6s5nG+n7jA3gv0imM +Hslqx3fn1ASRUN/q59c40Sz46Ec/2QOaDQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Cert.der new file mode 100644 index 00000000000000..81ec578304221a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Cert.pem new file mode 100644 index 00000000000000..f7054d13ce4bcc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIaCIr2PF5HccwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARWqEls3lfJzFIGpI7QNUSlD6HM7sQX +t566fcYTbGO9UCnY5lRwvGCT0rEv5eBksVS5cFVgiRp1eWuFt/rGG5Syo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUYQyT +9hw7I5UuE0rOEhPNkLYuP9UwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgR6aCRE7AE30bqDAwWsC8/CYo5fL+l+RjCALI +Tjxdp8sCIQCC1Lan4znOavR8X/WCTGcE6qeV0UW6zg7DpIH8KaP4ag== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Key.der new file mode 100644 index 00000000000000..f9361903775012 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Key.pem new file mode 100644 index 00000000000000..7be6f23a2f3468 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIA7T1qen3KCrXmubdr2k4QXBp/vFO90JiIAau/rYi4BUoAoGCCqGSM49 +AwEHoUQDQgAEVqhJbN5XycxSBqSO0DVEpQ+hzO7EF7eeun3GE2xjvVAp2OZUcLxg +k9KxL+XgZLFUuXBVYIkadXlrhbf6xhuUsg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/test_case_vector.json new file mode 100644 index 00000000000000..ee794a021dd9dc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count1_valid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The authorized_paa_list contains one valid PAA which is authorized to sign the PAI.", + "is_success_case": "true", + "dac_cert": "308201e53082018aa00302010202087044d9b25f3d5644300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200044beccb193fd1655e2de96df55be753e460a23d23ecb61e2d08c9bab399c6fa7ee303782fd2298c1ec96ac777e7d4049150dfeae7d738d12cf8e8473fd9039a0da360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414ef1965972e3351093ab9ba47012e4e664dbd7813301f0603551d23041830168014610c93f61c3b23952e134ace1213cd90b62e3fd5300a06082a8648ce3d0403020349003046022100f33c062dd1345475dc9ae76beacfc002d3b2aaf7f3b69e620ddbac4a42e1b960022100a290c104e2fea0a19fd3d1993e635f47746ea85247e00ffa0f90940f6b3bf01d", + "pai_cert": "308201d43082017aa003020102020868222bd8f1791dc7300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000456a8496cde57c9cc5206a48ed03544a50fa1cceec417b79eba7dc6136c63bd5029d8e65470bc6093d2b12fe5e064b154b9705560891a75796b85b7fac61b94b2a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414610c93f61c3b23952e134ace1213cd90b62e3fd5301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022047a682444ec0137d1ba830305ac0bcfc2628e5f2fe97e4630802c84e3c5da7cb02210082d4b6a7e339ce6af47c5ff5824c6704eaa795d145bace0ec3a481fc29a3f86a", + "certification_declaration": "3082010306092a864886f70d010702a081f53081f2020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10146afd22771f511fecbf1641976710dcdc31a1717e1818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100aa83c3d8602da9e1267445aaca0a53476c7a1026df7aa2c39fd350a5353a382d022100ee23b14794a218b2b78943ae1cc98b028418572d455723aa2c0d933d98228c11", + "dac_private_key": "19310bb7bc6165f6fbf5df805e38c2a4d26e72e6725d62786e21f241b2e559c5", + "dac_public_key": "044beccb193fd1655e2de96df55be753e460a23d23ecb61e2d08c9bab399c6fa7ee303782fd2298c1ec96ac777e7d4049150dfeae7d738d12cf8e8473fd9039a0d" +} diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/cd.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/cd.der new file mode 100644 index 00000000000000..4fd7d29fdc52ef Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Cert.der new file mode 100644 index 00000000000000..dcbd5790847bdd Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Cert.pem new file mode 100644 index 00000000000000..8d7d013c0b956e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIILtgK8IVOgO0wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +q9pwikfoPwiDZEd3d2azEshSOYAMaav0966ynB1tASy9IIHCwzfF8+r3/Q++uTnK +N2fn73fsVxOpER8fAVKIaKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFAvfzUVdPws9EjKg9NI0GaAR2FfwMB8GA1UdIwQYMBaAFCRk +COBkjb+cWIX3LIiyJiQ5KtGKMAoGCCqGSM49BAMCA0gAMEUCIQCH6Y6XiAL8d8LV +dbVUOdcpGe4YemZ8OTYNL3Q1nNak2gIgcH7FO7k2YyOIVBo1gvFAjFmAQkrvc0TC +uX4fDkzakNg= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Key.der new file mode 100644 index 00000000000000..bcd0ebd3ed220e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Key.pem new file mode 100644 index 00000000000000..1a4679eebb0440 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIP3ppsU8X1F+yRlNkQ4c/yagX1OHTphHQaIDoQcLuGVIoAoGCCqGSM49 +AwEHoUQDQgAEq9pwikfoPwiDZEd3d2azEshSOYAMaav0966ynB1tASy9IIHCwzfF +8+r3/Q++uTnKN2fn73fsVxOpER8fAVKIaA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Cert.der new file mode 100644 index 00000000000000..c1993989c58bc1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Cert.pem new file mode 100644 index 00000000000000..9f68677f836807 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIIWFYrYJRS/owCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR1Ue2PTPiv0LJ4J+VHvhgwhR7CbOkH +UMUSXvWL3H2c1yoDfms1HqplGGEUd10VHdrgcD/1VQdJ0cZ8r3/seV+io2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUJGQI +4GSNv5xYhfcsiLImJDkq0YowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgUEEGcYnxFFI1udDW6MsOR8I2O7xoeoCLfCNd +n5NakdECIQDDVueR4PSML1wzVpLEo+0gpjepomPbPxT5xFOukiJ+tA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Key.der new file mode 100644 index 00000000000000..52877110d42b7f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Key.pem new file mode 100644 index 00000000000000..f54da100d91dcf --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICXCXn+HuGQY27ctSG7uSyNcY8KS3qoIKhoyyBNOAC2qoAoGCCqGSM49 +AwEHoUQDQgAEdVHtj0z4r9CyeCflR74YMIUewmzpB1DFEl71i9x9nNcqA35rNR6q +ZRhhFHddFR3a4HA/9VUHSdHGfK9/7Hlfog== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/test_case_vector.json new file mode 100644 index 00000000000000..5e41046a881d44 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count2_valid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The authorized_paa_list contains two PAAs one of which is valid PAA authorized to sign the PAI.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa00302010202082ed80af0854e80ed300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004abda708a47e83f08836447777766b312c85239800c69abf4f7aeb29c1d6d012cbd2081c2c337c5f3eaf7fd0fbeb939ca3767e7ef77ec5713a9111f1f01528868a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604140bdfcd455d3f0b3d1232a0f4d23419a011d857f0301f0603551d23041830168014246408e0648dbf9c5885f72c88b22624392ad18a300a06082a8648ce3d040302034800304502210087e98e978802fc77c2d575b55439d72919ee187a667c39360d2f74359cd6a4da0220707ec53bb936632388541a3582f1408c5980424aef7344c2b97e1f0e4cda90d8", + "pai_cert": "308201d43082017aa0030201020208216158ad82514bfa300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047551ed8f4cf8afd0b27827e547be1830851ec26ce90750c5125ef58bdc7d9cd72a037e6b351eaa65186114775d151ddae0703ff5550749d1c67caf7fec795fa2a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414246408e0648dbf9c5885f72c88b22624392ad18a301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502205041067189f1145235b9d0d6e8cb0e47c2363bbc687a808b7c235d9f935a91d1022100c356e791e0f48c2f5c335692c4a3ed20a637a9a263db3f14f9c453ae92227eb4", + "certification_declaration": "3082011a06092a864886f70d010702a082010b30820107020103310d300b0609608648016503040201307406092a864886f70d010701a0670465152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10146afd22771f511fecbf1641976710dcdc31a1717e1014f4bbcabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502206debec7b91394474896b5c86c0a505ae8f6ee8415acde6c9d0b8bdaff1b6dc44022100f799e5fc9cddd66606698073fe9cbb61d4ee58890996c68ced64181bcf2bc0ad", + "dac_private_key": "fde9a6c53c5f517ec9194d910e1cff26a05f53874e984741a203a1070bb86548", + "dac_public_key": "04abda708a47e83f08836447777766b312c85239800c69abf4f7aeb29c1d6d012cbd2081c2c337c5f3eaf7fd0fbeb939ca3767e7ef77ec5713a9111f1f01528868" +} diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/cd.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/cd.der new file mode 100644 index 00000000000000..a274b4ca57b512 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Cert.der new file mode 100644 index 00000000000000..b3f85c2ac410a2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Cert.pem new file mode 100644 index 00000000000000..72bf3b65130d22 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIUYu7Q7WxD2AwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +CZ0bbCHRPFoi7ahtIgVNqXd3KDhEMgVkdNCBcH80RroUvUQVs+dGjG7ZijOrNfAm +eD3mUSVGvjoQ3TmECRsEtKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFKgC0WYIZQrs4w4KY1sAgTYey2yhMB8GA1UdIwQYMBaAFDDS +WyKJEiotsKibeXczyzGKmeA3MAoGCCqGSM49BAMCA0gAMEUCIEygGm8jekQk0p1a +Xcrx+CxlB21EEv66/39rDzXMt1a3AiEA6VG3InK0NjkgO9y7x4ZguS4NRx0vhW3z +facKhSJ9SMo= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Key.der new file mode 100644 index 00000000000000..5b0bfa2414da0d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Key.pem new file mode 100644 index 00000000000000..f65aa8ad19be6d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINMfFMkjZEL9lRh9uU5O1QWWAazHXPhjvGbAkNIag4CaoAoGCCqGSM49 +AwEHoUQDQgAECZ0bbCHRPFoi7ahtIgVNqXd3KDhEMgVkdNCBcH80RroUvUQVs+dG +jG7ZijOrNfAmeD3mUSVGvjoQ3TmECRsEtA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Cert.der new file mode 100644 index 00000000000000..1a8d5153503d23 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Cert.pem new file mode 100644 index 00000000000000..62b8b4f6411aba --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIEhmidBNI/tQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARe80WynXdUccvepI/ckVLpdY8QakZj +++bxAk5VddghLE3yShO4tlTeZJnAyzBxlbcM1Jch5GEnxwVaUDDwWQxco2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUMNJb +IokSKi2wqJt5dzPLMYqZ4DcwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgPqj+ObogQrmrO98Q4zb08jwAV9kIK7ujgMSa +00VNaOECIQC9HhcI9DYAWB9FkHofh2JszGuj24xpoCHbYa7rv0sFHw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Key.der new file mode 100644 index 00000000000000..1a65a4a0c76770 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Key.pem new file mode 100644 index 00000000000000..818b2bd690e9cb --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHhZDwwJF7WntLQlh6rQmys2GpyBCjloQDS7Dfu66G9AoAoGCCqGSM49 +AwEHoUQDQgAEXvNFsp13VHHL3qSP3JFS6XWPEGpGY/vm8QJOVXXYISxN8koTuLZU +3mSZwMswcZW3DNSXIeRhJ8cFWlAw8FkMXA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/test_case_vector.json new file mode 100644 index 00000000000000..835967465cb1fe --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_count3_invalid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The authorized_paa_list contains three PAAs none of which is a valid PAA authorized to sign the PAI.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa0030201020208518bbb43b5b10f60300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004099d1b6c21d13c5a22eda86d22054da9777728384432056474d081707f3446ba14bd4415b3e7468c6ed98a33ab35f026783de6512546be3a10dd3984091b04b4a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414a802d16608650aece30e0a635b0081361ecb6ca1301f0603551d2304183016801430d25b2289122a2db0a89b797733cb318a99e037300a06082a8648ce3d040302034800304502204ca01a6f237a4424d29d5a5dcaf1f82c65076d4412febaff7f6b0f35ccb756b7022100e951b72272b43639203bdcbbc78660b92e0d471d2f856df37da70a85227d48ca", + "pai_cert": "308201d43082017aa00302010202081219a2741348fed4300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200045ef345b29d775471cbdea48fdc9152e9758f106a4663fbe6f1024e5575d8212c4df24a13b8b654de6499c0cb307195b70cd49721e46127c7055a5030f0590c5ca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041430d25b2289122a2db0a89b797733cb318a99e037301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502203ea8fe39ba2042b9ab3bdf10e336f4f23c0057d9082bbba380c49ad3454d68e1022100bd1e1708f43600581f45907a1f87626ccc6ba3db8c69a021db61aeebbf4b051f", + "certification_declaration": "3082013206092a864886f70d010702a08201233082011f020103310d300b060960864801650304020130818a06092a864886f70d010701a07d047b152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe662010140bbbcabbc5016577aa8b44ffb90fcca140fe662010140bbb35bbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100df70d10986d5d723b7756c75d43803b45a4a8e5c7baa031ee9bf6e45b5b2fcdd022100be6de163e8bf924352e3618afa1ace3bd3f56c8b54d1e9d4c8775c9fbe32440f", + "dac_private_key": "d31f14c9236442fd95187db94e4ed5059601acc75cf863bc66c090d21a83809a", + "dac_public_key": "04099d1b6c21d13c5a22eda86d22054da9777728384432056474d081707f3446ba14bd4415b3e7468c6ed98a33ab35f026783de6512546be3a10dd3984091b04b4" +} diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/cd.der new file mode 100644 index 00000000000000..cec8ac3a9b1665 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Cert.der new file mode 100644 index 00000000000000..f231380cee0aa5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Cert.pem new file mode 100644 index 00000000000000..f6af79a2fdc4fd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIGJvSMGkBBFIwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +KBTJ26EPrk3bps57lqS9nuFCxKuqITxjPOda3ay1KIga2u6VW2te1jJdkeYlSBf3 +89WW5jYEhEgqnT/AR1daJaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFG0GK0+NL03JjynODodUMehSOv7oMB8GA1UdIwQYMBaAFBU6 +rFmtO7zA6mSf5sPE0lt9UvlxMAoGCCqGSM49BAMCA0gAMEUCIDJnOGTTsFSgBhCB +RX2khwKrtXsjvHLp0Su8CJQlm+fhAiEAvjrHcLP5jTJJEiUlxmA3lp3o0IRBew50 +L1t+wJAdZpE= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Key.der new file mode 100644 index 00000000000000..72564fb08c53b1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Key.pem new file mode 100644 index 00000000000000..2a429b546feae9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICLK+xHpMqWVFqfp7/8JDPLNCN60xpQicfwTJyte6igKoAoGCCqGSM49 +AwEHoUQDQgAEKBTJ26EPrk3bps57lqS9nuFCxKuqITxjPOda3ay1KIga2u6VW2te +1jJdkeYlSBf389WW5jYEhEgqnT/AR1daJQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Cert.der new file mode 100644 index 00000000000000..079415583c9d89 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Cert.pem new file mode 100644 index 00000000000000..81fc0614b5063c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIITQWjzp/UP0kwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATbUTSCrL6Aee8k++q65miV59AVM85F +PzM/V1rrKMBniLTXnvq31dMeL/eJ8nlF2agL5K5yYnEa/umvjnJ11yAco2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUFTqs +Wa07vMDqZJ/mw8TSW31S+XEwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAPs9+PlvxIYXnDHWZV3IUoyixrT7EeOSJbd6 +DWrow60CAiAApJxztGwaEr4ueKzbJMPf9CJskBUGpHhzl+ofXESb6g== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Key.der new file mode 100644 index 00000000000000..9246d36c47e2f1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Key.pem new file mode 100644 index 00000000000000..c8b94a95b76f8c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFdbifx3vALiRZ4js8td+9nMRhZgABC0qC5nohiiCF8yoAoGCCqGSM49 +AwEHoUQDQgAE21E0gqy+gHnvJPvquuZolefQFTPORT8zP1da6yjAZ4i01576t9XT +Hi/3ifJ5RdmoC+SucmJxGv7pr45yddcgHA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/test_case_vector.json new file mode 100644 index 00000000000000..ada0ecb15f0d1b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_authorized_paa_list_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The optional authorized_paa_list field is not present.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa0030201020208189bd23069010452300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200042814c9dba10fae4ddba6ce7b96a4bd9ee142c4abaa213c633ce75addacb528881adaee955b6b5ed6325d91e6254817f7f3d596e6360484482a9d3fc047575a25a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604146d062b4f8d2f4dc98f29ce0e875431e8523afee8301f0603551d23041830168014153aac59ad3bbcc0ea649fe6c3c4d25b7d52f971300a06082a8648ce3d0403020348003045022032673864d3b054a0061081457da48702abb57b23bc72e9d12bbc0894259be7e1022100be3ac770b3f98d3249122525c66037969de8d084417b0e742f5b7ec0901d6691", + "pai_cert": "308201d43082017aa00302010202084d05a3ce9fd43f49300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004db513482acbe8079ef24fbeabae66895e7d01533ce453f333f575aeb28c06788b4d79efab7d5d31e2ff789f27945d9a80be4ae7262711afee9af8e7275d7201ca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414153aac59ad3bbcc0ea649fe6c3c4d25b7d52f971301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100fb3df8f96fc486179c31d6655dc8528ca2c6b4fb11e39225b77a0d6ae8c3ad02022000a49c73b46c1a12be2e78acdb24c3dff4226c901506a4787397ea1f5c449bea", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044730450221009d0671e7751a9672bce1211c070e5fa9856122c84b591221c61768a46612e3c40220200e658b3717370a8598a5b34f7740ce06acadac3907777a694c7a3f9d3bf511", + "dac_private_key": "22cafb11e932a59516a7e9efff090cf2cd08deb4c6942271fc13272b5eea280a", + "dac_public_key": "042814c9dba10fae4ddba6ce7b96a4bd9ee142c4abaa213c633ce75addacb528881adaee955b6b5ed6325d91e6254817f7f3d596e6360484482a9d3fc047575a25" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/cd.der b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/cd.der new file mode 100644 index 00000000000000..9abab0879b4200 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Cert.der new file mode 100644 index 00000000000000..e95645ccdd02d6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..7569f3b19ba1f6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIGoBGORoGjbcwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +tU1g+OyXpT134o12s4jHKrWx0OxoOjvut9uw2jSM/ScOURjcuKVUYvSJs3TipBJj +itFknDFdCc76ME/M+Sa/MKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFOrbxDTWqIqLeAbgKOZR9FzrTNjEMB8GA1UdIwQYMBaAFNv6 +Bw6XkVUKqLb0i0REi7YLKeS6MAoGCCqGSM49BAMCA0kAMEYCIQCkF4QynSt6W4xw +D2B/nOBgMlqJAfSe1Pz0eO2yzRs+ugIhAJ4NtXrFv7Stmyhu12zhnMNsKW2LpTh+ +E+0Pw8L3Ugyn +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Key.der new file mode 100644 index 00000000000000..211246b7c17614 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Key.pem new file mode 100644 index 00000000000000..ce5dba1a28adf8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIG7DBxG+DsbOj2vpacTgTPekdthlvEBJ1AjqCbw3FPM6oAoGCCqGSM49 +AwEHoUQDQgAEtU1g+OyXpT134o12s4jHKrWx0OxoOjvut9uw2jSM/ScOURjcuKVU +YvSJs3TipBJjitFknDFdCc76ME/M+Sa/MA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Cert.der new file mode 100644 index 00000000000000..112c478d2ae589 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..25b800ce9f9ed9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIINPkT6IeMjLkwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATuZUkWKm3bKUSLqBerjlsZXAAUPlM8 +ocA62rTadMUgDw74AzwAyEyurjSK+FiA7gaBUld7AuSUoxNLlUgnlriyo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU2/oH +DpeRVQqotvSLRESLtgsp5LowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAJGjhOZD/p9B2VyDgOLQbOKaQP4xh5GGQMQW +mB2MA4sOAiARZSsECRQqkPZ3QqElYvLQBYOH4p6OJcZzZH00RH/odg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Key.der new file mode 100644 index 00000000000000..216a3ec6f446e9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Key.pem new file mode 100644 index 00000000000000..68d6ed8f6fdf7e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGGxWu8N9B56PBQvX7wl2RR0EEhYKPl6VqpC/sZJ4SuPoAoGCCqGSM49 +AwEHoUQDQgAE7mVJFipt2ylEi6gXq45bGVwAFD5TPKHAOtq02nTFIA8O+AM8AMhM +rq40ivhYgO4GgVJXewLklKMTS5VIJ5a4sg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/test_case_vector.json new file mode 100644 index 00000000000000..ce77ed4be2afd9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_len_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The certificate_id field has wrong length.", + "is_success_case": "false", + "dac_cert": "308201e53082018aa00302010202081a8046391a068db7300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004b54d60f8ec97a53d77e28d76b388c72ab5b1d0ec683a3beeb7dbb0da348cfd270e5118dcb8a55462f489b374e2a412638ad1649c315d09cefa304fccf926bf30a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414eadbc434d6a88a8b7806e028e651f45ceb4cd8c4301f0603551d23041830168014dbfa070e9791550aa8b6f48b44448bb60b29e4ba300a06082a8648ce3d0403020349003046022100a41784329d2b7a5b8c700f607f9ce060325a8901f49ed4fcf478edb2cd1b3eba0221009e0db57ac5bfb4ad9b286ed76ce19cc36c296d8ba5387e13ed0fc3c2f7520ca7", + "pai_cert": "308201d43082017aa003020102020834f913e8878c8cb9300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004ee6549162a6ddb29448ba817ab8e5b195c00143e533ca1c03adab4da74c5200f0ef8033c00c84caeae348af85880ee068152577b02e494a3134b95482796b8b2a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414dbfa070e9791550aa8b6f48b44448bb60b29e4ba301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502210091a384e643fe9f41d95c8380e2d06ce29a40fe3187918640c416981d8c038b0e022011652b0409142a90f67742a12562f2d0058387e29e8e25c673647d34447fe876", + "certification_declaration": "3082010506092a864886f70d010702a081f73081f4020103310d300b0609608648016503040201306206092a864886f70d010701a0550453152000012501f1ff360205008018250334122c04175a494732303134315a423333303030312d32343132333424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402206c4ddfa910850cb37c0e5f03e4877700053699b66c7c8be023be13c5fecf690902201a13e5d9a7a1a394d86bb86d904aaf76a45537ad75493ac4ae317fc0a8c89b08", + "dac_private_key": "6ec30711be0ec6ce8f6be969c4e04cf7a476d865bc4049d408ea09bc3714f33a", + "dac_public_key": "04b54d60f8ec97a53d77e28d76b388c72ab5b1d0ec683a3beeb7dbb0da348cfd270e5118dcb8a55462f489b374e2a412638ad1649c315d09cefa304fccf926bf30" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/cd.der new file mode 100644 index 00000000000000..0a75bd3f7fec47 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..b084e1202f969e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..533dfc447f9169 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIelRAQDSbAM8wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +EdIfUar65dV4qb4co3UHBuFKmg4VAhxVWsa98OxEL8G77Ix6WccXzRkwlZcxOYNU +TTUZyxpizeHxVW4+l38kq6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFFsfX3NRDFPR+Hh93E8C808KNTqYMB8GA1UdIwQYMBaAFIIH +FbG55bWOqdxCsNQ1d0c/H0rKMAoGCCqGSM49BAMCA0gAMEUCIQCfonmuo00ObF/t +Ms8jwRdgI8mfDafxkWWkLtayIbVRngIga7s7KSzs3GwNSdKIPkA1++VsrQbibnHz +NmVRC1DiiQ8= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Key.der new file mode 100644 index 00000000000000..83193f3772855c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..0c8054b5caea62 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPYAV7qSzFbdVj6cX2thbLxfEuTOyfwDl0kgn+UB0Lu7oAoGCCqGSM49 +AwEHoUQDQgAEEdIfUar65dV4qb4co3UHBuFKmg4VAhxVWsa98OxEL8G77Ix6WccX +zRkwlZcxOYNUTTUZyxpizeHxVW4+l38kqw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..23d854be064308 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..9debaccdeaa718 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIVmP9HJVZtegwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ7fVkZu8WSfPdIj0vKAZl0rddffME2 +UWY3zM5Rr2+oT1VsRmNFuVlVifrr7umNJ9daGINRYNQYN4uoRMP/Vraio2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUggcV +sbnltY6p3EKw1DV3Rz8fSsowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAIazE8eM4W+L2mfXw2E0jhSPqZ5zCwuIEM38 +pOkWEH5NAiAlMs72Rvhm/zxbSEA8ib9wDextZws9l2Jt/VnZq2qQ1Q== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Key.der new file mode 100644 index 00000000000000..1fa17d6a38d1ec Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..a37f2a606c7eef --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIF7GtIsAT/X0XZYFPgZ2jiXf1gDuRP0X24S4sApmHRBZoAoGCCqGSM49 +AwEHoUQDQgAEO31ZGbvFknz3SI9LygGZdK3XX3zBNlFmN8zOUa9vqE9VbEZjRblZ +VYn66+7pjSfXWhiDUWDUGDeLqETD/1a2og== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..d43ca518e0c929 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The certificate_id field doesn't contain a globally unique serial number allocated by the CSA for this CD.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202087a544040349b00cf300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000411d21f51aafae5d578a9be1ca3750706e14a9a0e15021c555ac6bdf0ec442fc1bbec8c7a59c717cd19309597313983544d3519cb1a62cde1f1556e3e977f24aba360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604145b1f5f73510c53d1f8787ddc4f02f34f0a353a98301f0603551d23041830168014820715b1b9e5b58ea9dc42b0d43577473f1f4aca300a06082a8648ce3d04030203480030450221009fa279aea34d0e6c5fed32cf23c1176023c99f0da7f19165a42ed6b221b5519e02206bbb3b292cecdc6c0d49d2883e4035fbe56cad06e26e71f33665510b50e2890f", + "pai_cert": "308201d43082017aa00302010202085663fd1c9559b5e8300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200043b7d5919bbc5927cf7488f4bca019974add75f7cc136516637ccce51af6fa84f556c466345b9595589faebeee98d27d75a18835160d418378ba844c3ff56b6a2a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414820715b1b9e5b58ea9dc42b0d43577473f1f4aca301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502210086b313c78ce16f8bda67d7c361348e148fa99e730b0b8810cdfca4e916107e4d02202532cef646f866ff3c5b48403c89bf700dec6d670b3d97626dfd59d9ab6a90d5", + "certification_declaration": "3082010106092a864886f70d010702a081f33081f0020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c0413494e5632303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022017fd411eb2fa77c2979aa8042ab218ddd72cd4313f5c9e5df2d0f3904060736f02205de116d2bccd7d013fde28f289289490b39e9f54c0263f3824358c67c683453c", + "dac_private_key": "f60057ba92cc56dd563e9c5f6b616cbc5f12e4cec9fc039749209fe501d0bbbb", + "dac_public_key": "0411d21f51aafae5d578a9be1ca3750706e14a9a0e15021c555ac6bdf0ec442fc1bbec8c7a59c717cd19309597313983544d3519cb1a62cde1f1556e3e977f24ab" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/cd.der new file mode 100644 index 00000000000000..518b97bb99a143 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Cert.der new file mode 100644 index 00000000000000..43e17965fea34b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Cert.pem new file mode 100644 index 00000000000000..556b27c7b7f4de --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIMl0q2jMcrCMwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +jAT8rEL/l6aVezTNe6Qq1PWx0St6h7cBIegym+vYySz+YPm+lGvRkNKS1ojXvCae +6WL7cCOoe8PPebSCOuD+qKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFGfrwOcJQRfwmz8nRCFIVGX9KtFcMB8GA1UdIwQYMBaAFMMH +7FtCNNh6y1qMi5b6in+0HasvMAoGCCqGSM49BAMCA0cAMEQCIFqYUze8vAlF15t9 +r/wSauMNtIviEGUgqF6c9Bet47SVAiARz0N5rIHQbXumoeMTO8XKNCvSl5ATEjU2 +oB+gI58SyQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Key.der new file mode 100644 index 00000000000000..58701706251589 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Key.pem new file mode 100644 index 00000000000000..e9e077eb5f14cc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOog12VT5oTXDSObHUdQl5Rspoi+GggndqoqRapyORpaoAoGCCqGSM49 +AwEHoUQDQgAEjAT8rEL/l6aVezTNe6Qq1PWx0St6h7cBIegym+vYySz+YPm+lGvR +kNKS1ojXvCae6WL7cCOoe8PPebSCOuD+qA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Cert.der new file mode 100644 index 00000000000000..835a6d934a713d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Cert.pem new file mode 100644 index 00000000000000..c9bba4d287164c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIQdzlu1cJeWUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT0WZmBSOZ1DxUUTq6ctCYf02kyJlQh +FxS9yilARBpUFgT1hyOCHdQ2j2BS6cxhME0Ekn7orWTS+JaPiJgjPqldo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUwwfs +W0I02HrLWoyLlvqKf7Qdqy8wHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgY5ckfakzrj/CrPOzMqmZ1bTEvL+5anrK80Xi +CvL3vJsCIQCCb9C5cghdmUXc0E5MguMalH70cluSQpslw/sD1I7B6g== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Key.der new file mode 100644 index 00000000000000..6335ad071a79d1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Key.pem new file mode 100644 index 00000000000000..e1930a6e8efe2a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIB0B3BOZDI/qoKQvssp+TkzMbyIVwXEc+BCHidMl82YuoAoGCCqGSM49 +AwEHoUQDQgAE9FmZgUjmdQ8VFE6unLQmH9NpMiZUIRcUvcopQEQaVBYE9Ycjgh3U +No9gUunMYTBNBJJ+6K1k0viWj4iYIz6pXQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_id_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/test_case_vector.json new file mode 100644 index 00000000000000..e1d987efc62311 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_id_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The certificate_id field is missing.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa0030201020208325d2ada331cac23300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200048c04fcac42ff97a6957b34cd7ba42ad4f5b1d12b7a87b70121e8329bebd8c92cfe60f9be946bd190d292d688d7bc269ee962fb7023a87bc3cf79b4823ae0fea8a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041467ebc0e7094117f09b3f274421485465fd2ad15c301f0603551d23041830168014c307ec5b4234d87acb5a8c8b96fa8a7fb41dab2f300a06082a8648ce3d040302034700304402205a985337bcbc0945d79b7daffc126ae30db48be2106520a85e9cf417ade3b495022011cf4379ac81d06d7ba6a1e3133bc5ca342bd2979013123536a01fa0239f12c9", + "pai_cert": "308201d43082017aa003020102020841dce5bb57097965300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f459998148e6750f15144eae9cb4261fd369322654211714bdca2940441a541604f58723821dd4368f6052e9cc61304d04927ee8ad64d2f8968f8898233ea95da366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414c307ec5b4234d87acb5a8c8b96fa8a7fb41dab2f301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502206397247da933ae3fc2acf3b332a999d5b4c4bcbfb96a7acaf345e20af2f7bc9b022100826fd0b972085d9945dcd04e4c82e31a947ef4725b92429b25c3fb03d48ec1ea", + "certification_declaration": "3081ed06092a864886f70d010702a081df3081dc020103310d300b0609608648016503040201304806092a864886f70d010701a03b0439152000012501f1ff3602050080182503341224050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020448304602210087eb4707e94d0b3032b8ea1a20b63953968d25e28129a8a135d66386b14b53e80221008d841413fd65f1a5119c5c4616316cfae7c8cda576a28fd7fabe93b23fb168ac", + "dac_private_key": "ea20d76553e684d70d239b1d475097946ca688be1a082776aa2a45aa72391a5a", + "dac_public_key": "048c04fcac42ff97a6957b34cd7ba42ad4f5b1d12b7a87b70121e8329bebd8c92cfe60f9be946bd190d292d688d7bc269ee962fb7023a87bc3cf79b4823ae0fea8" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/cd.der new file mode 100644 index 00000000000000..b29379e4d79165 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Cert.der new file mode 100644 index 00000000000000..f50c9209d436a2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Cert.pem new file mode 100644 index 00000000000000..c316ac723db2c9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIcGVd0lPSaCAwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +jQBrxvGLuCXfb6Q0TXVC8xhrk7oie+okKVipM7kyRtS8OdqSUVRDfOaLHETa6qwR +ElM5cDyvpQ7NZXl09qOVPqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFFlcHAE/e+EqLugeGMZ0NG/JVztxMB8GA1UdIwQYMBaAFIb7 +vJw1HBdp94XIROL0Qig8If2aMAoGCCqGSM49BAMCA0cAMEQCIAdiavS3RyqV1Cyd +nGbo9GONuZtECmnAbgEYN7T9PUGiAiAqlJ6e9Y/XgS7+xdxda6zV5lFuTav5Qydn +j4XRfp2QLw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Key.der new file mode 100644 index 00000000000000..31c961e441fd50 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Key.pem new file mode 100644 index 00000000000000..fd83bfb7e7a0ef --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIE2nxS0uSqSCLqzUixT5zkFFJeE47scGDJryLtqf9K87oAoGCCqGSM49 +AwEHoUQDQgAEjQBrxvGLuCXfb6Q0TXVC8xhrk7oie+okKVipM7kyRtS8OdqSUVRD +fOaLHETa6qwRElM5cDyvpQ7NZXl09qOVPg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Cert.der new file mode 100644 index 00000000000000..364790d931e240 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Cert.pem new file mode 100644 index 00000000000000..e6ea29ec991018 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIIBP0lej+YSSowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASuu+BXXgG03u/GGyaxxlYC61UsSY2P +SixXg/7r9ANgay+1mmtZiwhqVyPu1jRJ+VBCKJJBiCbUqfoE0w8y4UZIo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUhvu8 +nDUcF2n3hchE4vRCKDwh/ZowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgHDMxx0uVbkU1IrV3dWAkTpa+wddU/HlxYl9X +O0k8Gu0CIBIf1Wwd4liq8oAOA2bFuJZNJ50lR9xVOWN4zYR/XnvM +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Key.der new file mode 100644 index 00000000000000..22531d57289087 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Key.pem new file mode 100644 index 00000000000000..76c237a3813b4b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHKJyysY7Cujm9B1qXoFsGCHHe95zEmgmZElOh7X998BoAoGCCqGSM49 +AwEHoUQDQgAErrvgV14BtN7vxhsmscZWAutVLEmNj0osV4P+6/QDYGsvtZprWYsI +alcj7tY0SflQQiiSQYgm1Kn6BNMPMuFGSA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/test_case_vector.json new file mode 100644 index 00000000000000..17e9726ae1671c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The certification_type field is missing.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa003020102020870655dd253d26820300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200048d006bc6f18bb825df6fa4344d7542f3186b93ba227bea242958a933b93246d4bc39da925154437ce68b1c44daeaac11125339703cafa50ecd657974f6a3953ea360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414595c1c013f7be12a2ee81e18c674346fc9573b71301f0603551d2304183016801486fbbc9c351c1769f785c844e2f442283c21fd9a300a06082a8648ce3d0403020347003044022007626af4b7472a95d42c9d9c66e8f4638db99b440a69c06e011837b4fd3d41a202202a949e9ef58fd7812efec5dc5d6bacd5e6516e4dabf94327678f85d17e9d902f", + "pai_cert": "308201d33082017aa003020102020804fd257a3f98492a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004aebbe0575e01b4deefc61b26b1c65602eb552c498d8f4a2c5783feebf403606b2fb59a6b598b086a5723eed63449f950422892418826d4a9fa04d30f32e14648a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041486fbbc9c351c1769f785c844e2f442283c21fd9a301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402201c3331c74b956e453522b5777560244e96bec1d754fc7971625f573b493c1aed0220121fd56c1de258aaf2800e0366c5b8964d279d2547dc55396378cd847f5e7bcc", + "certification_declaration": "3081ff06092a864886f70d010702a081f13081ee020103310d300b0609608648016503040201305b06092a864886f70d010701a04e044c152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044730450221009d5c0ccefc62c914828ee6bf1bf248b2a0e951e03948d94f1dcaf4a8fe037831022036a2f396bd672041aaf63225c9e555a0dde172a855d66f835a6136ecf2a8f2fc", + "dac_private_key": "4da7c52d2e4aa4822eacd48b14f9ce414525e138eec7060c9af22eda9ff4af3b", + "dac_public_key": "048d006bc6f18bb825df6fa4344d7542f3186b93ba227bea242958a933b93246d4bc39da925154437ce68b1c44daeaac11125339703cafa50ecd657974f6a3953e" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/cd.der b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/cd.der new file mode 100644 index 00000000000000..add3eda3f06d8f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Cert.der new file mode 100644 index 00000000000000..91f7c0f3e341f3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..f93891f6949b7f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIO3CHv0Rc1PgwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +R+HhzbcgEV45yI4QHVQta4adeoWXzwRbI2KUQQs8UHbOuE4MD8sHIBjkLWVvHIpf +CKUYjydBgExoMg3ko8bQW6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFAnu/HiD1V8WRlV7r/b1G39NUts2MB8GA1UdIwQYMBaAFNf4 +hvhvywuARlGVwm0zVVgtmgiqMAoGCCqGSM49BAMCA0cAMEQCICVQSS+oH+TR0wmO +0dL6o5xxmRVEy6thkrfYIYjyWvagAiAjTrdRqRR1ybDLPfPt/TPiIbT8zxcLc7aK +j9ISxCTaYg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Key.der new file mode 100644 index 00000000000000..a094c89a416f60 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Key.pem new file mode 100644 index 00000000000000..4212bcd5338f16 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAc0YflpU43791Tsdz285OYQtamLpxx7SShQesVPxyUjoAoGCCqGSM49 +AwEHoUQDQgAER+HhzbcgEV45yI4QHVQta4adeoWXzwRbI2KUQQs8UHbOuE4MD8sH +IBjkLWVvHIpfCKUYjydBgExoMg3ko8bQWw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Cert.der new file mode 100644 index 00000000000000..8a47de1517aaa7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..d50228b1a4655c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIKk9PSO9fSKswCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATRhc+mw9SD7L/g9qvOaI0ulS0QjGoU +dbygHSdsbjMSA2cRK01F3AaFpPAQY9qonlcEwvKeu/xSUmWvZHoMsIl+o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU1/iG ++G/LC4BGUZXCbTNVWC2aCKowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgEujHAhbQSju1SnBH2zNqf+S20ciEVS6FbY8q +MY7vJSsCIQDQYhcctUef8iHKI6dbHzs6qeCQ1ceaRpcCKfolj8YfTA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Key.der new file mode 100644 index 00000000000000..d4c1a549fda02c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Key.pem new file mode 100644 index 00000000000000..009ea45343d00a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOZPLhGTC5/sJpUG23m4l1Yo4YkkXgRZJBePvzfycct2oAoGCCqGSM49 +AwEHoUQDQgAE0YXPpsPUg+y/4ParzmiNLpUtEIxqFHW8oB0nbG4zEgNnEStNRdwG +haTwEGPaqJ5XBMLynrv8UlJlr2R6DLCJfg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/test_case_vector.json new file mode 100644 index 00000000000000..9922727ee6eaf2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cert_type_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The certification_type field is set to invalid value.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202083b7087bf445cd4f8300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000447e1e1cdb720115e39c88e101d542d6b869d7a8597cf045b236294410b3c5076ceb84e0c0fcb072018e42d656f1c8a5f08a5188f2741804c68320de4a3c6d05ba360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041409eefc7883d55f1646557baff6f51b7f4d52db36301f0603551d23041830168014d7f886f86fcb0b80465195c26d3355582d9a08aa300a06082a8648ce3d040302034700304402202550492fa81fe4d1d3098ed1d2faa39c71991544cbab6192b7d82188f25af6a00220234eb751a91475c9b0cb3df3edfd33e221b4fccf170b73b68a8fd212c424da62", + "pai_cert": "308201d43082017aa00302010202082a4f4f48ef5f48ab300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004d185cfa6c3d483ecbfe0f6abce688d2e952d108c6a1475bca01d276c6e33120367112b4d45dc0685a4f01063daa89e5704c2f29ebbfc525265af647a0cb0897ea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414d7f886f86fcb0b80465195c26d3355582d9a08aa301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022012e8c70216d04a3bb54a7047db336a7fe4b6d1c884552e856d8f2a318eef252b022100d062171cb5479ff221ca23a75b1f3b3aa9e090d5c79a46970229fa258fc61f4c", + "certification_declaration": "3082010306092a864886f70d010702a081f53081f2020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d3234240500240600250776982408ff360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100ed73b064eddf1e69529f4bd8ca1cae7b5ad1d5ee96255b979ab30fe27f02bf06022100a1bc5c3c1f2a4804f536c51acecd7703a206b7ee37793a54ad4aed914825b1ae", + "dac_private_key": "073461f969538dfbf754ec773dbce4e610b5a98ba71c7b4928507ac54fc72523", + "dac_public_key": "0447e1e1cdb720115e39c88e101d542d6b869d7a8597cf045b236294410b3c5076ceb84e0c0fcb072018e42d656f1c8a5f08a5188f2741804c68320de4a3c6d05b" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/cd.der new file mode 100644 index 00000000000000..ef330113161563 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Cert.der new file mode 100644 index 00000000000000..7513a02224892d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Cert.pem new file mode 100644 index 00000000000000..06f6d9a2932b12 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIILgGHRW6c5ncwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +pkq74TU6MBGqU5Zi3XEPRZUMjaBxaM8L1L2ttRkBImS5XjuR/4oeU2RAOY7CzEqj +6FdTiJ3W8Xu7lXyqvsaleaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFCgaa3hWcFwhq1tBXGca7MItc7f3MB8GA1UdIwQYMBaAFPZ5 +RIO5t2+z6ym83LIUds8pEc4AMAoGCCqGSM49BAMCA0cAMEQCID0402JhDkOkyRL0 +wM8FHbmitppvNxOC9zlBTnhpMPMOAiBomw+sFkYBwm7rSJ9kBakYTrNnBd8KMx4R +8JOvPcc2xQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Key.der new file mode 100644 index 00000000000000..7d0ee14af3c306 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Key.pem new file mode 100644 index 00000000000000..add167402ff720 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIH0OgRWlMtVZmGuh9Eig3QyPdCiXtGB+CCXA9pwok5xooAoGCCqGSM49 +AwEHoUQDQgAEpkq74TU6MBGqU5Zi3XEPRZUMjaBxaM8L1L2ttRkBImS5XjuR/4oe +U2RAOY7CzEqj6FdTiJ3W8Xu7lXyqvsaleQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Cert.der new file mode 100644 index 00000000000000..31ab12077be645 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Cert.pem new file mode 100644 index 00000000000000..d387ad4a6b1d08 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIXCw6DxrI+3IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCqjVPE8k5UCLeLEowiyBBND9ymWt+ +1sDX5nhnjl0pT2bzLahid5fj5zIu7JBjZIrp+onuVtkZIjnKQXd56W/vo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU9nlE +g7m3b7PrKbzcshR2zykRzgAwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAJx07GAgyBpQZ/SzLQa59zMUWwSI6tb3H79r +jHLa3VI+AiEA6a8VTUrXTOI0ywPvtjWWLNfEsAoD394VDMLXr4I1p3I= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Key.der new file mode 100644 index 00000000000000..a45d85137e8979 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Key.pem new file mode 100644 index 00000000000000..815885b617c657 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIM7cLW050gsxFf6D5egt6GMN+QjFr6obzzUxoi2X0CmhoAoGCCqGSM49 +AwEHoUQDQgAEAqo1TxPJOVAi3ixKMIsgQTQ/cplrftbA1+Z4Z45dKU9m8y2oYneX +4+cyLuyQY2SK6fqJ7lbZGSI5ykF3eelv7w== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/test_case_vector.json new file mode 100644 index 00000000000000..e3aad9e7fd8dd5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid CMS digest algorithm SHA1.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202082e0187456e9ce677300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004a64abbe1353a3011aa539662dd710f45950c8da07168cf0bd4bdadb519012264b95e3b91ff8a1e536440398ec2cc4aa3e85753889dd6f17bbb957caabec6a579a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414281a6b7856705c21ab5b415c671aecc22d73b7f7301f0603551d23041830168014f6794483b9b76fb3eb29bcdcb21476cf2911ce00300a06082a8648ce3d040302034700304402203d38d362610e43a4c912f4c0cf051db9a2b69a6f371382f739414e786930f30e0220689b0fac164601c26eeb489f6405a9184eb36705df0a331e11f093af3dc736c5", + "pai_cert": "308201d53082017aa00302010202085c2c3a0f1ac8fb72300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000402aa354f13c9395022de2c4a308b2041343f72996b7ed6c0d7e678678e5d294f66f32da8627797e3e7322eec9063648ae9fa89ee56d9192239ca417779e96fefa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414f6794483b9b76fb3eb29bcdcb21476cf2911ce00301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203490030460221009c74ec6020c81a5067f4b32d06b9f733145b0488ead6f71fbf6b8c72dadd523e022100e9af154d4ad74ce234cb03efb635962cd7c4b00a03dfde150cc2d7af8235a772", + "certification_declaration": "3081fd06092a864886f70d010702a081ef3081ec0201033109300706052b0e03021a305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022023716c7ca3a0d8b6f0a052e075b220fc2b845b230806f4226d015551021afb13022038c9ee68dc4e153a53ca69974fef3b339fcd718baa28d3024501e55f4f6f3965", + "dac_private_key": "7d0e8115a532d559986ba1f448a0dd0c8f742897b4607e0825c0f69c28939c68", + "dac_public_key": "04a64abbe1353a3011aa539662dd710f45950c8da07168cf0bd4bdadb519012264b95e3b91ff8a1e536440398ec2cc4aa3e85753889dd6f17bbb957caabec6a579" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/cd.der new file mode 100644 index 00000000000000..2570c5b433239b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Cert.der new file mode 100644 index 00000000000000..4b530235ebc3d8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Cert.pem new file mode 100644 index 00000000000000..c622261bdb379f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIEi/iMIBYtXQwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +yC6yDoVO/N7/IHkdYc7+A6/RwW3flNd+A5OSIkIz/E7JEaOqt2MixUM9buOeBtIq ++wmi1+et9cRs8dLtIgHlcaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFJIWJu+gcJnUe8d+IaOBlGLKi0D7MB8GA1UdIwQYMBaAFAMk +/5Mjpqe0rvPRF4eLS/KuBd6EMAoGCCqGSM49BAMCA0kAMEYCIQCQIi0Lt83lBfJn +TCKCVuoUSE5CTNZEVjM51X8Iyg18HQIhAIfcd4K/Psy3wRyEno+HT3o49WZgP0Fb +kE6bxT3PRvYe +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Key.der new file mode 100644 index 00000000000000..bfb142854125db Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Key.pem new file mode 100644 index 00000000000000..d3741aa0684a44 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJPS4BZKmRTZiTQaBoisjfE6PGMozB3C3x7w1c0XX/tZoAoGCCqGSM49 +AwEHoUQDQgAEyC6yDoVO/N7/IHkdYc7+A6/RwW3flNd+A5OSIkIz/E7JEaOqt2Mi +xUM9buOeBtIq+wmi1+et9cRs8dLtIgHlcQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Cert.der new file mode 100644 index 00000000000000..d222d23cfc8c9f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Cert.pem new file mode 100644 index 00000000000000..2a1542ffab7cf8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIF00YgRODnFQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARHVZCKDsa9hPiSdP+hoIIFE7mZWnTP +SW27STmfi8qTZdh97gLQjKgi44x9qWKIVD3myOw6UOZhlNbUzthfZ8Pxo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUAyT/ +kyOmp7Su89EXh4tL8q4F3oQwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgXhlFRpURnDHndgPJj5jTQor2NCEFlkhOv1F1 +Nj6LxEMCIQD3U29Qbeh30HDx4kSQJC/FYcGzOeEnV54PzDPYOZL7xw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Key.der new file mode 100644 index 00000000000000..b7fa65180fe74b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Key.pem new file mode 100644 index 00000000000000..c74c21e4f07d2e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEeu67/ISo1LO5qCc7od2RSl9D+iPHLHzXfjwhCE08cyoAoGCCqGSM49 +AwEHoUQDQgAER1WQig7GvYT4knT/oaCCBRO5mVp0z0ltu0k5n4vKk2XYfe4C0Iyo +IuOMfaliiFQ95sjsOlDmYZTW1M7YX2fD8Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/test_case_vector.json new file mode 100644 index 00000000000000..a0966bf63fac87 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_digest_algo_sha256/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Valid CMS digest algorithm SHA256.", + "is_success_case": "true", + "dac_cert": "308201e53082018aa0030201020208122fe2308058b574300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004c82eb20e854efcdeff20791d61cefe03afd1c16ddf94d77e039392224233fc4ec911a3aab76322c5433d6ee39e06d22afb09a2d7e7adf5c46cf1d2ed2201e571a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414921626efa07099d47bc77e21a3819462ca8b40fb301f0603551d230418301680140324ff9323a6a7b4aef3d117878b4bf2ae05de84300a06082a8648ce3d040302034900304602210090222d0bb7cde505f2674c228256ea14484e424cd644563339d57f08ca0d7c1d02210087dc7782bf3eccb7c11c849e8f874f7a38f566603f415b904e9bc53dcf46f61e", + "pai_cert": "308201d43082017aa0030201020208174d188113839c54300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200044755908a0ec6bd84f89274ffa1a0820513b9995a74cf496dbb49399f8bca9365d87dee02d08ca822e38c7da96288543de6c8ec3a50e66194d6d4ced85f67c3f1a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604140324ff9323a6a7b4aef3d117878b4bf2ae05de84301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502205e19454695119c31e77603c98f98d3428af634210596484ebf5175363e8bc443022100f7536f506de877d070f1e24490242fc561c1b339e127579e0fcc33d83992fbc7", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100a5ea65630305148e481ad89839b6d8fd4471fa4535e5bb8624187e1e7367e6d7022064925c0cbdb5afc7cf9a6d527ba01ec58a999919c3a8442b7841cab1c62120f0", + "dac_private_key": "93d2e0164a9914d989341a0688ac8df13a3c6328cc1dc2df1ef0d5cd175ffb59", + "dac_public_key": "04c82eb20e854efcdeff20791d61cefe03afd1c16ddf94d77e039392224233fc4ec911a3aab76322c5433d6ee39e06d22afb09a2d7e7adf5c46cf1d2ed2201e571" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/cd.der new file mode 100644 index 00000000000000..e0b70e1e245260 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Cert.der new file mode 100644 index 00000000000000..1d68a4106932c5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Cert.pem new file mode 100644 index 00000000000000..99127a1c2c6d9a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIICHwd/zKjS1kwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +GpThL/7QNxWPh7cGoWAU6ibBNBpOnTbKRcTeOnuaW+r3L8ro6BeRq6d7IQb7FYkL +oXvItHLmASDSDnEOXUW8UaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFC5BHVhOM7cwUcmNUhugB4Bi3fXHMB8GA1UdIwQYMBaAFCO1 +YTp13J75z35Xzy25ocYtKDclMAoGCCqGSM49BAMCA0gAMEUCIDKkESKy1ZnCKkZw +4vJeZvbV5u5eRySgQVpMZmwJbSitAiEAlTBSBSodgP/OoAupJyvbwn6UcIMKgeh6 +J1GtQEYSOSY= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Key.der new file mode 100644 index 00000000000000..4c5734b4a3a3c6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Key.pem new file mode 100644 index 00000000000000..71cb096cb871ca --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAlPFon7NwOFiKWzBkDcsxblgc8h/iEVCMB8H5DsfrZsoAoGCCqGSM49 +AwEHoUQDQgAEGpThL/7QNxWPh7cGoWAU6ibBNBpOnTbKRcTeOnuaW+r3L8ro6BeR +q6d7IQb7FYkLoXvItHLmASDSDnEOXUW8UQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Cert.der new file mode 100644 index 00000000000000..346aee6c3e0040 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Cert.pem new file mode 100644 index 00000000000000..d8a06119051e00 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIYl01dUM84EQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAS5sBhFJPDCRnnxMZVtVhfmwmFAjGEX +Kg4/JuayI1X7jOh+Dtbyw2injqRvaZ+khyQj1J1zYGPHaruvT1tGlpToo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUI7Vh +OnXcnvnPflfPLbmhxi0oNyUwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAIR5RcsMEsNK5GzQDOW2KMbv74PSrSlhAwdC +PxUAs/xRAiBwaWyncOzoQRv0sN5DUMYR/vzwqlKb5kMRJDNfoWlOSw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Key.der new file mode 100644 index 00000000000000..3987a190fb32e0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Key.pem new file mode 100644 index 00000000000000..b3ce709ab57ce7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIO6EaL3vV2y8wA9Ad3xPsRa6TcbQPVrj0TqgDmR8mFoMoAoGCCqGSM49 +AwEHoUQDQgAEubAYRSTwwkZ58TGVbVYX5sJhQIxhFyoOPybmsiNV+4zofg7W8sNo +p46kb2mfpIckI9Sdc2Bjx2q7r09bRpaU6A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/test_case_vector.json new file mode 100644 index 00000000000000..7eac89a1a15e15 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_msac/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid CMS eContentType is set to Microsoft Authenticode [MSAC] OID = { 1.3.6.1.4.1.311.2.1.4 }.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa0030201020208087c1dff32a34b59300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200041a94e12ffed037158f87b706a16014ea26c1341a4e9d36ca45c4de3a7b9a5beaf72fcae8e81791aba77b2106fb15890ba17bc8b472e60120d20e710e5d45bc51a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604142e411d584e33b73051c98d521ba0078062ddf5c7301f0603551d2304183016801423b5613a75dc9ef9cf7e57cf2db9a1c62d283725300a06082a8648ce3d0403020348003045022032a41122b2d599c22a4670e2f25e66f6d5e6ee5e4724a0415a4c666c096d28ad022100953052052a1d80ffcea00ba9272bdbc27e9470830a81e87a2751ad4046123926", + "pai_cert": "308201d43082017aa0030201020208625d3575433ce044300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004b9b0184524f0c24679f131956d5617e6c261408c61172a0e3f26e6b22355fb8ce87e0ed6f2c368a78ea46f699fa4872423d49d736063c76abbaf4f5b469694e8a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041423b5613a75dc9ef9cf7e57cf2db9a1c62d283725301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100847945cb0c12c34ae46cd00ce5b628c6efef83d2ad29610307423f1500b3fc51022070696ca770ece8411bf4b0de4350c611fefcf0aa529be6431124335fa1694e4b", + "certification_declaration": "3082010506092a864886f70d010702a081f73081f4020103310d300b06096086480165030402013061060c060a2b060104018237020104a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502201421395e60a0ea620f02ae238cd5b9841c4dd2684c60091e28abfa02b02b3f250221009b501736577bbaf4a9fe4a9fdaad01ead1c5e2625d36c8b1ed552b56d8d1b468", + "dac_private_key": "094f1689fb37038588a5b30640dcb316e581cf21fe211508c07c1f90ec7eb66c", + "dac_public_key": "041a94e12ffed037158f87b706a16014ea26c1341a4e9d36ca45c4de3a7b9a5beaf72fcae8e81791aba77b2106fb15890ba17bc8b472e60120d20e710e5d45bc51" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/cd.der new file mode 100644 index 00000000000000..fc45cd70e72011 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Cert.der new file mode 100644 index 00000000000000..3f22bff4a0f49c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Cert.pem new file mode 100644 index 00000000000000..f2a902c9d03b42 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIPdMLkeVstGYwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +16gc704lreu/RKUduFNo6NzJAmgee/PYr9He+4wI4egpNTt+Jg+IdRpV+ih7F6UG +zZKT2D7JWvj+t5naTVJnAaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFIgpPFPjTY17JQojQFh7QOZNxp82MB8GA1UdIwQYMBaAFDeF +i+5KOyiAIoinLoIBETWbpv51MAoGCCqGSM49BAMCA0cAMEQCIFVfibQknxyHYYNj +jCmkp3As53v7/A6T12Oj+lqgyv4BAiB6P+88ldBxAnGVNkbC5/xMFM/OpU/+LPhk +wnoUMDUZew== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Key.der new file mode 100644 index 00000000000000..f623c42a1b0f76 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Key.pem new file mode 100644 index 00000000000000..0f35e72ba49602 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIF+gpplUh1GvzEkgpeszSvIxLypMHGI8rvwVHEG0J4AyoAoGCCqGSM49 +AwEHoUQDQgAE16gc704lreu/RKUduFNo6NzJAmgee/PYr9He+4wI4egpNTt+Jg+I +dRpV+ih7F6UGzZKT2D7JWvj+t5naTVJnAQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Cert.der new file mode 100644 index 00000000000000..7909603eda7e34 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Cert.pem new file mode 100644 index 00000000000000..c6cf90fc98c1e2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIOW38WinyliIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARMCz03jxIxvpuvO3Mh431jAbGrcvmq +XpdRZp6HHytywW9vmBajtXBb6RuUoemSvsDKmJNBTQG3x9bEXa1S2Lk0o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUN4WL +7ko7KIAiiKcuggERNZum/nUwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgXTtnLiXM88qiOp1zarIChDZqQXOu4CDmAMnL +5HaQL8YCIQCWQf1OTcBcjIgBn3s09tlFGbGQipOXcVQzXQG3UGnX/g== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Key.der new file mode 100644 index 00000000000000..c13d7e9fe30d45 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Key.pem new file mode 100644 index 00000000000000..12ecdb4d7f08c2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOOt0X7+bPYEHc3GWS0wGKlA+70IgyW5HQdr4eKP3K0AoAoGCCqGSM49 +AwEHoUQDQgAETAs9N48SMb6brztzIeN9YwGxq3L5ql6XUWaehx8rcsFvb5gWo7Vw +W+kblKHpkr7AypiTQU0Bt8fWxF2tUti5NA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/test_case_vector.json new file mode 100644 index 00000000000000..d4163b88877681 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_econtent_type_pkcs7_data/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Valid CMS eContentType pkcs7-data.", + "is_success_case": "true", + "dac_cert": "308201e33082018aa00302010202083dd30b91e56cb466300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004d7a81cef4e25adebbf44a51db85368e8dcc902681e7bf3d8afd1defb8c08e1e829353b7e260f88751a55fa287b17a506cd9293d83ec95af8feb799da4d526701a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041488293c53e34d8d7b250a2340587b40e64dc69f36301f0603551d2304183016801437858bee4a3b28802288a72e820111359ba6fe75300a06082a8648ce3d04030203470030440220555f89b4249f1c876183638c29a4a7702ce77bfbfc0e93d763a3fa5aa0cafe0102207a3fef3c95d0710271953646c2e7fc4c14cfcea54ffe2cf864c27a143035197b", + "pai_cert": "308201d43082017aa0030201020208396dfc5a29f29622300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200044c0b3d378f1231be9baf3b7321e37d6301b1ab72f9aa5e9751669e871f2b72c16f6f9816a3b5705be91b94a1e992bec0ca9893414d01b7c7d6c45dad52d8b934a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041437858bee4a3b28802288a72e820111359ba6fe75301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502205d3b672e25ccf3caa23a9d736ab20284366a4173aee020e600c9cbe476902fc60221009641fd4e4dc05c8c88019f7b34f6d94519b1908a93977154335d01b75069d7fe", + "certification_declaration": "3082010106092a864886f70d010702a081f33081f0020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402206b479b74f2d3ad86fafca5e20ed8cc719306841c90b4330637e960766fad658802203e3f0c886f6bc87467886a16388a5c3e0cf21e3c1b2e642129f8d1537ae9e3c3", + "dac_private_key": "5fa0a699548751afcc4920a5eb334af2312f2a4c1c623caefc151c41b4278032", + "dac_public_key": "04d7a81cef4e25adebbf44a51db85368e8dcc902681e7bf3d8afd1defb8c08e1e829353b7e260f88751a55fa287b17a506cd9293d83ec95af8feb799da4d526701" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/cd.der new file mode 100644 index 00000000000000..a5f58832d8e427 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Cert.der new file mode 100644 index 00000000000000..f0a9cbc8714718 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Cert.pem new file mode 100644 index 00000000000000..b6179be052f897 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIWYA/T0sgELIwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +d/29qL0KisWKa/vTr3kKf9dhZSoYffwPdAaDCC5qelTH+QlOAPJCKeLuVBysfQMH +pgw2odTi75A0yJGXIvBvlqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFGFMfIaAwMiUFfe1hluv40jP8KMXMB8GA1UdIwQYMBaAFJph +dBbQmGerFDhJ5jaFylHYb740MAoGCCqGSM49BAMCA0gAMEUCIQC9JeXc6M3KhBBO +kmNNQbyuDTJKLiSwIF4YP7J5k2PO9wIgBeuLPy++ubBrWnj3psam2Z+Yq3wfDRKn +liJCEsFzAjA= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Key.der new file mode 100644 index 00000000000000..f0669b297ea791 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Key.pem new file mode 100644 index 00000000000000..cc10771f544df9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAilEVcXWEe2TWYAFij6rjyJvIMDA63q5HOtBZhreqH3oAoGCCqGSM49 +AwEHoUQDQgAEd/29qL0KisWKa/vTr3kKf9dhZSoYffwPdAaDCC5qelTH+QlOAPJC +KeLuVBysfQMHpgw2odTi75A0yJGXIvBvlg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Cert.der new file mode 100644 index 00000000000000..91dc22603f9b53 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Cert.pem new file mode 100644 index 00000000000000..672ffa0de6c09e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIFMwDSPKHQqcwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQzkE63fa2BDDjwCmbmIqV8ySv5iWQV +4LvKNrdva+o6UnHOGKE8yEDPso9qGhI9wjHB5GXYmqLCWcQNlzaQJsJZo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUmmF0 +FtCYZ6sUOEnmNoXKUdhvvjQwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhALl9bL3b+XmTEJ06ZxD36OpplOHWqh52bPia +blEKTLgzAiAF+KjWgsCV3dgE1tryPbAnVxJ5y3Nje3uFzNd0hFVQtA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Key.der new file mode 100644 index 00000000000000..03fae6fd01002f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Key.pem new file mode 100644 index 00000000000000..b5b5c9b33e5cce --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMVJNQKPENfHZPNLHzOr5o8XEuJfdJu0HpNi+l5/aV3DoAoGCCqGSM49 +AwEHoUQDQgAEM5BOt32tgQw48Apm5iKlfMkr+YlkFeC7yja3b2vqOlJxzhihPMhA +z7KPahoSPcIxweRl2JqiwlnEDZc2kCbCWQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/test_case_vector.json new file mode 100644 index 00000000000000..dc211e2a891cbc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid CMS signature algorithm ECDSA_WITH_SHA1.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa003020102020859803f4f4b2010b2300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000477fdbda8bd0a8ac58a6bfbd3af790a7fd761652a187dfc0f740683082e6a7a54c7f9094e00f24229e2ee541cac7d0307a60c36a1d4e2ef9034c8919722f06f96a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414614c7c8680c0c89415f7b5865bafe348cff0a317301f0603551d230418301680149a617416d09867ab143849e63685ca51d86fbe34300a06082a8648ce3d0403020348003045022100bd25e5dce8cdca84104e92634d41bcae0d324a2e24b0205e183fb2799363cef7022005eb8b3f2fbeb9b06b5a78f7a6c6a6d99f98ab7c1f0d12a796224212c1730230", + "pai_cert": "308201d43082017aa003020102020814cc0348f28742a7300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000433904eb77dad810c38f00a66e622a57cc92bf9896415e0bbca36b76f6bea3a5271ce18a13cc840cfb28f6a1a123dc231c1e465d89aa2c259c40d97369026c259a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604149a617416d09867ab143849e63685ca51d86fbe34301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100b97d6cbddbf97993109d3a6710f7e8ea6994e1d6aa1e766cf89a6e510a4cb833022005f8a8d682c095ddd804d6daf23db027571279cb73637b7b85ccd774845550b4", + "certification_declaration": "3082010006092a864886f70d010702a081f23081ef020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317b3079020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300906072a8648ce3d040104463044022049f9b5d56c8df4df39b8438a21025d8ea7316c64131c3c167f73bf99e6bb046702207b0b6a2720baf548fc3964c39748c33b02cd96042d5b8355f37d7099851a25da", + "dac_private_key": "08a51157175847b64d66001628faae3c89bc830303adeae473ad05986b7aa1f7", + "dac_public_key": "0477fdbda8bd0a8ac58a6bfbd3af790a7fd761652a187dfc0f740683082e6a7a54c7f9094e00f24229e2ee541cac7d0307a60c36a1d4e2ef9034c8919722f06f96" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/cd.der new file mode 100644 index 00000000000000..320f79fe86509e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Cert.der new file mode 100644 index 00000000000000..7272ea69583961 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Cert.pem new file mode 100644 index 00000000000000..beed86f3486bfa --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIUa+/awG73QcwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +EFnP3n8Qgh8uZudyZCkD9mJXpl0Ai/+Wmb/Dc1CgXGpqUbEZ4ra/7KgHnQMi4pYc +rnqHIxYZ1Vve6WFYe2S4NqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFHquxgnj0CVuN8AVgod7XNrc2Z+RMB8GA1UdIwQYMBaAFGR8 +lcYl2RWQpYBNGNPQEadSenC7MAoGCCqGSM49BAMCA0gAMEUCIQClmcCcXr0fU7Ei +WSdvza2vQYtXU1X9e0dtIGousLyt8wIgKVSFVu7vi24HOt1OI/mPWULjdsMJzpUF +2BxFTMNoL8w= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Key.der new file mode 100644 index 00000000000000..0ade22b7e90086 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Key.pem new file mode 100644 index 00000000000000..8e0f87730b9400 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIP1yvpYRrZUkkuY4TjcIwDIoBq2YMdYH6uvQ/zIE2KD9oAoGCCqGSM49 +AwEHoUQDQgAEEFnP3n8Qgh8uZudyZCkD9mJXpl0Ai/+Wmb/Dc1CgXGpqUbEZ4ra/ +7KgHnQMi4pYcrnqHIxYZ1Vve6WFYe2S4Ng== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Cert.der new file mode 100644 index 00000000000000..777a035d8814a3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Cert.pem new file mode 100644 index 00000000000000..bd237aad71abfc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIIHNO7+2g/W9IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR7Kn2DWq7jxwru8iDEtCvxtGcBenKG +J43lIzi076C2T+N/cQ7QldYjMdSw0yYjYYjMWyv9gAdJokyQAcxYHJHoo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUZHyV +xiXZFZClgE0Y09ARp1J6cLswHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgLEHiRUg+8X9xvIdDV/lZHjDa79/TyVosM8P5 +jb046RYCIATt5XR/1neaENVBpdLYwIb3DAszzN70pJiT/c8tLvn6 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Key.der new file mode 100644 index 00000000000000..212a8506bdaf5b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Key.pem new file mode 100644 index 00000000000000..a7735d190dbff8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGXEdqJrz0YBnq7iI9naAhOhJMbritLmWEF0DGfda2wNoAoGCCqGSM49 +AwEHoUQDQgAEeyp9g1qu48cK7vIgxLQr8bRnAXpyhieN5SM4tO+gtk/jf3EO0JXW +IzHUsNMmI2GIzFsr/YAHSaJMkAHMWByR6A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/test_case_vector.json new file mode 100644 index 00000000000000..43831cf8c5e8c4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_sig_algo_ecdsa_with_sha256/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Valid CMS signature algorithm ECDSA_WITH_SHA256.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa003020102020851afbf6b01bbdd07300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200041059cfde7f10821f2e66e772642903f66257a65d008bff9699bfc37350a05c6a6a51b119e2b6bfeca8079d0322e2961cae7a87231619d55bdee961587b64b836a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604147aaec609e3d0256e37c01582877b5cdadcd99f91301f0603551d23041830168014647c95c625d91590a5804d18d3d011a7527a70bb300a06082a8648ce3d0403020348003045022100a599c09c5ebd1f53b12259276fcdadaf418b575355fd7b476d206a2eb0bcadf3022029548556eeef8b6e073add4e23f98f5942e376c309ce9505d81c454cc3682fcc", + "pai_cert": "308201d33082017aa00302010202081cd3bbfb683f5bd2300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047b2a7d835aaee3c70aeef220c4b42bf1b467017a7286278de52338b4efa0b64fe37f710ed095d62331d4b0d326236188cc5b2bfd800749a24c9001cc581c91e8a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414647c95c625d91590a5804d18d3d011a7527a70bb301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402202c41e245483ef17f71bc874357f9591e30daefdfd3c95a2c33c3f98dbd38e916022004ede5747fd6779a10d541a5d2d8c086f70c0b33ccdef4a49893fdcf2d2ef9fa", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100eee5435e9f6666883e39b126cbc5fae347032a169abc55929b41e1ed68bbc40b02206bdc22977e3ffe804922e178369d67c47e86b3e4e67d87d14409177e4164936d", + "dac_private_key": "fd72be9611ad952492e6384e3708c0322806ad9831d607eaebd0ff3204d8a0fd", + "dac_public_key": "041059cfde7f10821f2e66e772642903f66257a65d008bff9699bfc37350a05c6a6a51b119e2b6bfeca8079d0322e2961cae7a87231619d55bdee961587b64b836" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_signature/cd.der new file mode 100644 index 00000000000000..d832ff2dee0088 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_signature/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Cert.der new file mode 100644 index 00000000000000..a1b7b3c3a402d2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Cert.pem new file mode 100644 index 00000000000000..a6c340b4c99e92 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIZB+UTV2XfT0wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +kJLXerOu6ysHzmCxqwYNj8uVJtM1T19H19dTOGGvEpz7UpF3tWk3SiNf9bMbb2nV +PNS+pqEO2EZYE8ssPbRMv6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFOyGGeIlsPO9fyYTwl8a63iJsiBuMB8GA1UdIwQYMBaAFFYh +h6gBCq2Mjx5KraGoPWFKy3SBMAoGCCqGSM49BAMCA0cAMEQCID2p6rJsOcjefKb4 +c62ddfEBTDgWEgE73ah0g8XHBtVYAiBp1VIo0OJntQ1TjcKAaMb9DZ1+PBOXW02P +JG99TsNwVQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Key.der new file mode 100644 index 00000000000000..28d71a8d551614 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Key.pem new file mode 100644 index 00000000000000..af194e828d1003 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_signature/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOFDuHbLrpxlVvvP00IAuAglKVmh3FkMZh2oBT9cJyTRoAoGCCqGSM49 +AwEHoUQDQgAEkJLXerOu6ysHzmCxqwYNj8uVJtM1T19H19dTOGGvEpz7UpF3tWk3 +SiNf9bMbb2nVPNS+pqEO2EZYE8ssPbRMvw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Cert.der new file mode 100644 index 00000000000000..d228555d16c801 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Cert.pem new file mode 100644 index 00000000000000..52fb00d97984bd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIVy3yKzzyswwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQHqYCBjFhwURB1vFv+U0Csz00Yuvps +c40V4CwX7Eh0TGgBVfhkVQu3LwT6MvitXBALwnF0zXmkJMnDf1YzuuTZo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUViGH +qAEKrYyPHkqtoag9YUrLdIEwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgQVg1d0g/z3eEX5povioGq5dycjh3Eds+NhB/ +Q6RrYUoCIQD59OyRkyONzepimsC9srkxaFJQZyP8jo0o+kBOaj57/Q== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Key.der new file mode 100644 index 00000000000000..3c581e68891ff1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Key.pem new file mode 100644 index 00000000000000..6e8cdba227549b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_signature/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIP+0y35+Wl09aF45bGAenM3vakJfxB0C185/Bf1JCq4SoAoGCCqGSM49 +AwEHoUQDQgAEB6mAgYxYcFEQdbxb/lNArM9NGLr6bHONFeAsF+xIdExoAVX4ZFUL +ty8E+jL4rVwQC8JxdM15pCTJw39WM7rk2Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_signature/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_signature/test_case_vector.json new file mode 100644 index 00000000000000..00e8b9d2660bba --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_signature/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid CMS Signature.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa0030201020208641f944d5d977d3d300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200049092d77ab3aeeb2b07ce60b1ab060d8fcb9526d3354f5f47d7d7533861af129cfb529177b569374a235ff5b31b6f69d53cd4bea6a10ed8465813cb2c3db44cbfa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414ec8619e225b0f3bd7f2613c25f1aeb7889b2206e301f0603551d23041830168014562187a8010aad8c8f1e4aada1a83d614acb7481300a06082a8648ce3d040302034700304402203da9eab26c39c8de7ca6f873ad9d75f1014c381612013bdda87483c5c706d558022069d55228d0e267b50d538dc28068c6fd0d9d7e3c13975b4d8f246f7d4ec37055", + "pai_cert": "308201d43082017aa0030201020208572df22b3cf2b30c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000407a980818c5870511075bc5bfe5340accf4d18bafa6c738d15e02c17ec48744c680155f864550bb72f04fa32f8ad5c100bc27174cd79a424c9c37f5633bae4d9a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414562187a8010aad8c8f1e4aada1a83d614acb7481301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022041583577483fcf77845f9a68be2a06ab977272387711db3e36107f43a46b614a022100f9f4ec9193238dcdea629ac0bdb2b9316852506723fc8e8d28fa404e6a3e7bfd", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044730450220508c3b11006d745208ebe4d8b47a5fc3150c24f449b2cf55d4059359ce68cc3b02210086ac5f4e6d3733848bc6b63efe7a31002932acc3b6d3e594d6d47dbee9fc89af", + "dac_private_key": "e143b876cbae9c6556fbcfd34200b808252959a1dc590c661da8053f5c2724d1", + "dac_public_key": "049092d77ab3aeeb2b07ce60b1ab060d8fcb9526d3354f5f47d7d7533861af129cfb529177b569374a235ff5b31b6f69d53cd4bea6a10ed8465813cb2c3db44cbf" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_v2/cd.der new file mode 100644 index 00000000000000..0cec6f03d80f2c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v2/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Cert.der new file mode 100644 index 00000000000000..2f5590f877d213 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Cert.pem new file mode 100644 index 00000000000000..1548c487f67892 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIatD/GBMuvkkwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +A7cNuuIxo/lkyfHv28FO3b7ybhz79kTmubkPDqNqLdwRc5B2vrBrRR28b2huoPbn +IuoNTsETgBkeIhAfDPqV3aNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFHKd28iQYutSi1iNOuvUwyiNwFJlMB8GA1UdIwQYMBaAFGP0 +RHvw5ZsEEGFYd/g+b0PVkLgDMAoGCCqGSM49BAMCA0cAMEQCICXfBCZ2VdugCl3q +4ki1hImTQs6kmMIA6yd5yz58BjkwAiBPXbNFH5SvalLRr3RwoJ3MggEpcEqdJxQa +XRbdBgFGlw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Key.der new file mode 100644 index 00000000000000..debfe88c6ccaa2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Key.pem new file mode 100644 index 00000000000000..24eccaae52b755 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v2/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIwOzCwKHV5B8K+e/pWT+dDdnNIVHrMKaHwc98XLSKsHoAoGCCqGSM49 +AwEHoUQDQgAEA7cNuuIxo/lkyfHv28FO3b7ybhz79kTmubkPDqNqLdwRc5B2vrBr +RR28b2huoPbnIuoNTsETgBkeIhAfDPqV3Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Cert.der new file mode 100644 index 00000000000000..91eb78573563f8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Cert.pem new file mode 100644 index 00000000000000..79747ac45a6290 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIEAYfyyDdug0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASF77xXt/l+9OVfaOudjCgBn6VsYGz6 +imsz7UKrFIAqUNVuWHlhqkkkiW62hPwqtmwdX6rUqLGhPImgbL/NZ1glo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUY/RE +e/DlmwQQYVh3+D5vQ9WQuAMwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAIsXhx3hoNcZLxf6Vb3B8cZNZ20QFp06wA/i +LoNdQk9uAiAE3iiuuZc5GJQ1ud8kf8ba//ao/w3L9OACiiGts5LHig== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Key.der new file mode 100644 index 00000000000000..0d706d74dc4283 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Key.pem new file mode 100644 index 00000000000000..9b9f5d02c50025 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v2/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFJP9xtsdXzE0BBnOFDKxD3REAGs0NfrBu4V2VE/A050oAoGCCqGSM49 +AwEHoUQDQgAEhe+8V7f5fvTlX2jrnYwoAZ+lbGBs+oprM+1CqxSAKlDVblh5YapJ +JIlutoT8KrZsHV+q1KixoTyJoGy/zWdYJQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v2/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_v2/test_case_vector.json new file mode 100644 index 00000000000000..4d94363e5259ba --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v2/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid CMS version set to v2.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202086ad0ff18132ebe49300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000403b70dbae231a3f964c9f1efdbc14eddbef26e1cfbf644e6b9b90f0ea36a2ddc11739076beb06b451dbc6f686ea0f6e722ea0d4ec11380191e22101f0cfa95dda360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414729ddbc89062eb528b588d3aebd4c3288dc05265301f0603551d2304183016801463f4447bf0e59b0410615877f83e6f43d590b803300a06082a8648ce3d0403020347003044022025df04267655dba00a5deae248b584899342cea498c200eb2779cb3e7c06393002204f5db3451f94af6a52d1af7470a09dcc820129704a9d27141a5d16dd06014697", + "pai_cert": "308201d43082017aa003020102020810061fcb20ddba0d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000485efbc57b7f97ef4e55f68eb9d8c28019fa56c606cfa8a6b33ed42ab14802a50d56e587961aa4924896eb684fc2ab66c1d5faad4a8b1a13c89a06cbfcd675825a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041463f4447bf0e59b0410615877f83e6f43d590b803301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450221008b17871de1a0d7192f17fa55bdc1f1c64d676d10169d3ac00fe22e835d424f6e022004de28aeb99739189435b9df247fc6dafff6a8ff0dcbf4e0028a21adb392c78a", + "certification_declaration": "3082010106092a864886f70d010702a081f33081f0020102310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022019f5259dd5e6b80fce74e06a8a23c1d9e1352f230d79dd5dd6b554e79b53195702204719e8b44ef27b723afd74404ec3d2163b9039957d38a4d48d275fb5e32a9a51", + "dac_private_key": "8c0ecc2c0a1d5e41f0af9efe9593f9d0dd9cd2151eb30a687c1cf7c5cb48ab07", + "dac_public_key": "0403b70dbae231a3f964c9f1efdbc14eddbef26e1cfbf644e6b9b90f0ea36a2ddc11739076beb06b451dbc6f686ea0f6e722ea0d4ec11380191e22101f0cfa95dd" +} diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/cd.der b/credentials/development/commissioner_dut/struct_cd_cms_v3/cd.der new file mode 100644 index 00000000000000..7383b4d362994b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v3/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Cert.der new file mode 100644 index 00000000000000..03678411c06e2a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Cert.pem new file mode 100644 index 00000000000000..c9e47a89598d12 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIHiDnEYI1sxEwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +dSfTwrc9Te/7N3LDV1LjZFJiVJ1tEhHK+KATpQ9NkFF2s9iPXYmuDTuXbzy8UpWf +rSCB0QDnkdM4USKZ9x9ZDqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFCKmbtZ+MuufFuWxoXnwlEKLde+pMB8GA1UdIwQYMBaAFLXH +Pikar4NAjdaGNJyANhW0Av73MAoGCCqGSM49BAMCA0kAMEYCIQDRYbwfyajiog3J +5rTJlT+ouHHOTvBS+7s5+VPSoCYV0AIhALbirlKSUHf9gmvkRBdJGZsOjX414fuP +10UrrkWZjhsY +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Key.der new file mode 100644 index 00000000000000..a4db3edb42ec75 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Key.pem new file mode 100644 index 00000000000000..599a32870eac3d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v3/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBm7pUsR+PFnsLnFT1syUbQ011B9pXU7Rl4MWAZGoqaxoAoGCCqGSM49 +AwEHoUQDQgAEdSfTwrc9Te/7N3LDV1LjZFJiVJ1tEhHK+KATpQ9NkFF2s9iPXYmu +DTuXbzy8UpWfrSCB0QDnkdM4USKZ9x9ZDg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Cert.der new file mode 100644 index 00000000000000..e72e1bdc289e65 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Cert.pem new file mode 100644 index 00000000000000..83f7ee936ebe3d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIWEAO9H/LrnMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR83Y2hx9XrLzl0MimCT4Bauc0pl649 +cMIw+kJdoefj/ltob54P7tJ3d2XzzUZJI+y9xe9elEbmuKQP2FUvqUm7o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtcc+ +KRqvg0CN1oY0nIA2FbQC/vcwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgfYc6cVZvc2mNEdoV1/MRaOHsL6B7pCral7km +6Ef262ACIQCtX4nYWzjhx80ON/4Us90CpdIvlJrzrwaoJY1cyew8oA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Key.der new file mode 100644 index 00000000000000..08155849b3541a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Key.pem new file mode 100644 index 00000000000000..8791c186b97c13 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v3/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOw7UllUZomdfOkDPK9a2MfWZhIejepw8AS56MV8bsraoAoGCCqGSM49 +AwEHoUQDQgAEfN2NocfV6y85dDIpgk+AWrnNKZeuPXDCMPpCXaHn4/5baG+eD+7S +d3dl881GSSPsvcXvXpRG5rikD9hVL6lJuw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_cms_v3/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_cms_v3/test_case_vector.json new file mode 100644 index 00000000000000..ee06d5d581aecf --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_cms_v3/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Valid CMS version set to v3.", + "is_success_case": "true", + "dac_cert": "308201e53082018aa00302010202081e20e7118235b311300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047527d3c2b73d4deffb3772c35752e3645262549d6d1211caf8a013a50f4d905176b3d88f5d89ae0d3b976f3cbc52959fad2081d100e791d338512299f71f590ea360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041422a66ed67e32eb9f16e5b1a179f094428b75efa9301f0603551d23041830168014b5c73e291aaf83408dd686349c803615b402fef7300a06082a8648ce3d0403020349003046022100d161bc1fc9a8e2a20dc9e6b4c9953fa8b871ce4ef052fbbb39f953d2a02615d0022100b6e2ae52925077fd826be4441749199b0e8d7e35e1fb8fd7452bae45998e1b18", + "pai_cert": "308201d43082017aa003020102020858400ef47fcbae73300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047cdd8da1c7d5eb2f39743229824f805ab9cd2997ae3d70c230fa425da1e7e3fe5b686f9e0feed2777765f3cd464923ecbdc5ef5e9446e6b8a40fd8552fa949bba366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414b5c73e291aaf83408dd686349c803615b402fef7301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502207d873a71566f73698d11da15d7f31168e1ec2fa07ba42ada97b926e847f6eb60022100ad5f89d85b38e1c7cd0e37fe14b3dd02a5d22f949af3af06a8258d5cc9ec3ca0", + "certification_declaration": "3082010306092a864886f70d010702a081f53081f2020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100d25e9b259829f79d4d34d9a098b9f66ddf2b3bf387c8fe378079bcee2913f96a022100cf6ec0bc9f5bb179904f7e6f5a3c4f583caf21847603b2b1ad237681e1191178", + "dac_private_key": "19bba54b11f8f167b0b9c54f5b3251b434d7507da5753b465e0c580646a2a6b1", + "dac_public_key": "047527d3c2b73d4deffb3772c35752e3645262549d6d1211caf8a013a50f4d905176b3d88f5d89ae0d3b976f3cbc52959fad2081d100e791d338512299f71f590e" +} diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/cd.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/cd.der new file mode 100644 index 00000000000000..35357f994c513d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Cert.der new file mode 100644 index 00000000000000..1827eea7a1a554 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Cert.pem new file mode 100644 index 00000000000000..ab98859efcb1bf --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIPKLZP2LwPS4wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +FHTP4riz3/QDoHNTwXudq2TNQ4JmbW03ZuF0qeEx9ctyEy3NyU5ofp+F+Fs92CL7 +CMey0dknt74kR1BAARZsLaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFAE1YvIh7zVCuXW/rAAmr3Pm8xHYMB8GA1UdIwQYMBaAFEWF +UEVirtEXa717VeR5KlfxFwwfMAoGCCqGSM49BAMCA0kAMEYCIQC+9F2IHOkMyWE3 +mTMgjwNxDS1DznKV+AvjuS9VExFXngIhAOYxW6A1YNIFp8w2ZY/PZKcNzSCiCF/g +rVn+is8yoGzV +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Key.der new file mode 100644 index 00000000000000..a984cc91df8387 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Key.pem new file mode 100644 index 00000000000000..0bffa695ed4502 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHPwR1JafqJmyDQFJ0rNP1DaIOzl2oTJKITbF8SjKeOvoAoGCCqGSM49 +AwEHoUQDQgAEFHTP4riz3/QDoHNTwXudq2TNQ4JmbW03ZuF0qeEx9ctyEy3NyU5o +fp+F+Fs92CL7CMey0dknt74kR1BAARZsLQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Cert.der new file mode 100644 index 00000000000000..6aec9bbb00f704 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Cert.pem new file mode 100644 index 00000000000000..8078ccac543c6d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIC/cAUgBOTjIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASn2Mn3bT8apGi9WzWfX28v8BfVy47U +I/ADklEojp5D7MdFerTUh3KQEe0ioKweRJkw65naMI6FhP27d73fhDfso2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQURYVQ +RWKu0RdrvXtV5HkqV/EXDB8wHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAKPBbEUmZrWbHi61AuEa/xda9EToTkkYExAd +t5AEli44AiEA7zgCBeQ4Ax676kwLRPLCzQvTttLxh6c+f8y4bda7I2c= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Key.der new file mode 100644 index 00000000000000..5a94ee8a212f50 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Key.pem new file mode 100644 index 00000000000000..e88b9a8d929721 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBqGwzfAG/VZU+6gmGTwjNALCipCa23f91P9LhFQnB6HoAoGCCqGSM49 +AwEHoUQDQgAEp9jJ920/GqRovVs1n19vL/AX1cuO1CPwA5JRKI6eQ+zHRXq01Idy +kBHtIqCsHkSZMOuZ2jCOhYT9u3e934Q37A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/test_case_vector.json new file mode 100644 index 00000000000000..022dfcad06e90f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_missing_pid_present/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The dac_origin_vendor_id fild is not present and dac_origin_product_id is present.", + "is_success_case": "false", + "dac_cert": "308201e53082018aa00302010202083ca2d93f62f03d2e300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200041474cfe2b8b3dff403a07353c17b9dab64cd4382666d6d3766e174a9e131f5cb72132dcdc94e687e9f85f85b3dd822fb08c7b2d1d927b7be2447504001166c2da360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414013562f221ef3542b975bfac0026af73e6f311d8301f0603551d230418301680144585504562aed1176bbd7b55e4792a57f1170c1f300a06082a8648ce3d0403020349003046022100bef45d881ce90cc961379933208f03710d2d43ce7295f80be3b92f551311579e022100e6315ba03560d205a7cc36658fcf64a70dcd20a2085fe0ad59fe8acf32a06cd5", + "pai_cert": "308201d53082017aa00302010202080bf70052004e4e32300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004a7d8c9f76d3f1aa468bd5b359f5f6f2ff017d5cb8ed423f0039251288e9e43ecc7457ab4d487729011ed22a0ac1e449930eb99da308e8584fdbb77bddf8437eca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604144585504562aed1176bbd7b55e4792a57f1170c1f301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100a3c16c452666b59b1e2eb502e11aff175af444e84e491813101db79004962e38022100ef380205e438031ebbea4c0b44f2c2cd0bd3b6d2f187a73e7fccb86dd6bb2367", + "certification_declaration": "3082010606092a864886f70d010702a081f83081f5020103310d300b0609608648016503040201306206092a864886f70d010701a0550453152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800250a0080360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100b06bf38312df4bd88390de9af2c8e9f54ea98c4ef5ede8c54d16ae1b82c19ba402207a0844691a300b22cfde61aa1ab2ec7031201ee95b9e44a52ff0356703002088", + "dac_private_key": "73f047525a7ea266c83405274acd3f50da20ece5da84c92884db17c4a329e3af", + "dac_public_key": "041474cfe2b8b3dff403a07353c17b9dab64cd4382666d6d3766e174a9e131f5cb72132dcdc94e687e9f85f85b3dd822fb08c7b2d1d927b7be2447504001166c2d" +} diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/cd.der new file mode 100644 index 00000000000000..79d91a71c099b1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Cert.der new file mode 100644 index 00000000000000..244d7bfc8cb72c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Cert.pem new file mode 100644 index 00000000000000..44944c828af6a2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIFBryveui1dowCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE ++7zGBq2m55gQtztxoaQ6tPsz4b3Rwdgw1sjWyAb/5/AR+4P/GEl5UodEvb7gntfS +3JjUGaWvWGEBC39cd4cJwqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFKkUehZ6rjUqVrLupggel5mBnXMMMB8GA1UdIwQYMBaAFMhi +ou2NWYW785NCE6OmZkPTK0fGMAoGCCqGSM49BAMCA0cAMEQCIFm5BkByqBFNTUpF +Jv/t0sPtamfMUW5SUXBBVxzXrxfiAiBbwgc/c6rfG3xJisMJlD1SCmmH01WqILdq +l0hlG5Zo5w== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Key.der new file mode 100644 index 00000000000000..bcc9ee4932c5de Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Key.pem new file mode 100644 index 00000000000000..48c8060f6b380f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGDCBI+Wdigz7UF33TIlBkfxBgNrOMAdbLn8u6xNIK1foAoGCCqGSM49 +AwEHoUQDQgAE+7zGBq2m55gQtztxoaQ6tPsz4b3Rwdgw1sjWyAb/5/AR+4P/GEl5 +UodEvb7gntfS3JjUGaWvWGEBC39cd4cJwg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Cert.der new file mode 100644 index 00000000000000..1c769f245a9a4d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Cert.pem new file mode 100644 index 00000000000000..31bea54163a0d4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIFZApYO9UD6swCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASuwNx1cCOUoFOh9RIDzQZ7AoEswYXB +fkJvT3swJwpcTb5/gexJ1QeGThqqY/cY9sRutdf63rf0K3rv5+f0fMOIo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUyGKi +7Y1Zhbvzk0ITo6ZmQ9MrR8YwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgaN1KhSpaFuMrAZol9wnnytko6scC0q45/gsr +ztTqpn4CIQCv+oPlDaifesfQZBit/+xjS5JwRwHEraskhVXW8KBY0g== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Key.der new file mode 100644 index 00000000000000..98507a2207c8a3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Key.pem new file mode 100644 index 00000000000000..b362e1c937bf61 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIKx5rPIQh0I7bfgznssx0XKiCJIUODDwVZPhCu64fqFhoAoGCCqGSM49 +AwEHoUQDQgAErsDcdXAjlKBTofUSA80GewKBLMGFwX5Cb097MCcKXE2+f4HsSdUH +hk4aqmP3GPbEbrXX+t639Ct67+fn9HzDiA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/test_case_vector.json new file mode 100644 index 00000000000000..03279780f4b696 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The dac_origin_vendor_id and dac_origin_product_id fields are not present.", + "is_success_case": "true", + "dac_cert": "308201e33082018aa0030201020208141af2bdeba2d5da300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004fbbcc606ada6e79810b73b71a1a43ab4fb33e1bdd1c1d830d6c8d6c806ffe7f011fb83ff184979528744bdbee09ed7d2dc98d419a5af5861010b7f5c778709c2a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414a9147a167aae352a56b2eea6081e9799819d730c301f0603551d23041830168014c862a2ed8d5985bbf3934213a3a66643d32b47c6300a06082a8648ce3d0403020347003044022059b9064072a8114d4d4a4526ffedd2c3ed6a67cc516e52517041571cd7af17e202205bc2073f73aadf1b7c498ac309943d520a6987d355aa20b76a9748651b9668e7", + "pai_cert": "308201d43082017aa003020102020815902960ef540fab300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004aec0dc75702394a053a1f51203cd067b02812cc185c17e426f4f7b30270a5c4dbe7f81ec49d507864e1aaa63f718f6c46eb5d7fadeb7f42b7aefe7e7f47cc388a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414c862a2ed8d5985bbf3934213a3a66643d32b47c6301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022068dd4a852a5a16e32b019a25f709e7cad928eac702d2ae39fe0b2bced4eaa67e022100affa83e50da89f7ac7d06418adffec634b92704701c4adab248555d6f0a058d2", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502203d016d2d0934828cd314d7fdb19a88a9ad55d4fabcc213b50531d79a3bd85c77022100d755e7bbbbedae040ddeee8688dd54889d0e2ad3980ee118c63ebebc7071b04b", + "dac_private_key": "60c2048f96762833ed4177dd32250647f106036b38c01d6cb9fcbbac4d20ad5f", + "dac_public_key": "04fbbcc606ada6e79810b73b71a1a43ab4fb33e1bdd1c1d830d6c8d6c806ffe7f011fb83ff184979528744bdbee09ed7d2dc98d419a5af5861010b7f5c778709c2" +} diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/cd.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/cd.der new file mode 100644 index 00000000000000..916e779cfab009 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Cert.der new file mode 100644 index 00000000000000..0de6ac486c358f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Cert.pem new file mode 100644 index 00000000000000..194a33a695b9a8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIL2kTwFJl2V8wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +h5a981lmF1DUvSGaSodCkoIL1xhJbTiHZjpG7Eeznnq7mOJf1UyiiklTB8xmBGCl +CvWOYhOHBuKVazShKfD2oaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFPgwlK+pBJV52h44H5yyRhzwwaM0MB8GA1UdIwQYMBaAFDjM +tJZSoxpks80SAXp7q17/fEALMAoGCCqGSM49BAMCA0cAMEQCIF0/s09Fe2SmDBE6 +EY7YAteYZSbGTc1Zo7I1RFTAWOWjAiBworHn7cr5buEquOslTq+q/Rx/ZaPEb1rl +SkH21Ra0EA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Key.der new file mode 100644 index 00000000000000..8ab8f6ffe08394 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Key.pem new file mode 100644 index 00000000000000..bf83136887f946 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHknMdCWK5I8Vj4A8xNlIH2VpO9UoZd23Cb3kdvK4o4woAoGCCqGSM49 +AwEHoUQDQgAEh5a981lmF1DUvSGaSodCkoIL1xhJbTiHZjpG7Eeznnq7mOJf1Uyi +iklTB8xmBGClCvWOYhOHBuKVazShKfD2oQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Cert.der new file mode 100644 index 00000000000000..ae2214f17a57a9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Cert.pem new file mode 100644 index 00000000000000..a9c9f9449216a8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIK3lXIPSYT5MwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATwFy9vHDGsCNLbs9ZS/c3RBnyX1x9k +chUoCME5i5WBouO4SgEYb3l1r6/A4Z5irnnLv8RH1GOp5sM8bDpNHp98o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUOMy0 +llKjGmSzzRIBenurXv98QAswHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgJ7c8hx7jvKb2gwMuWfEj++6lb/itCALDMDRA +ziV+u5ACIQC6vn4hkFA4RKLfGELD3d4AspMQGQkjwto/25k3cOhqmg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Key.der new file mode 100644 index 00000000000000..88efe1bc074e5f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Key.pem new file mode 100644 index 00000000000000..110b8a4f96c224 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIKOHNUl0RM8IxDsEO9tRtCIrYgYTB7x84BBvbtormSY1oAoGCCqGSM49 +AwEHoUQDQgAE8BcvbxwxrAjS27PWUv3N0QZ8l9cfZHIVKAjBOYuVgaLjuEoBGG95 +da+vwOGeYq55y7/ER9RjqebDPGw6TR6ffA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/test_case_vector.json new file mode 100644 index 00000000000000..fa2eaa5aff63d1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_match/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The dac_origin_vendor_id and dac_origin_product_id fields present and contain the VID and PID values that match the VID and PID found in the DAC Subject DN.", + "is_success_case": "true", + "dac_cert": "308201e33082018aa00302010202082f6913c05265d95f300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200048796bdf359661750d4bd219a4a874292820bd718496d3887663a46ec47b39e7abb98e25fd54ca28a495307cc660460a50af58e62138706e2956b34a129f0f6a1a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414f83094afa9049579da1e381f9cb2461cf0c1a334301f0603551d2304183016801438ccb49652a31a64b3cd12017a7bab5eff7c400b300a06082a8648ce3d040302034700304402205d3fb34f457b64a60c113a118ed802d7986526c64dcd59a3b2354454c058e5a3022070a2b1e7edcaf96ee12ab8eb254eafaafd1c7f65a3c46f5ae54a41f6d516b410", + "pai_cert": "308201d43082017aa00302010202082b795720f4984f93300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f0172f6f1c31ac08d2dbb3d652fdcdd1067c97d71f6472152808c1398b9581a2e3b84a01186f7975afafc0e19e62ae79cbbfc447d463a9e6c33c6c3a4d1e9f7ca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041438ccb49652a31a64b3cd12017a7bab5eff7c400b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022027b73c871ee3bca6f683032e59f123fbeea56ff8ad0802c3303440ce257ebb90022100babe7e2190503844a2df1842c3ddde00b29310190923c2da3fdb993770e86a9a", + "certification_declaration": "3082010906092a864886f70d010702a081fb3081f8020103310d300b0609608648016503040201306606092a864886f70d010701a0590457152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d3234240500240600250776982408002509f1ff250a0080360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402205b07a7bac8aa6db5e79a1a0471b6c33b07b0f4ea8da7e6d9e35dfe3bbbbae7df0220449e2667909b442fcb65943def9b26db2f9aaae4701a9d36312798b1c4c26bc2", + "dac_private_key": "792731d0962b923c563e00f31365207d95a4ef54a19776dc26f791dbcae28e30", + "dac_public_key": "048796bdf359661750d4bd219a4a874292820bd718496d3887663a46ec47b39e7abb98e25fd54ca28a495307cc660460a50af58e62138706e2956b34a129f0f6a1" +} diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/cd.der new file mode 100644 index 00000000000000..9b0964bc3dae09 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..3ef51b47dd24ab Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..f5db07dbeebf8d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIClEuk5qM4AgwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +iw3y9n8cLpR2bq8E7cajlZ7uwblFB8r1/UzL2gO5UrfcIO19Ub/vd+DaOSZ0NEB9 +4hCnN+2lv3Uzqg64RDlMhqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFHsy91L5Nb18Hplb3UWFOsis98ACMB8GA1UdIwQYMBaAFOY1 +KVMOQ8gu5e/Vffixn8UHaTlOMAoGCCqGSM49BAMCA0gAMEUCIA6BHAMaswlm/KTl +9CKuH1Q3bXGRt2DPnpGO0T64UdK+AiEA4o5E4mOuldG2guM6QvWwcn8MqfgEoaWd +wgPmSfqKglc= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Key.der new file mode 100644 index 00000000000000..4baaad9b46f82a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..2c133fbf7ad4bc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEj0X+pnTDSRkJrrpKILvXawNJAiTJgJljn2b9w8kdkfoAoGCCqGSM49 +AwEHoUQDQgAEiw3y9n8cLpR2bq8E7cajlZ7uwblFB8r1/UzL2gO5UrfcIO19Ub/v +d+DaOSZ0NEB94hCnN+2lv3Uzqg64RDlMhg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..e5b2b1cc640696 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..39c039cb3820c3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIINAseX9srVKQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARMv/bgf/rF2Xqd5X8ZHGf6LyQ7Z0TL +LcocqRXBe2eKYTbuAWO7WixLKwDXqJxo2PpuMGs1xluZunGJ/D8kcATXo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU5jUp +Uw5DyC7l79V9+LGfxQdpOU4wHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgAgJa6/thQiQiRSPfrsmBIspEMVdfnWuqc3ni +EGfcH/4CIAcL4OwMS3Oii2FW1QN6rzHFX+e8feUvEGOaO5xym6Md +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Key.der new file mode 100644 index 00000000000000..66c2596447eb53 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..8cf3ee29b48910 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICXupILzHXU7bq6WuXPN7J4MFtOo/paC6aSy6XQH5htRoAoGCCqGSM49 +AwEHoUQDQgAETL/24H/6xdl6neV/GRxn+i8kO2dEyy3KHKkVwXtnimE27gFju1os +SysA16icaNj6bjBrNcZbmbpxifw/JHAE1w== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..1f852b14881286 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_pid_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The dac_origin_vendor_id and dac_origin_product_id fields present and the PID value doesn't match the PID found in the DAC Subject DN.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202080a512e939a8ce008300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200048b0df2f67f1c2e94766eaf04edc6a3959eeec1b94507caf5fd4ccbda03b952b7dc20ed7d51bfef77e0da39267434407de210a737eda5bf7533aa0eb844394c86a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604147b32f752f935bd7c1e995bdd45853ac8acf7c002301f0603551d23041830168014e63529530e43c82ee5efd57df8b19fc50769394e300a06082a8648ce3d040302034800304502200e811c031ab30966fca4e5f422ae1f54376d7191b760cf9e918ed13eb851d2be022100e28e44e263ae95d1b682e33a42f5b0727f0ca9f804a1a59dc203e649fa8a8257", + "pai_cert": "308201d33082017aa0030201020208340b1e5fdb2b54a4300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200044cbff6e07ffac5d97a9de57f191c67fa2f243b6744cb2dca1ca915c17b678a6136ee0163bb5a2c4b2b00d7a89c68d8fa6e306b35c65b99ba7189fc3f247004d7a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414e63529530e43c82ee5efd57df8b19fc50769394e301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022002025aebfb614224224523dfaec98122ca4431575f9d6baa7379e21067dc1ffe0220070be0ec0c4b73a28b6156d5037aaf31c55fe7bc7de52f10639a3b9c729ba31d", + "certification_declaration": "3082010a06092a864886f70d010702a081fc3081f9020103310d300b0609608648016503040201306606092a864886f70d010701a0590457152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080025090880250a00ff360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022007112bef07d67f28e5987f0681e7ff3315991e0e208a470fbb83a1c9ac56258d022100cc173ee88366038a3fbbee34323eda9e8796f66df5d0f12bae0bffa76b9bbb36", + "dac_private_key": "48f45fea674c3491909aeba4a20bbd76b03490224c98099639f66fdc3c91d91f", + "dac_public_key": "048b0df2f67f1c2e94766eaf04edc6a3959eeec1b94507caf5fd4ccbda03b952b7dc20ed7d51bfef77e0da39267434407de210a737eda5bf7533aa0eb844394c86" +} diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/cd.der new file mode 100644 index 00000000000000..e15bcf7089181e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..9087896f369b60 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..3a9a2f6311b374 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIZvUWJmJPJuIwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +JRcrpgHlOa8iwCX17lkRWjxhdMHDxOTbZHDlv3w5fUOh96oHFBWoLo2ulajTmHHk +TiR3ZoWfFAoUZyB/XyfsgKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFPTUaQ2L83aRP/xiYfQZM8Q6XPvRMB8GA1UdIwQYMBaAFHgB +wEBGn+ekZQPSg36fnJcnI5fhMAoGCCqGSM49BAMCA0gAMEUCIQCw0tR3AO8b+TP3 +dy0epqTcvle+Ta7WG7hrJxOMc+1CxwIgbo79w7/fJOF90KjyAIwal+RXSV4y4YU3 +9ZIMYpiTxSM= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Key.der new file mode 100644 index 00000000000000..6750824aaf7b6f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..3f02ea7a5136a1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIACF70lsdafBLNTQMcM/WsVMb6pFp6Pt9ZMMhUDXBGl3oAoGCCqGSM49 +AwEHoUQDQgAEJRcrpgHlOa8iwCX17lkRWjxhdMHDxOTbZHDlv3w5fUOh96oHFBWo +Lo2ulajTmHHkTiR3ZoWfFAoUZyB/XyfsgA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..46be24550c0c71 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..7cca94bc711cdc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIaCFGD5Isg/wwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT3ZAvXWzRfYC0lnsfCz5iLOoB+ccvr +HIZdAxfCH/Ye3kX8o4v/3aHfAdnLRJw0xAA07YsoepvFxBaL6qRmGJkho2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUeAHA +QEaf56RlA9KDfp+clycjl+EwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAOQX7xz4YLTzvKl4S/cQj+/CRbMEBc+PA1lP +gk+ntrThAiEAi0NJr6KsO3kNuzoPLNSof4AcKv+C8rylj6/BbAzwibo= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Key.der new file mode 100644 index 00000000000000..b18961d447575f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..4a3c5fb4d648e7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIM4/RxmHxCsDzF3g2JSdMAvoZV94b9yhO9lknRRhOH0soAoGCCqGSM49 +AwEHoUQDQgAE92QL11s0X2AtJZ7Hws+YizqAfnHL6xyGXQMXwh/2Ht5F/KOL/92h +3wHZy0ScNMQANO2LKHqbxcQWi+qkZhiZIQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..5b2f3d761346a1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_pid_present_vid_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The dac_origin_vendor_id and dac_origin_product_id fields present and the VID value doesn't match the VID found in the DAC Subject DN.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa003020102020866f51626624f26e2300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000425172ba601e539af22c025f5ee59115a3c6174c1c3c4e4db6470e5bf7c397d43a1f7aa071415a82e8dae95a8d39871e44e247766859f140a1467207f5f27ec80a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414f4d4690d8bf376913ffc6261f41933c43a5cfbd1301f0603551d230418301680147801c040469fe7a46503d2837e9f9c97272397e1300a06082a8648ce3d0403020348003045022100b0d2d47700ef1bf933f7772d1ea6a4dcbe57be4daed61bb86b27138c73ed42c702206e8efdc3bfdf24e17dd0a8f2008c1a97e457495e32e18537f5920c629893c523", + "pai_cert": "308201d53082017aa00302010202086821460f922c83fc300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f7640bd75b345f602d259ec7c2cf988b3a807e71cbeb1c865d0317c21ff61ede45fca38bffdda1df01d9cb449c34c40034ed8b287a9bc5c4168beaa466189921a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604147801c040469fe7a46503d2837e9f9c97272397e1301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100e417ef1cf860b4f3bca9784bf7108fefc245b30405cf8f03594f824fa7b6b4e10221008b4349afa2ac3b790dbb3a0f2cd4a87f801c2aff82f2bca58fafc16c0cf089ba", + "certification_declaration": "3082010b06092a864886f70d010702a081fd3081fa020103310d300b0609608648016503040201306606092a864886f70d010701a0590457152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080025090880250a00ff360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100a423ae3c91c27d56d4091dacd4a1f7d97373f9cc13f7eb97a1ab173cf3709264022100d1b217747980c9ffe28b451d75608f6ff000a2c29e0aabb478ffa473c727604a", + "dac_private_key": "0085ef496c75a7c12cd4d031c33f5ac54c6faa45a7a3edf5930c8540d7046977", + "dac_public_key": "0425172ba601e539af22c025f5ee59115a3c6174c1c3c4e4db6470e5bf7c397d43a1f7aa071415a82e8dae95a8d39871e44e247766859f140a1467207f5f27ec80" +} diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/cd.der new file mode 100644 index 00000000000000..9b1a87d2b16630 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Cert.der new file mode 100644 index 00000000000000..fe174896274356 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Cert.pem new file mode 100644 index 00000000000000..026286ddb0de3b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIITpeKQOtSc8gwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +rnkLQ4V4RMDftZ5PevxSbss+Y+hxvEn9yqxy0vxkPzRpRw/NSUX5KIIejctMD0xG +gVWdcZd8zyvNWUX0+dDSqaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFPdta+27l/2heXA1N4m8hZCZ4SjQMB8GA1UdIwQYMBaAFBUR +JJg6Ho/F9wBFtXhhybLuHekiMAoGCCqGSM49BAMCA0cAMEQCIC8lAPU1eoExnm9C +Vh4NKs/z03aldtF8FKk4gNNU+GqQAiAtXgwTrWB7JjvJTd3vRkuFh2b50dp6bxad +d6bO8UPBrA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Key.der new file mode 100644 index 00000000000000..d80533ec35184c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Key.pem new file mode 100644 index 00000000000000..a1a406e040ddba --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDAlLmaeMzrFYCcJPaALCwafOJ7gbzhKEbkljW+1fDbuoAoGCCqGSM49 +AwEHoUQDQgAErnkLQ4V4RMDftZ5PevxSbss+Y+hxvEn9yqxy0vxkPzRpRw/NSUX5 +KIIejctMD0xGgVWdcZd8zyvNWUX0+dDSqQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Cert.der new file mode 100644 index 00000000000000..063ed82d1b79d0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Cert.pem new file mode 100644 index 00000000000000..4983663f7538fd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIITtLKkw7Xm3owCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQedsBuhSznsAXmsrhFonJgmdua2vl1 +dw/JBhfhT/lLaGh2KXovU6p98cTMPC3NIAwd75aNNEhAaNM2UkJFmFfGo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUFREk +mDoej8X3AEW1eGHJsu4d6SIwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgLaBXOm+qxEB3mljBleVuvECw/1hVUME1raK+ +GJ33A1QCIQDs7JoX6WS+ovuZrmMXvRDH0dMGe4isEpebn4rhFuRFKA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Key.der new file mode 100644 index 00000000000000..bed64e8b43c157 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Key.pem new file mode 100644 index 00000000000000..a191c10a4d8576 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICZHYDKWFEPm2D3DFhNt/vINCKDoBIbDMPrSvoL5qb3AoAoGCCqGSM49 +AwEHoUQDQgAEHnbAboUs57AF5rK4RaJyYJnbmtr5dXcPyQYX4U/5S2hodil6L1Oq +ffHEzDwtzSAMHe+WjTRIQGjTNlJCRZhXxg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/test_case_vector.json new file mode 100644 index 00000000000000..17060cdefe779e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_dac_origin_vid_present_pid_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The dac_origin_vendor_id fild is present and dac_origin_product_id fields is not present.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202084e978a40eb5273c8300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004ae790b43857844c0dfb59e4f7afc526ecb3e63e871bc49fdcaac72d2fc643f3469470fcd4945f928821e8dcb4c0f4c4681559d71977ccf2bcd5945f4f9d0d2a9a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414f76d6bedbb97fda17970353789bc859099e128d0301f0603551d23041830168014151124983a1e8fc5f70045b57861c9b2ee1de922300a06082a8648ce3d040302034700304402202f2500f5357a81319e6f42561e0d2acff3d376a576d17c14a93880d354f86a9002202d5e0c13ad607b263bc94dddef464b858766f9d1da7a6f169d77a6cef143c1ac", + "pai_cert": "308201d43082017aa00302010202084ed2ca930ed79b7a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200041e76c06e852ce7b005e6b2b845a2726099db9adaf975770fc90617e14ff94b686876297a2f53aa7df1c4cc3c2dcd200c1def968d34484068d3365242459857c6a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414151124983a1e8fc5f70045b57861c9b2ee1de922301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502202da0573a6faac440779a58c195e56ebc40b0ff585550c135ada2be189df70354022100ecec9a17e964bea2fb99ae6317bd10c7d1d3067b88ac12979b9f8ae116e44528", + "certification_declaration": "3082010606092a864886f70d010702a081f83081f5020103310d300b0609608648016503040201306206092a864886f70d010701a0550453152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d3234240500240600250776982408002509f1ff360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044730450220057d8dcc397b75d7e74e5777b5627e44b221385c509d9131cf7da30b0dcf1df9022100e4b356d30d9db3910dbacaafd055f9f59de4538f158661b7eec3a1b53f1e107c", + "dac_private_key": "30252e669e333ac56027093da00b0b069f389ee06f384a11b9258d6fb57c36ee", + "dac_public_key": "04ae790b43857844c0dfb59e4f7afc526ecb3e63e871bc49fdcaac72d2fc643f3469470fcd4945f928821e8dcb4c0f4c4681559d71977ccf2bcd5945f4f9d0d2a9" +} diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/cd.der new file mode 100644 index 00000000000000..73c8768fa1cccb Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..afb64f2da0729e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..a808423c9504e6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIOoA42SdJRPowCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +pbjDNcIxusS7itpr3YIiMxlD8bhXa/5cGJ2wOT6vCtMahq3YJt+CxNZJZm2uXf3o +k4NjCtRbiYjflSsYUEX76aNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFDNaSyTXKP3VFRF3ZXfKWlizSGpuMB8GA1UdIwQYMBaAFMPI +Xa9BHXmrPotOc0MMVX7gm38MMAoGCCqGSM49BAMCA0cAMEQCIHOae+vkzChY/MJD +n3QFmd1Eyg+5DAg5PQde3kBNZ+VfAiAiWrYW7x5l1961FTRcZhGNZ21mj/uQzVxe +YnCCmT6x7A== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Key.der new file mode 100644 index 00000000000000..50ad4167043cc7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..a4d2771ef305fd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBLny6wa7lE7N9siOT322H263YOS28QdkfqZJbNZMtX6oAoGCCqGSM49 +AwEHoUQDQgAEpbjDNcIxusS7itpr3YIiMxlD8bhXa/5cGJ2wOT6vCtMahq3YJt+C +xNZJZm2uXf3ok4NjCtRbiYjflSsYUEX76Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..d14f217df80679 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..0853616fac9e3b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIIYB85njKWyDEwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQlJRmqiOrzsEVd0hP9mffouYgo4LDk +3U1O8SagrIEIj9RV0fBmf5g8q+swT1tCNRDoZoJMTBDrXD1dO1mHQoVjo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUw8hd +r0Edeas+i05zQwxVfuCbfwwwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgQJ6bbnfwYBNkT+GYdQmupAwyHFY+oKzuCdgy +iZkA9fMCIDXMUAYJZLWg9igSFtug0gcoRn4062EWkpqDR3DyJB6I +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Key.der new file mode 100644 index 00000000000000..c7c01c72c2d845 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..a53108e1ffdb21 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEsLiHQlA0CoWWRe/nKx/sBK9cMSW7Ibf5Ml6QsGzTVnoAoGCCqGSM49 +AwEHoUQDQgAEJSUZqojq87BFXdIT/Zn36LmIKOCw5N1NTvEmoKyBCI/UVdHwZn+Y +PKvrME9bQjUQ6GaCTEwQ61w9XTtZh0KFYw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..ad072ceadecc38 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The device_type_id field doesn't match the device_type_id value in the DCL entries associated with the VID and PID.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202083a8038d9274944fa300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004a5b8c335c231bac4bb8ada6bdd8222331943f1b8576bfe5c189db0393eaf0ad31a86add826df82c4d649666dae5dfde89383630ad45b8988df952b185045fbe9a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414335a4b24d728fdd51511776577ca5a58b3486a6e301f0603551d23041830168014c3c85daf411d79ab3e8b4e73430c557ee09b7f0c300a06082a8648ce3d04030203470030440220739a7bebe4cc2858fcc2439f740599dd44ca0fb90c08393d075ede404d67e55f0220225ab616ef1e65d7deb515345c66118d676d668ffb90cd5c5e627082993eb1ec", + "pai_cert": "308201d33082017aa0030201020208601f399e3296c831300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004252519aa88eaf3b0455dd213fd99f7e8b98828e0b0e4dd4d4ef126a0ac81088fd455d1f0667f983cabeb304f5b423510e866824c4c10eb5c3d5d3b5987428563a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414c3c85daf411d79ab3e8b4e73430c557ee09b7f0c301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203470030440220409e9b6e77f06013644fe1987509aea40c321c563ea0acee09d832899900f5f3022035cc50060964b5a0f6281216dba0d20728467e34eb6116929a834770f2241e88", + "certification_declaration": "3082010506092a864886f70d010702a081f73081f4020103310d300b0609608648016503040201306006092a864886f70d010701a0530451152000012501f1ff3602050080182603cbedffff2c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100b9533e419c94349dae9a73a93c1c917531d16ae9c11518fa238ba1959591a01c0221009967653898d11a0d7ea3f1fd96dc74d742bbf0c67339c2c3653e6bf0426df4bf", + "dac_private_key": "12e7cbac1aee513b37db22393df6d87dbadd8392dbc41d91fa9925b35932d5fa", + "dac_public_key": "04a5b8c335c231bac4bb8ada6bdd8222331943f1b8576bfe5c189db0393eaf0ad31a86add826df82c4d649666dae5dfde89383630ad45b8988df952b185045fbe9" +} diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/cd.der new file mode 100644 index 00000000000000..309be2c998a698 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Cert.der new file mode 100644 index 00000000000000..7d5aac336621a6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Cert.pem new file mode 100644 index 00000000000000..ac107f296a55e7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIIczR0EbmfmwwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +5UltaoaBbSSE5vcwiEmvTegCdtJ2TRd+hL123RCwAhv8uIqXwaaJcUV67CWF6RDt +YDdJlCqFVN+inBqWRHhpsKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFKZPozavyCjfRqJeuBk1XYcVMHtkMB8GA1UdIwQYMBaAFPS7 +6dx6RWa5AGf7sEjhx0sxbZ5iMAoGCCqGSM49BAMCA0gAMEUCIQD96ZRLx74Vkci2 +W2aZyTkePXPzVqrBlTr+WMWgjM0K9gIgevd0x5ATnr7X153AiZRQha774Gy57cZk +bYuUaZe9RTU= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Key.der new file mode 100644 index 00000000000000..d5fd3932c87d92 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Key.pem new file mode 100644 index 00000000000000..598797bff8fb28 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOpYl1XDthBf3vqarjkFjml9fLbhb4KSRBKG76E7ql5aoAoGCCqGSM49 +AwEHoUQDQgAE5UltaoaBbSSE5vcwiEmvTegCdtJ2TRd+hL123RCwAhv8uIqXwaaJ +cUV67CWF6RDtYDdJlCqFVN+inBqWRHhpsA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Cert.der new file mode 100644 index 00000000000000..80e21e3b744e23 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Cert.pem new file mode 100644 index 00000000000000..e91bc0c9c22ac6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIIJhxUwaQ5L3IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT4+iWlu+4cdkvXJA1xqiLX4ibElwbJ +6nZeiG0YpBoMeLYfDr4YqDxU3L1uHlEiOf0JOZq0YUlEaEvNusR0twoyo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU9Lvp +3HpFZrkAZ/uwSOHHSzFtnmIwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgE5QL9ta2dm/xLHSBE5FzzW8AeG7oSO2m2FuP +xzQkztkCIHzXTiLZKo9/i6oRkfYsqKL58TAtVUs9PdWUbc1M7vHN +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Key.der new file mode 100644 index 00000000000000..8dd3072ff7b6f9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Key.pem new file mode 100644 index 00000000000000..1c5bb49fe60bb7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAEvsBvl36qxuHWpklcmGIbbuNc7bxY9C+dh9y76VHxGoAoGCCqGSM49 +AwEHoUQDQgAE+PolpbvuHHZL1yQNcaoi1+ImxJcGyep2XohtGKQaDHi2Hw6+GKg8 +VNy9bh5RIjn9CTmatGFJRGhLzbrEdLcKMg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/test_case_vector.json new file mode 100644 index 00000000000000..1ffe8542d6647b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_device_type_id_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The device_type_id field is missing.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa003020102020821ccd1d046e67e6c300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004e5496d6a86816d2484e6f7308849af4de80276d2764d177e84bd76dd10b0021bfcb88a97c1a68971457aec2585e910ed603749942a8554dfa29c1a96447869b0a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414a64fa336afc828df46a25eb819355d8715307b64301f0603551d23041830168014f4bbe9dc7a4566b90067fbb048e1c74b316d9e62300a06082a8648ce3d0403020348003045022100fde9944bc7be1591c8b65b6699c9391e3d73f356aac1953afe58c5a08ccd0af602207af774c790139ebed7d79dc089945085aefbe06cb9edc6646d8b946997bd4535", + "pai_cert": "308201d33082017aa0030201020208261c54c1a4392f72300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f8fa25a5bbee1c764bd7240d71aa22d7e226c49706c9ea765e886d18a41a0c78b61f0ebe18a83c54dcbd6e1e512239fd09399ab4614944684bcdbac474b70a32a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414f4bbe9dc7a4566b90067fbb048e1c74b316d9e62301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022013940bf6d6b6766ff12c7481139173cd6f00786ee848eda6d85b8fc73424ced902207cd74e22d92a8f7f8baa1191f62ca8a2f9f1302d554b3d3dd5946dcd4ceef1cd", + "certification_declaration": "3081fd06092a864886f70d010702a081ef3081ec020103310d300b0609608648016503040201305a06092a864886f70d010701a04d044b152000012501f1ff3602050080182c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402201a964402d8cb92a6cb59f1984fef77f833e7a7600db8d7150a3894416d13e53102207461724c01add824c78b61f67aec5649a45ae0076adf77fb6626b37ce618e4c7", + "dac_private_key": "ea589755c3b6105fdefa9aae39058e697d7cb6e16f8292441286efa13baa5e5a", + "dac_public_key": "04e5496d6a86816d2484e6f7308849af4de80276d2764d177e84bd76dd10b0021bfcb88a97c1a68971457aec2585e910ed603749942a8554dfa29c1a96447869b0" +} diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/cd.der b/credentials/development/commissioner_dut/struct_cd_format_version_1/cd.der new file mode 100644 index 00000000000000..c404fa1ce917e5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Cert.der new file mode 100644 index 00000000000000..e6c14307acab1d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Cert.pem new file mode 100644 index 00000000000000..bf6f65428b7a4c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIREaH9eT2TUEwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +kO2NHVlNOXLKvt1+Fc7PxlzmQyJUvBC+cSKiSUxyCJHy740Rv/s8u1NiC0RsOKO2 +oyag/TA4DUBA3QXnPkwIfKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFECRN36RK3PgV3uQJNdSVsRpSLDkMB8GA1UdIwQYMBaAFLPA +cKh0c5BRa7Xgmo5xymHvAE7FMAoGCCqGSM49BAMCA0gAMEUCIDhvV7zSdQTSE92Y +CZwP7ENbDgpi1z0ReH9wy8q4XtukAiEAwAdsskjpRBQ7xe74EKZd3luDm5BoRAJm +kStJ+moPQoI= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Key.der new file mode 100644 index 00000000000000..ae468e237e34ba Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Key.pem new file mode 100644 index 00000000000000..63322aa2503fa5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIKkbyY28dSzrcnlS8g9mz+tFfCl2vuNSzFMs4uUlcSRloAoGCCqGSM49 +AwEHoUQDQgAEkO2NHVlNOXLKvt1+Fc7PxlzmQyJUvBC+cSKiSUxyCJHy740Rv/s8 +u1NiC0RsOKO2oyag/TA4DUBA3QXnPkwIfA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Cert.der new file mode 100644 index 00000000000000..7abc8ce2a2ea53 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Cert.pem new file mode 100644 index 00000000000000..327cbaf9eb577e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIAcL94d5XecgwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASZRot4DT/0+VpTUaiublozKnN8zI6A +dDSQmAnJMmoMbdHhneV+uBd7MBYfzKeL2mIugOVq4Tq8W4AVke2MXOCxo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUs8Bw +qHRzkFFrteCajnHKYe8ATsUwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhALFVo+Vnc+0CADbHu9gsfNuixl6uLztJ/98N +XGx6o9OKAiAC1ep7PzbVwceTKEjsYhXfEHYKH20pz5F0eldNTh8ObA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Key.der new file mode 100644 index 00000000000000..e8d55e3715d608 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Key.pem new file mode 100644 index 00000000000000..8076ac9cf70bc6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBnS9jSN1856qT/78l1OzEyirlyoeZltQ8vjXfZi+hfooAoGCCqGSM49 +AwEHoUQDQgAEmUaLeA0/9PlaU1Gorm5aMypzfMyOgHQ0kJgJyTJqDG3R4Z3lfrgX +ezAWH8yni9piLoDlauE6vFuAFZHtjFzgsQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_1/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_format_version_1/test_case_vector.json new file mode 100644 index 00000000000000..e65aa958c0896a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Valid format_version field set to 1.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa0030201020208444687f5e4f64d41300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000490ed8d1d594d3972cabedd7e15cecfc65ce6432254bc10be7122a2494c720891f2ef8d11bffb3cbb53620b446c38a3b6a326a0fd30380d4040dd05e73e4c087ca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604144091377e912b73e0577b9024d75256c46948b0e4301f0603551d23041830168014b3c070a8747390516bb5e09a8e71ca61ef004ec5300a06082a8648ce3d04030203480030450220386f57bcd27504d213dd98099c0fec435b0e0a62d73d11787f70cbcab85edba4022100c0076cb248e944143bc5eef810a65dde5b839b9068440266912b49fa6a0f4282", + "pai_cert": "308201d43082017aa003020102020801c2fde1de5779c8300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000499468b780d3ff4f95a5351a8ae6e5a332a737ccc8e807434909809c9326a0c6dd1e19de57eb8177b30161fcca78bda622e80e56ae13abc5b801591ed8c5ce0b1a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414b3c070a8747390516bb5e09a8e71ca61ef004ec5301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100b155a3e56773ed020036c7bbd82c7cdba2c65eae2f3b49ffdf0d5c6c7aa3d38a022002d5ea7b3f36d5c1c7932848ec6215df10760a1f6d29cf91747a574d4e1f0e6c", + "certification_declaration": "3082010306092a864886f70d010702a081f53081f2020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100f690c75cc9f011ce8e03fc43bb7de9cc0dda0a41e966bc45ffda24898a1a8c4e022100eab979048ea0a0d069fd72a1ab6ccce7e05522353f7244e019cccb43cf5e23c2", + "dac_private_key": "a91bc98dbc752ceb727952f20f66cfeb457c2976bee352cc532ce2e525712465", + "dac_public_key": "0490ed8d1d594d3972cabedd7e15cecfc65ce6432254bc10be7122a2494c720891f2ef8d11bffb3cbb53620b446c38a3b6a326a0fd30380d4040dd05e73e4c087c" +} diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/cd.der b/credentials/development/commissioner_dut/struct_cd_format_version_2/cd.der new file mode 100644 index 00000000000000..34bf8edcf8aaf5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_2/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Cert.der new file mode 100644 index 00000000000000..352fa4f3a1c545 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Cert.pem new file mode 100644 index 00000000000000..60e9e40fee280c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIPnTcEahpN7IwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +UEU5k/UGMCcZVR0LOqRdq2dsl79L6cZpfBB2nIq5gXmrQ+eliHwVMdGj64f9kjJh +WOLWGreCECHfgOV7yX1hH6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFNxp8XpNTozvQyNe9x7HQtiXArnsMB8GA1UdIwQYMBaAFBiL +cVUQ0sfAGt90tSc68MlKmc1JMAoGCCqGSM49BAMCA0gAMEUCIQCWGC0IHJbvRd7Q +9msfYGmsLVIlEZvmD/4bE8lnMeC6aQIgFv86KiwNc5+EoccqmZ1favteDxotD7/j +LqHKpyUw+m4= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Key.der new file mode 100644 index 00000000000000..4bcd08f745d5b2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Key.pem new file mode 100644 index 00000000000000..80c78d903c0a1f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_2/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMZHiSmsVUFQd45zcKYwskrLHwPLGHljxMbzNNLb06XsoAoGCCqGSM49 +AwEHoUQDQgAEUEU5k/UGMCcZVR0LOqRdq2dsl79L6cZpfBB2nIq5gXmrQ+eliHwV +MdGj64f9kjJhWOLWGreCECHfgOV7yX1hHw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Cert.der new file mode 100644 index 00000000000000..12652cdc24f73d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Cert.pem new file mode 100644 index 00000000000000..6d8416d5436c77 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIZd3lZp4u2t8wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQIAFAKjSDsUx6aR+4xljr7XbnwXElF +5YYExfX5VfUE0t58a09ZF0SCm6EA6utWRjH+B01K3gLrPnoIf5zNoEQto2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUGItx +VRDSx8Aa33S1JzrwyUqZzUkwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhALf5SLh++XXELnx5CWC/lZr5QreIrZmFUeiC +Hs+Ir7EwAiEAu8XplhptnfqsIap4b+/6VuKddq8vbaWEQynQ9R+vqQs= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Key.der new file mode 100644 index 00000000000000..c1b11bb347d8a6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Key.pem new file mode 100644 index 00000000000000..529b199305ea64 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_2/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOs5luxmDrPMtKYfjo4aDuDb3aype036FImRc15cHAMzoAoGCCqGSM49 +AwEHoUQDQgAECABQCo0g7FMemkfuMZY6+1258FxJReWGBMX1+VX1BNLefGtPWRdE +gpuhAOrrVkYx/gdNSt4C6z56CH+czaBELQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_2/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_format_version_2/test_case_vector.json new file mode 100644 index 00000000000000..ce9396ef325c19 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_2/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid format_version field set to 2.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202083e74dc11a86937b2300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000450453993f506302719551d0b3aa45dab676c97bf4be9c6697c10769c8ab98179ab43e7a5887c1531d1a3eb87fd92326158e2d61ab7821021df80e57bc97d611fa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414dc69f17a4d4e8cef43235ef71ec742d89702b9ec301f0603551d23041830168014188b715510d2c7c01adf74b5273af0c94a99cd49300a06082a8648ce3d040302034800304502210096182d081c96ef45ded0f66b1f6069ac2d5225119be60ffe1b13c96731e0ba69022016ff3a2a2c0d739f84a1c72a999d5f6afb5e0f1a2d0fbfe32ea1caa72530fa6e", + "pai_cert": "308201d53082017aa003020102020865dde5669e2edadf300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200040800500a8d20ec531e9a47ee31963afb5db9f05c4945e58604c5f5f955f504d2de7c6b4f591744829ba100eaeb564631fe074d4ade02eb3e7a087f9ccda0442da366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414188b715510d2c7c01adf74b5273af0c94a99cd49301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100b7f948b87ef975c42e7c790960bf959af942b788ad998551e8821ecf88afb130022100bbc5e9961a6d9dfaac21aa786feffa56e29d76af2f6da5844329d0f51fafa90b", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000022501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022043a8ecc147bbf29a42d554ef8f1ebf461bfbeb336b2d5b8d5a3aacc6d26d57f40221009410e764889cfdbaec3276e6f6762747ffb50f1b93f6d6cefbb6ca40d64b4d46", + "dac_private_key": "c6478929ac554150778e7370a630b24acb1f03cb187963c4c6f334d2dbd3a5ec", + "dac_public_key": "0450453993f506302719551d0b3aa45dab676c97bf4be9c6697c10769c8ab98179ab43e7a5887c1531d1a3eb87fd92326158e2d61ab7821021df80e57bc97d611f" +} diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_format_version_missing/cd.der new file mode 100644 index 00000000000000..5894de8439d1da Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Cert.der new file mode 100644 index 00000000000000..7bef10c4558cca Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Cert.pem new file mode 100644 index 00000000000000..d0a8006f190727 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIToCsthpcP34wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +UtkUUrwNO2au3CV1b1pm/IpkKAe0EDnEy+Ka6om7RbXIwyWWxui1CeESe9Ku1G/J +i6GyMlsSUDn3Cn30hEM0yKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFBoEbSqIyqI5ZxzSjQWU7Nm+8WowMB8GA1UdIwQYMBaAFANz +AyMECIbEK4oUNBJk/smfPmyfMAoGCCqGSM49BAMCA0cAMEQCICYk7RSBrTM7uSMf +FZ6D3E7ht0wECCGVsq8Rot4NugM3AiAVo06xpdXcQeSkP0dsPduak0090PNZ97HQ +pt4Ofa0FhA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Key.der new file mode 100644 index 00000000000000..e97a8d0d45f579 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Key.pem new file mode 100644 index 00000000000000..db0e7bfe051076 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGGBx55UI0Vai+eK4biawOwyrIXYFcEV18+nQbYzHzOroAoGCCqGSM49 +AwEHoUQDQgAEUtkUUrwNO2au3CV1b1pm/IpkKAe0EDnEy+Ka6om7RbXIwyWWxui1 +CeESe9Ku1G/Ji6GyMlsSUDn3Cn30hEM0yA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Cert.der new file mode 100644 index 00000000000000..bfa0e863e0b2dc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Cert.pem new file mode 100644 index 00000000000000..2cb40b8a33c110 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIGxzOOTbpfu4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQJ2a5UynmW5X37v1AJCRP9X+EZYwtv +7TWejpZDinBVrj5rip4HH8mt3CHwALa/xYDdxdJ6IJN0M31B2F7AZHk6o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUA3MD +IwQIhsQrihQ0EmT+yZ8+bJ8wHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAJ+Fsm7kDvKClyhdUOnI/mrQJvJQjO1ePmlJ +GsdD217iAiB+0JCStOe5tTivbgqt9gqx9iZGSsIdy105uzj8kzFg1g== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Key.der new file mode 100644 index 00000000000000..f3020428b330ca Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Key.pem new file mode 100644 index 00000000000000..c20d24d160d520 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIABJXJ0AxscuWrpgG5a6Dy+eHYIR+hhRIa/O3aXgq6GCoAoGCCqGSM49 +AwEHoUQDQgAECdmuVMp5luV9+79QCQkT/V/hGWMLb+01no6WQ4pwVa4+a4qeBx/J +rdwh8AC2v8WA3cXSeiCTdDN9QdhewGR5Og== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_format_version_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_format_version_missing/test_case_vector.json new file mode 100644 index 00000000000000..e59bf34752f562 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_format_version_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The format_version field is missing.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202084e80acb61a5c3f7e300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000452d91452bc0d3b66aedc25756f5a66fc8a642807b41039c4cbe29aea89bb45b5c8c32596c6e8b509e1127bd2aed46fc98ba1b2325b125039f70a7df4844334c8a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604141a046d2a88caa239671cd28d0594ecd9bef16a30301f0603551d2304183016801403730323040886c42b8a14341264fec99f3e6c9f300a06082a8648ce3d040302034700304402202624ed1481ad333bb9231f159e83dc4ee1b74c04082195b2af11a2de0dba0337022015a34eb1a5d5dc41e4a43f476c3ddb9a934d3dd0f359f7b1d0a6de0e7dad0584", + "pai_cert": "308201d43082017aa00302010202081b1cce3936e97eee300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000409d9ae54ca7996e57dfbbf50090913fd5fe119630b6fed359e8e96438a7055ae3e6b8a9e071fc9addc21f000b6bfc580ddc5d27a209374337d41d85ec064793aa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041403730323040886c42b8a14341264fec99f3e6c9f301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450221009f85b26ee40ef28297285d50e9c8fe6ad026f2508ced5e3e69491ac743db5ee202207ed09092b4e7b9b538af6e0aadf60ab1f626464ac21dcb5d39bb38fc933160d6", + "certification_declaration": "3081ff06092a864886f70d010702a081f13081ee020103310d300b0609608648016503040201305b06092a864886f70d010701a04e044c152501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100dc24f5310c61101cc8927e66a9a1dc5fd68128b1f5790b126a65d103fc3bc4560220702bf864c3de01cc8865e2ad3c540800549e85d91a65309ebbeca46238527104", + "dac_private_key": "6181c79e5423455a8be78ae1b89ac0ec32ac85d815c115d7cfa741b6331f33ab", + "dac_public_key": "0452d91452bc0d3b66aedc25756f5a66fc8a642807b41039c4cbe29aea89bb45b5c8c32596c6e8b509e1127bd2aed46fc98ba1b2325b125039f70a7df4844334c8" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/cd.der new file mode 100644 index 00000000000000..8e03323c37dc6a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Cert.der new file mode 100644 index 00000000000000..1c678f06ba6e30 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Cert.pem new file mode 100644 index 00000000000000..67dd41fc1cc38b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIEnkoKr3mdwEwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +/oFFBcx9A6joZHTyxoTm2FDMOi2F0hNdd5cu25AkqPD4hV5TEru/K2wHV8FT6YHU +fchDD5axL1PJ+DMzCRfhKqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFMmK1IGH9V4dBv7Vd+lpEpjuz6kGMB8GA1UdIwQYMBaAFM9w +0Ll++7gaB6IZtLYcMKbEeWSbMAoGCCqGSM49BAMCA0gAMEUCIQDqvyxUziE53drZ +i8zvMxKF/cVamw5mdanV8CTLaRpBCQIgJIu8cCMSw/hgEshYh4KWsZT8Dq+3dCd/ +E8vyB/IPubY= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Key.der new file mode 100644 index 00000000000000..0e85c495206809 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Key.pem new file mode 100644 index 00000000000000..856f79f565dd4d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOst69kbD93rhgQ81cutVKMnIP4GqiugDJ1a304ictaUoAoGCCqGSM49 +AwEHoUQDQgAE/oFFBcx9A6joZHTyxoTm2FDMOi2F0hNdd5cu25AkqPD4hV5TEru/ +K2wHV8FT6YHUfchDD5axL1PJ+DMzCRfhKg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Cert.der new file mode 100644 index 00000000000000..f4d2be822f2ffc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Cert.pem new file mode 100644 index 00000000000000..4b0fb1c93a6391 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIAbqQQe//E5IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQgp6BhS7aKChaBrAudOfTmlkN5DHik +LipmUhe4Z1fEoWLdAmAf87WfjdbpV93M7qEkvRcm/+aYDUdvRRXFEHYno2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUz3DQ +uX77uBoHohm0thwwpsR5ZJswHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgReWlwiFsMLYcRzZsRmy+JWyJuqOjdYhmN5yG +SgIIzuICIQCzId3Mljc9mEwDkOdWgOv0SS5nAdKxdVB7XC+HYKzlZg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Key.der new file mode 100644 index 00000000000000..20915277d9116a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Key.pem new file mode 100644 index 00000000000000..2e691ab7bf9d90 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIElHUg7wcEJI2L2iTGq6FwNGB35dIXwb2ND/D+HJM8vxoAoGCCqGSM49 +AwEHoUQDQgAEIKegYUu2igoWgawLnTn05pZDeQx4pC4qZlIXuGdXxKFi3QJgH/O1 +n43W6VfdzO6hJL0XJv/mmA1Hb0UVxRB2Jw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count0/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/test_case_vector.json new file mode 100644 index 00000000000000..d5837e903122b1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count0/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field is empty TLV array.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202081279282abde67701300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004fe814505cc7d03a8e86474f2c684e6d850cc3a2d85d2135d77972edb9024a8f0f8855e5312bbbf2b6c0757c153e981d47dc8430f96b12f53c9f833330917e12aa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414c98ad48187f55e1d06fed577e9691298eecfa906301f0603551d23041830168014cf70d0b97efbb81a07a219b4b61c30a6c479649b300a06082a8648ce3d0403020348003045022100eabf2c54ce2139dddad98bccef331285fdc55a9b0e6675a9d5f024cb691a41090220248bbc702312c3f86012c858878296b194fc0eafb774277f13cbf207f20fb9b6", + "pai_cert": "308201d43082017aa003020102020801ba9041efff1392300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000420a7a0614bb68a0a1681ac0b9d39f4e69643790c78a42e2a665217b86757c4a162dd02601ff3b59f8dd6e957ddcceea124bd1726ffe6980d476f4515c5107627a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414cf70d0b97efbb81a07a219b4b61c30a6c479649b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022045e5a5c2216c30b61c47366c466cbe256c89baa3a3758866379c864a0208cee2022100b321ddcc96373d984c0390e75680ebf4492e6701d2b175507b5c2f8760ace566", + "certification_declaration": "3082010006092a864886f70d010702a081f23081ef020103310d300b0609608648016503040201305b06092a864886f70d010701a04e044c152000012501f1ff360218250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100962ebc86d3c61c0c682fe3e7156b2d79118e06b319b9b76514485e81506df468022100ba58b55452208fad716d7da6b8f059a1cd1fc4335e13cfaba42dc33fb9e06aaf", + "dac_private_key": "eb2debd91b0fddeb86043cd5cbad54a32720fe06aa2ba00c9d5adf4e2272d694", + "dac_public_key": "04fe814505cc7d03a8e86474f2c684e6d850cc3a2d85d2135d77972edb9024a8f0f8855e5312bbbf2b6c0757c153e981d47dc8430f96b12f53c9f833330917e12a" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/cd.der new file mode 100644 index 00000000000000..97c4ae47112477 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..8961206aadf2c8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..eb1cfa31129b4c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIEy0H4/DB8WAwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +cmXhpnuZPyGDDSuIjh8DFICbjFIfbrd50sPiI+nmjpcHOn20/ksHAvuq1i7/1ULT +M7yooJjaKX6NWKRAXT4PLqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFPxHSF/623ozK7fpL4SwWGZQYefjMB8GA1UdIwQYMBaAFJrK +bB0YJWw1DnVY2Hlze2Zeq8ppMAoGCCqGSM49BAMCA0kAMEYCIQCS46d7YJ9F/tdU +GfJiCwrobzTbX8zBjvPAyy6HEbfSBAIhAO9AaVsC+IAbtBRcNNw1/Lnvc8YGNLFp +o1wIXC3EueBZ +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Key.der new file mode 100644 index 00000000000000..d6de29726cdeef Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..8977d16b531d0b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIey8wJmRtgNs7Z8oNG74l2+Dnp4oyerTTB1FR2imj0JoAoGCCqGSM49 +AwEHoUQDQgAEcmXhpnuZPyGDDSuIjh8DFICbjFIfbrd50sPiI+nmjpcHOn20/ksH +Avuq1i7/1ULTM7yooJjaKX6NWKRAXT4PLg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..14130b41db8ee9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..b8ed522c35dbe8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIXby76pAcUPIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQyTDVxWvsyJEvMiYCVDyaZTHyk0sAK +fzIGFLYBCBXXAjgI5KLdZeC5VCEO0vdyxAjHRwkQd+kuqWlj+IzUsyBZo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUmsps +HRglbDUOdVjYeXN7Zl6rymkwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAIBeRYzedz7oF15z4gjltHru0wTodfRcaDtY +d6g5x4ObAiBXrwDptq/LTFnCvaRiQV6Trh37pt073UHX4NWrfhCISQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Key.der new file mode 100644 index 00000000000000..3d9164ce5ec69b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..dbf13b7ed2bd56 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPIZD0DHgV1++GIOOS+uuuEiTiIltNPFnQH/4JMes9aeoAoGCCqGSM49 +AwEHoUQDQgAEMkw1cVr7MiRLzImAlQ8mmUx8pNLACn8yBhS2AQgV1wI4COSi3WXg +uVQhDtL3csQIx0cJEHfpLqlpY/iM1LMgWQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..babc1d004d869c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field has one PID value that doesn't match the PID value in DAC.", + "is_success_case": "false", + "dac_cert": "308201e53082018aa0030201020208132d07e3f0c1f160300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047265e1a67b993f21830d2b888e1f0314809b8c521f6eb779d2c3e223e9e68e97073a7db4fe4b0702fbaad62effd542d333bca8a098da297e8d58a4405d3e0f2ea360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414fc47485ffadb7a332bb7e92f84b058665061e7e3301f0603551d230418301680149aca6c1d18256c350e7558d879737b665eabca69300a06082a8648ce3d040302034900304602210092e3a77b609f45fed75419f2620b0ae86f34db5fccc18ef3c0cb2e8711b7d204022100ef40695b02f8801bb4145c34dc35fcb9ef73c60634b169a35c085c2dc4b9e059", + "pai_cert": "308201d43082017aa00302010202085dbcbbea901c50f2300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004324c35715afb32244bcc8980950f26994c7ca4d2c00a7f320614b6010815d7023808e4a2dd65e0b954210ed2f772c408c747091077e92ea96963f88cd4b32059a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604149aca6c1d18256c350e7558d879737b665eabca69301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100805e458cde773ee8175e73e208e5b47aeed304e875f45c683b5877a839c7839b022057af00e9b6afcb4c59c2bda462415e93ae1dfba6dd3bdd41d7e0d5ab7e108849", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205018018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100fbff6aa7b2470386427ea342e5277a9158fc164679c610f98bcafee00e042c8002200f2c97259f841352b495f168ef01d4ed0b8345be208bd468fedc532a76c6b605", + "dac_private_key": "87b2f3026646d80db3b67ca0d1bbe25dbe0e7a78a327ab4d3075151da29a3d09", + "dac_public_key": "047265e1a67b993f21830d2b888e1f0314809b8c521f6eb779d2c3e223e9e68e97073a7db4fe4b0702fbaad62effd542d333bca8a098da297e8d58a4405d3e0f2e" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/cd.der new file mode 100644 index 00000000000000..92eae9318fa4ba Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Cert.der new file mode 100644 index 00000000000000..75ce16714a7291 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Cert.pem new file mode 100644 index 00000000000000..a1527d4980d78e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIcX35BqO9ycswCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +OKaLnMX5h58knjh8z38o84ONW3KaGYBX7m32snwKtT8XqHSaZQucn63IFmwO4uLn +Y+8QGBqogVv5kXOhdfZwXaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFN2vTzT9pf8x+mHKhI3havdMn5cuMB8GA1UdIwQYMBaAFAwL +oW07oFyYfwxJKjWDUu8suA5NMAoGCCqGSM49BAMCA0cAMEQCIGb/+RGAQZsHge72 +35pPwQBRDh8XrnEuFMgsQOtfH4jqAiBT7vY99/QQPiTz++aIMZRWyEMi3dC2aWvr +jo+F9sRdzA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Key.der new file mode 100644 index 00000000000000..ae1e1a2a543900 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Key.pem new file mode 100644 index 00000000000000..1f8e1319b3f332 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIbChvJF23gHGdAvuAldnAveXLTSuIi0raOhGSLjFBM8oAoGCCqGSM49 +AwEHoUQDQgAEOKaLnMX5h58knjh8z38o84ONW3KaGYBX7m32snwKtT8XqHSaZQuc +n63IFmwO4uLnY+8QGBqogVv5kXOhdfZwXQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Cert.der new file mode 100644 index 00000000000000..8390d7f8651d05 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Cert.pem new file mode 100644 index 00000000000000..1ffae51f757bd0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIIDnBH/N5oSyUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT7u4DXa7H1Qw6NHWxO/y1tWhnvqxvk +snDcgdiUs+s7KO82iEYXWDf16aCXAv9HoPQPsS6cEyMmLzQexSBihgyno2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUDAuh +bTugXJh/DEkqNYNS7yy4Dk0wHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgIb2ikjcLBHOrdjqfEyPBqWH+pPJxxI+sy3pj +JYW5AcwCICL2wKULyfX8HfKbsCDXCSKJ4SJnqAJcyAsIvg4c1Zgt +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Key.der new file mode 100644 index 00000000000000..121800556eb4c1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Key.pem new file mode 100644 index 00000000000000..c091a39f0cbb15 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOT37LSWOYEY2y5siokTWqTScAE87EmEkfvPEx8lISGLoAoGCCqGSM49 +AwEHoUQDQgAE+7uA12ux9UMOjR1sTv8tbVoZ76sb5LJw3IHYlLPrOyjvNohGF1g3 +9emglwL/R6D0D7EunBMjJi80HsUgYoYMpw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/test_case_vector.json new file mode 100644 index 00000000000000..70a405141078e2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count01_valid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field has one PID value which matches the PID value in DAC.", + "is_success_case": "true", + "dac_cert": "308201e33082018aa0030201020208717df906a3bdc9cb300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000438a68b9cc5f9879f249e387ccf7f28f3838d5b729a198057ee6df6b27c0ab53f17a8749a650b9c9fadc8166c0ee2e2e763ef10181aa8815bf99173a175f6705da360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414ddaf4f34fda5ff31fa61ca848de16af74c9f972e301f0603551d230418301680140c0ba16d3ba05c987f0c492a358352ef2cb80e4d300a06082a8648ce3d0403020347003044022066fff91180419b0781eef6df9a4fc100510e1f17ae712e14c82c40eb5f1f88ea022053eef63df7f4103e24f3fbe688319456c84322ddd0b6696beb8e8f85f6c45dcc", + "pai_cert": "308201d33082017aa00302010202080e7047fcde684b25300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004fbbb80d76bb1f5430e8d1d6c4eff2d6d5a19efab1be4b270dc81d894b3eb3b28ef368846175837f5e9a09702ff47a0f40fb12e9c1323262f341ec52062860ca7a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604140c0ba16d3ba05c987f0c492a358352ef2cb80e4d301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022021bda292370b0473ab763a9f1323c1a961fea4f271c48faccb7a632585b901cc022022f6c0a50bc9f5fc1df29bb020d7092289e12267a8025cc80b08be0e1cd5982d", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502200b6c6ed3b56ce57225f5192ea39ce426bd6fe878a52eccfffe23f2669fab16fd022100eb2f98aeaf881bcb57d73cf92cf7932e875435eb402915a0d46639b893c6c1f9", + "dac_private_key": "86c286f245db780719d02fb8095d9c0bde5cb4d2b888b4ada3a11922e314133c", + "dac_public_key": "0438a68b9cc5f9879f249e387ccf7f28f3838d5b729a198057ee6df6b27c0ab53f17a8749a650b9c9fadc8166c0ee2e2e763ef10181aa8815bf99173a175f6705d" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/cd.der new file mode 100644 index 00000000000000..ad9f29f8888479 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..e54fb7d6afe209 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..b945b2d4131d68 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIZW2Jb1mHNrowCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +z5dk8IbcW+00od8qHzOTDZwdDHC1c6DruXOWpmgfzyF+6LGP40u+4HOs3r/cyiq4 +6Egh/6xsHe5Zu2t/0czkFKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFGmKE2aKZAk8qiEhkYL8o1HgTA/eMB8GA1UdIwQYMBaAFKgb +Kip9yynSEva5ZcDzuKrz3AZJMAoGCCqGSM49BAMCA0gAMEUCIQCIBJYEXlCUaYYK +XG0xuQAkV9rHAJuKCioOxBh9U9IQ0wIgUXRmG60KsfsfK3cKWRMq6NVGER6C/8jB +STiHH2ahK48= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Key.der new file mode 100644 index 00000000000000..9b32801a136e6e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..891711e86b02c9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBlG72iJvyOJfe52kdUBHHesuhosneaJpKyTEwhgjtk1oAoGCCqGSM49 +AwEHoUQDQgAEz5dk8IbcW+00od8qHzOTDZwdDHC1c6DruXOWpmgfzyF+6LGP40u+ +4HOs3r/cyiq46Egh/6xsHe5Zu2t/0czkFA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..0920718933afd7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..a61f77e61e2f4d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIZEKMVFiWD3UwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARowtproGLrUnikKMqXXCaLZhvqxg+Z +VxoH8rpCg0dluZmrljXWCEgXlT7C4tvWdzE4FmvZ0BLqqRKqRW20KwgBo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUqBsq +Kn3LKdIS9rllwPO4qvPcBkkwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAI3aD6oT5T8Fb9S4K0evXl/XuHpudPN4JY57 +QocJoq/fAiEAq1dAoI3X+Wh/M/OREMyWCby1ZdgoryRR7dvCEGPV6Gk= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Key.der new file mode 100644 index 00000000000000..9fa128d9f9c2c2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..555a3ece86dd58 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIElS4MdcFHvqb4fdG4Um91GS/YeWN5hwrbynJGyfqRA5oAoGCCqGSM49 +AwEHoUQDQgAEaMLaa6Bi61J4pCjKl1wmi2Yb6sYPmVcaB/K6QoNHZbmZq5Y11ghI +F5U+wuLb1ncxOBZr2dAS6qkSqkVttCsIAQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..50c0d74ff13c83 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field has 100 PID values none of which matches the PID value in DAC.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa0030201020208656d896f598736ba300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004cf9764f086dc5bed34a1df2a1f33930d9c1d0c70b573a0ebb97396a6681fcf217ee8b18fe34bbee073acdebfdcca2ab8e84821ffac6c1dee59bb6b7fd1cce414a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414698a13668a64093caa21219182fca351e04c0fde301f0603551d23041830168014a81b2a2a7dcb29d212f6b965c0f3b8aaf3dc0649300a06082a8648ce3d0403020348003045022100880496045e509469860a5c6d31b9002457dac7009b8a0a2a0ec4187d53d210d302205174661bad0ab1fb1f2b770a59132ae8d546111e82ffc8c14938871f66a12b8f", + "pai_cert": "308201d53082017aa003020102020864428c5458960f75300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000468c2da6ba062eb5278a428ca975c268b661beac60f99571a07f2ba42834765b999ab9635d6084817953ec2e2dbd6773138166bd9d012eaa912aa456db42b0801a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414a81b2a2a7dcb29d212f6b965c0f3b8aaf3dc0649301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203490030460221008dda0faa13e53f056fd4b82b47af5e5fd7b87a6e74f378258e7b428709a2afdf022100ab5740a08dd7f9687f33f39110cc9609bcb565d828af2451eddbc21063d5e869", + "certification_declaration": "3082023206092a864886f70d010702a08202233082021f020103310d300b06096086480165030402013082018b06092a864886f70d010701a082017c04820178152000012501f1ff3602050180050280050380050480050580050680050780050880050980050a80050b80050c80050d80050e80050f80051080051180051280051380051480051580051680051780051880051980051a80051b80051c80051d80051e80051f80052080052180052280052380052480052580052680052780052880052980052a80052b80052c80052d80052e80052f80053080053180053280053380053480053580053680053780053880053980053a80053b80053c80053d80053e80053f80054080054180054280054380054480054580054680054780054880054980054a80054b80054c80054d80054e80054f80055080055180055280055380055480055580055680055780055880055980055a80055b80055c80055d80055e80055f8005608005618005628005638005648018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022008bc5bbca513f1b49d44d2171acc616acdf5e460a0b4f2eedd67bc89d43e045c02203592aac0c48cbfbb3efa5cfb735229d61882afc104a8ad3dc737de673b28c32a", + "dac_private_key": "1946ef6889bf23897dee7691d5011c77acba1a2c9de689a4ac931308608ed935", + "dac_public_key": "04cf9764f086dc5bed34a1df2a1f33930d9c1d0c70b573a0ebb97396a6681fcf217ee8b18fe34bbee073acdebfdcca2ab8e84821ffac6c1dee59bb6b7fd1cce414" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/cd.der new file mode 100644 index 00000000000000..588b4bc8264558 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Cert.der new file mode 100644 index 00000000000000..fe1e13eb4fa1cb Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Cert.pem new file mode 100644 index 00000000000000..855026530f36ce --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIBWC/Y9m5Rv8wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +L4LJQYlnTkwiD+9s2/M+j6sYLIzYh2SXmvFp+Cd8ulPCxT0eSGt4JHqtSwV6CtVU +aGRfTlI47/H4OFLH953QfaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFPe/WyiCM6fQc5YDqhKnFaSmaA5rMB8GA1UdIwQYMBaAFFFv +O83LtD0dYvh0Rv/RhyzRj1KXMAoGCCqGSM49BAMCA0cAMEQCIG2weKCroxFbDIoU +F7aMX4WjA4aCLXSsZzaN99CbPvSKAiB17TqxjK3F40oaiEDVLTJofNVcsU56+LPf ++a5TAFVPKA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Key.der new file mode 100644 index 00000000000000..fc3ca6c0cfe041 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Key.pem new file mode 100644 index 00000000000000..f181729b285605 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFXFYi5J6XOp5uht124ax9vfpMhsWAGtwQcwAc6fiX6goAoGCCqGSM49 +AwEHoUQDQgAEL4LJQYlnTkwiD+9s2/M+j6sYLIzYh2SXmvFp+Cd8ulPCxT0eSGt4 +JHqtSwV6CtVUaGRfTlI47/H4OFLH953QfQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Cert.der new file mode 100644 index 00000000000000..45458dd0d3d9f1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Cert.pem new file mode 100644 index 00000000000000..efa76bb567ffa9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIITiHl5RrZHxUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASkPC36RbTMPcPkGx1RbZj9JLhOH8Z1 +2w45JtOoe/a2ldVHx6JIM09pKY5oc/qLuxpBZqM24C986Xf4T5u0mkRBo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUUW87 +zcu0PR1i+HRG/9GHLNGPUpcwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAIgFMvVcEL6shzyYufXfuDqqj0uAm6mZLUhl +LREAW9pJAiEApcXhX9Vn7gHn1rRQqyYUhzCxV8YC4Lq1i/JKx9Nvai8= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Key.der new file mode 100644 index 00000000000000..9fcc33697b8188 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Key.pem new file mode 100644 index 00000000000000..0163193e497bf8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIP9VripXReOH8r3WBnSKcaOT0oO/gkMq4OaHQNQxDcH3oAoGCCqGSM49 +AwEHoUQDQgAEpDwt+kW0zD3D5BsdUW2Y/SS4Th/GddsOOSbTqHv2tpXVR8eiSDNP +aSmOaHP6i7saQWajNuAvfOl3+E+btJpEQQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/test_case_vector.json new file mode 100644 index 00000000000000..ab606e6fe8bc9a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count100_valid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field has 100 PID values one of which matches the PID value in DAC.", + "is_success_case": "true", + "dac_cert": "308201e33082018aa00302010202080560bf63d9b946ff300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200042f82c94189674e4c220fef6cdbf33e8fab182c8cd88764979af169f8277cba53c2c53d1e486b78247aad4b057a0ad55468645f4e5238eff1f83852c7f79dd07da360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414f7bf5b288233a7d0739603aa12a715a4a6680e6b301f0603551d23041830168014516f3bcdcbb43d1d62f87446ffd1872cd18f5297300a06082a8648ce3d040302034700304402206db078a0aba3115b0c8a1417b68c5f85a30386822d74ac67368df7d09b3ef48a022075ed3ab18cadc5e34a1a8840d52d32687cd55cb14e7af8b3dff9ae5300554f28", + "pai_cert": "308201d53082017aa00302010202084e21e5e51ad91f15300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004a43c2dfa45b4cc3dc3e41b1d516d98fd24b84e1fc675db0e3926d3a87bf6b695d547c7a248334f69298e6873fa8bbb1a4166a336e02f7ce977f84f9bb49a4441a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414516f3bcdcbb43d1d62f87446ffd1872cd18f5297301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100880532f55c10beac873c98b9f5dfb83aaa8f4b809ba9992d48652d11005bda49022100a5c5e15fd567ee01e7d6b450ab26148730b157c602e0bab58bf24ac7d36f6a2f", + "certification_declaration": "3082023206092a864886f70d010702a08202233082021f020103310d300b06096086480165030402013082018b06092a864886f70d010701a082017c04820178152000012501f1ff3602050080050180050280050380050480050580050680050780050880050980050a80050b80050c80050d80050e80050f80051080051180051280051380051480051580051680051780051880051980051a80051b80051c80051d80051e80051f80052080052180052280052380052480052580052680052780052880052980052a80052b80052c80052d80052e80052f80053080053180053280053380053480053580053680053780053880053980053a80053b80053c80053d80053e80053f80054080054180054280054380054480054580054680054780054880054980054a80054b80054c80054d80054e80054f80055080055180055280055380055480055580055680055780055880055980055a80055b80055c80055d80055e80055f8005608005618005628005638018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022042034456051650bbbf94b1ec355b683de8cd706a10f4d8a43cc14b9956a1fc2802202387f753667ed12639d14849f32ad88585c135bffadae3dca623823b7098eaa5", + "dac_private_key": "55c5622e49e973a9e6e86dd76e1ac7dbdfa4c86c5801adc1073001ce9f897ea0", + "dac_public_key": "042f82c94189674e4c220fef6cdbf33e8fab182c8cd88764979af169f8277cba53c2c53d1e486b78247aad4b057a0ad55468645f4e5238eff1f83852c7f79dd07d" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/cd.der new file mode 100644 index 00000000000000..fce4990937451a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..125f8500bd6438 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..eaafdddd4b1419 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIDW/P6/tLfiEwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +MjTJB46gDccXixsRZJna9TUV5fZSuzzoNYFN+AR03s9pBkwibIOiCAAr73QX5TXY +wnnyNCj0BPJb1eq2/cAS9aNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFEbOUOLkv0f7+tHuqf7AWYlWGEkBMB8GA1UdIwQYMBaAFCMe +EwHbqPnXNbxu8/+fNfSV/wg6MAoGCCqGSM49BAMCA0cAMEQCIAS2B4EzLoxMClz6 +iTC7yoKFOjHCdkkDVSlMaaEhhUpZAiB+md0E/kNaY4flFQWZ7sIg1PAQHN3A2Exx +oHZr//wacQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Key.der new file mode 100644 index 00000000000000..4a9f80b0446e97 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..ca57f553e48f4c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBqsVMpqMpGbPNE+dHWHUW1ut7A6o5q2YOAQ1IVpWugkoAoGCCqGSM49 +AwEHoUQDQgAEMjTJB46gDccXixsRZJna9TUV5fZSuzzoNYFN+AR03s9pBkwibIOi +CAAr73QX5TXYwnnyNCj0BPJb1eq2/cAS9Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..5a45454c40b781 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..5380fa721de8b3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0zCCAXqgAwIBAgIIYDkn68zLjzMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQhMGd7bMeVrT02FRtcfsNMgwUtbp+v +59Np+ZpQ73T0tsVowHEPfrgMsY0tYHcCm2Ur627W0C33ZMlPNsYgPyl6o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUIx4T +Aduo+dc1vG7z/5819JX/CDowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDRwAwRAIgVUAxdY3CTM/IWhkIBtqL5HMka6VnGhskw0D3 +v7eP4qgCIGDnmOt8Sc+JiIeBJkQjLAkhk0sUOckUS2OERVVSClfX +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Key.der new file mode 100644 index 00000000000000..73fcbfd757c923 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..1630347e56e918 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIO6EnMiiW56IaSw/RsoTfZxlClNnF6S0F++jE0xVLrTsoAoGCCqGSM49 +AwEHoUQDQgAEITBne2zHla09NhUbXH7DTIMFLW6fr+fTafmaUO909LbFaMBxD364 +DLGNLWB3AptlK+tu1tAt92TJTzbGID8peg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..d63a05cd8ad98a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field has 10 PID values none of which matches the PID value in DAC.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202080d6fcfebfb4b7e21300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200043234c9078ea00dc7178b1b116499daf53515e5f652bb3ce835814df80474decf69064c226c83a208002bef7417e535d8c279f23428f404f25bd5eab6fdc012f5a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041446ce50e2e4bf47fbfad1eea9fec0598956184901301f0603551d23041830168014231e1301dba8f9d735bc6ef3ff9f35f495ff083a300a06082a8648ce3d0403020347003044022004b60781332e8c4c0a5cfa8930bbca82853a31c276490355294c69a121854a5902207e99dd04fe435a6387e5150599eec220d4f0101cddc0d84c71a0766bfffc1a71", + "pai_cert": "308201d33082017aa0030201020208603927ebcccb8f33300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200042130677b6cc795ad3d36151b5c7ec34c83052d6e9fafe7d369f99a50ef74f4b6c568c0710f7eb80cb18d2d6077029b652beb6ed6d02df764c94f36c6203f297aa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414231e1301dba8f9d735bc6ef3ff9f35f495ff083a301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203470030440220554031758dc24ccfc85a190806da8be473246ba5671a1b24c340f7bfb78fe2a8022060e798eb7c49cf898887812644232c0921934b1439c9144b63844555520a57d7", + "certification_declaration": "3082011f06092a864886f70d010702a08201103082010c020103310d300b0609608648016503040201307906092a864886f70d010701a06c046a152000012501f1ff3602050180050280050380050480050580050680050780050880050980050a8018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502201a6b5eaa546d38d7cd8c066b685c5c7476573987fbe360980c4cd2b282d2a1a6022100fbc84274280ae6e2425aa6a5d89dc524fa3fbd33dd01ee4de1ae3e33863f323c", + "dac_private_key": "1aac54ca6a32919b3cd13e747587516d6eb7b03aa39ab660e010d485695ae824", + "dac_public_key": "043234c9078ea00dc7178b1b116499daf53515e5f652bb3ce835814df80474decf69064c226c83a208002bef7417e535d8c279f23428f404f25bd5eab6fdc012f5" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/cd.der new file mode 100644 index 00000000000000..0208f48230c9aa Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Cert.der new file mode 100644 index 00000000000000..f95c3bf24e9f1e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Cert.pem new file mode 100644 index 00000000000000..2fcccb7057c577 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIQs5TRtlQi6AwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +XDfAn1SgeE4/WB3Sl689uEbetdZ6ShERmihB1rqwXzjyMSWav4/zRgkBw08XRBSP +iJLYxcocqwf8VUOp407KnKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFHoTIkuccC2JWtStO3mPPlcMeXMqMB8GA1UdIwQYMBaAFDcs +twTu8rJssObpsHiiqilLm8bYMAoGCCqGSM49BAMCA0gAMEUCIQCX9WysIDGWi0fD +PI0QQKnbsBTql9YWJonpKNQrs8U7ogIgdwNy9lqPIA+lHJ1EkwXFW1HHpSSYF8zD +rX+VYB/rnNM= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Key.der new file mode 100644 index 00000000000000..eb059edc50f1b7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Key.pem new file mode 100644 index 00000000000000..a64613b58edcc5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIP3DpHfIe2QPIeaawRkVT19Rh8iVvuJsVDH982eir8PMoAoGCCqGSM49 +AwEHoUQDQgAEXDfAn1SgeE4/WB3Sl689uEbetdZ6ShERmihB1rqwXzjyMSWav4/z +RgkBw08XRBSPiJLYxcocqwf8VUOp407KnA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Cert.der new file mode 100644 index 00000000000000..3754751381f427 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Cert.pem new file mode 100644 index 00000000000000..74766ab1894dc8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIMAPYAZtS0rEwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARjfyGLY+pMTQiI7KCSgSDvWJLmoy+z +bUC0f+IYlVKQwj1apqnaqAapc2+guiD8hhHsF+fix76YRUafuKysMQmko2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUNyy3 +BO7ysmyw5umweKKqKUubxtgwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhALJ6/i1B4n+WZRczG/NsQpu/Qg7NZxSrRSZa +vOeR/X/qAiEApRgxy9fxXg4q2dT1blwazv4FD5f+vhxwmtZfMU+yjyA= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Key.der new file mode 100644 index 00000000000000..90f34dafff2bc9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Key.pem new file mode 100644 index 00000000000000..7acc7d3afa1c3f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFCQM5qIPa5xAP0wZEQKuJEL38uVFU+PuWLWR97f3FrdoAoGCCqGSM49 +AwEHoUQDQgAEY38hi2PqTE0IiOygkoEg71iS5qMvs21AtH/iGJVSkMI9Wqap2qgG +qXNvoLog/IYR7Bfn4se+mEVGn7isrDEJpA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/test_case_vector.json new file mode 100644 index 00000000000000..d9cc7002419b65 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_count10_valid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field has 10 PID values one of which matches the PID value in DAC.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa003020102020842ce5346d9508ba0300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200045c37c09f54a0784e3f581dd297af3db846deb5d67a4a11119a2841d6bab05f38f231259abf8ff3460901c34f1744148f8892d8c5ca1cab07fc5543a9e34eca9ca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604147a13224b9c702d895ad4ad3b798f3e570c79732a301f0603551d23041830168014372cb704eef2b26cb0e6e9b078a2aa294b9bc6d8300a06082a8648ce3d040302034800304502210097f56cac2031968b47c33c8d1040a9dbb014ea97d6162689e928d42bb3c53ba20220770372f65a8f200fa51c9d449305c55b51c7a5249817ccc3ad7f95601feb9cd3", + "pai_cert": "308201d53082017aa00302010202083003d8019b52d2b1300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004637f218b63ea4c4d0888eca0928120ef5892e6a32fb36d40b47fe218955290c23d5aa6a9daa806a9736fa0ba20fc8611ec17e7e2c7be9845469fb8acac3109a4a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414372cb704eef2b26cb0e6e9b078a2aa294b9bc6d8301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100b27afe2d41e27f966517331bf36c429bbf420ecd6714ab45265abce791fd7fea022100a51831cbd7f15e0e2ad9d4f56e5c1acefe050f97febe1c709ad65f314fb28f20", + "certification_declaration": "3082011f06092a864886f70d010702a08201103082010c020103310d300b0609608648016503040201307906092a864886f70d010701a06c046a152000012501f1ff360205008005018005028005038005048005058005068005078005088005098018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022073e59b3306940cff0b285a783b2277d7ff2348fe24baba32132ba81bd1b65961022100b74ed8352a2da96a8767c49b8d7678515e31617808ae94f0b9a1ae55b929c0c7", + "dac_private_key": "fdc3a477c87b640f21e69ac119154f5f5187c895bee26c5431fdf367a2afc3cc", + "dac_public_key": "045c37c09f54a0784e3f581dd297af3db846deb5d67a4a11119a2841d6bab05f38f231259abf8ff3460901c34f1744148f8892d8c5ca1cab07fc5543a9e34eca9c" +} diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/cd.der new file mode 100644 index 00000000000000..119ee144c09dc6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Cert.der new file mode 100644 index 00000000000000..5fedf783c8aa7b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Cert.pem new file mode 100644 index 00000000000000..fd2a6af632714d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIfBaRBm3gh5MwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +8NPOXi0IXMvWhagJLoqZAp5+dDsz19qITOXILNuFzlUnhrfbQv/50aIR64nqv7Mz +mppO8QfGuJ+AZKoX0IX/n6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFNYGOBZ8MpaTrD/Caz5k0Of14PeTMB8GA1UdIwQYMBaAFDFz +y6X6ycIiO+rlQm7Omy/lZWs+MAoGCCqGSM49BAMCA0gAMEUCIE098BPWqvGPBv5o +OfjbdrdJOyXD/avlXitY69HDOVIhAiEA3VYeVkGi2BV/HbegeYXe7GhIEWDegKOj +AjfPAz/tPbQ= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Key.der new file mode 100644 index 00000000000000..2eb2b321ae75d2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Key.pem new file mode 100644 index 00000000000000..46a7a13a7e0e1e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDwsI9AuyproByYy/KQvNV62P2OzY7E49qtH6MxhBPLroAoGCCqGSM49 +AwEHoUQDQgAE8NPOXi0IXMvWhagJLoqZAp5+dDsz19qITOXILNuFzlUnhrfbQv/5 +0aIR64nqv7MzmppO8QfGuJ+AZKoX0IX/nw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Cert.der new file mode 100644 index 00000000000000..3de287053f2fcf Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Cert.pem new file mode 100644 index 00000000000000..9f3df97174caee --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIW6ea2CHad4IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQekHc7791XHA2L59J0TqNNG5fvBEIa +SPFM+bci5HtkuD/Uik4CCIsu4jlZ0Azw90m/0MNVcGLdefbMdd9Z0RC2o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUMXPL +pfrJwiI76uVCbs6bL+Vlaz4wHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAKUshZwnLBAmGmelZL8sf+qXu65U6S1W1BZY +GaufCjvjAiBpWt7xSgMtRVqWEdUYYGMl3kCkXeHFsDenqo7e+FztkQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Key.der new file mode 100644 index 00000000000000..88fc9e6dab3d45 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Key.pem new file mode 100644 index 00000000000000..46eb666770587e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJgDemzgsb39rnsPaIdNpuKZJ+nIwgJqyWpP0QS4++yZoAoGCCqGSM49 +AwEHoUQDQgAEHpB3O+/dVxwNi+fSdE6jTRuX7wRCGkjxTPm3IuR7ZLg/1IpOAgiL +LuI5WdAM8PdJv9DDVXBi3Xn2zHXfWdEQtg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_pid_array_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/test_case_vector.json new file mode 100644 index 00000000000000..1c36b45178f581 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_pid_array_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The product_id_array field is missing.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202087c1691066de08793300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f0d3ce5e2d085ccbd685a8092e8a99029e7e743b33d7da884ce5c82cdb85ce552786b7db42fff9d1a211eb89eabfb3339a9a4ef107c6b89f8064aa17d085ff9fa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414d60638167c329693ac3fc26b3e64d0e7f5e0f793301f0603551d230418301680143173cba5fac9c2223beae5426ece9b2fe5656b3e300a06082a8648ce3d040302034800304502204d3df013d6aaf18f06fe6839f8db76b7493b25c3fdabe55e2b58ebd1c3395221022100dd561e5641a2d8157f1db7a07985deec68481160de80a3a30237cf033fed3db4", + "pai_cert": "308201d43082017aa00302010202085ba79ad821da7782300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200041e90773befdd571c0d8be7d2744ea34d1b97ef04421a48f14cf9b722e47b64b83fd48a4e02088b2ee23959d00cf0f749bfd0c3557062dd79f6cc75df59d110b6a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604143173cba5fac9c2223beae5426ece9b2fe5656b3e301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100a52c859c272c10261a67a564bf2c7fea97bbae54e92d56d4165819ab9f0a3be30220695adef14a032d455a9611d518606325de40a45de1c5b037a7aa8edef85ced91", + "certification_declaration": "3081fc06092a864886f70d010702a081ee3081eb020103310d300b0609608648016503040201305806092a864886f70d010701a04b0449152000012501f1ff250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502205f14e817bb8227d694873778a858f9323dddc253dd57bc679c0e5e2d17dcf4770221009c45aadec12394c7a143c1b98ff7f0aa6e953a1cfd4fe5d8f945e8c8f1b14321", + "dac_private_key": "3c2c23d02eca9ae8072632fca42f355eb63f63b363b138f6ab47e8cc6104f2eb", + "dac_public_key": "04f0d3ce5e2d085ccbd685a8092e8a99029e7e743b33d7da884ce5c82cdb85ce552786b7db42fff9d1a211eb89eabfb3339a9a4ef107c6b89f8064aa17d085ff9f" +} diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_security_info_missing/cd.der new file mode 100644 index 00000000000000..2284f23596e803 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Cert.der new file mode 100644 index 00000000000000..0c8efbff7ebb79 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Cert.pem new file mode 100644 index 00000000000000..56dc334b58cf5d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIe/FfAa+8L2swCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +MOtQ1FBsDIiIs2m5f/i44GLmyskM/Cr66uM5jkgyWmm4oprnFn6fL/rIj2dt8yN3 +Mh64T/eJrxdWcEr91T7NIKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFGVde9k4V7SCSks/rf+lFAIAKL6aMB8GA1UdIwQYMBaAFLlg +t2bT8ytLvgqNgG8hRMnlbsoqMAoGCCqGSM49BAMCA0gAMEUCIQDMiDcAi6AgFS9Y +hauVpk5luOCi5sn57DUw12ls+J4anQIgDndbMOh8Ae4bick2PVUk0okh6eminiG8 +2aHxZHtk6eM= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Key.der new file mode 100644 index 00000000000000..2447cd5e9b2e6f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Key.pem new file mode 100644 index 00000000000000..13e7f6eb83c7bb --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMebWfnqOWtPiN9Xu9IsdxA/8wy5AXXekMYAfne0JQmhoAoGCCqGSM49 +AwEHoUQDQgAEMOtQ1FBsDIiIs2m5f/i44GLmyskM/Cr66uM5jkgyWmm4oprnFn6f +L/rIj2dt8yN3Mh64T/eJrxdWcEr91T7NIA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Cert.der new file mode 100644 index 00000000000000..67569132f1ac54 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Cert.pem new file mode 100644 index 00000000000000..2ebeacf8a5c91e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIbjVFTleEe8wwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARYf0gAXoSbMDIbFWJ0+Ki6sf7DuNGV +4dO0lWht9CgzhJUm8MWxEqGfAsWPfJssf2TlUPuBWizMvh/B7PiD4BWco2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUuWC3 +ZtPzK0u+Co2AbyFEyeVuyiowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgBG6NY06TxuGvs+m4fnXixWlKgw5ZkhX97mCb ++cFjKLkCIQCtPK9xwOSI6nJyuB9P+NLylOr+MrUwr9O0p33HmB4hRg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Key.der new file mode 100644 index 00000000000000..17bd2f340e9c33 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Key.pem new file mode 100644 index 00000000000000..dbf024fbe7fb84 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEJ0og2fJJ4O71BJMyXlrELO9A300IHSDg6qgEM+syfsoAoGCCqGSM49 +AwEHoUQDQgAEWH9IAF6EmzAyGxVidPiourH+w7jRleHTtJVobfQoM4SVJvDFsRKh +nwLFj3ybLH9k5VD7gVoszL4fwez4g+AVnA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_security_info_missing/test_case_vector.json new file mode 100644 index 00000000000000..339114c56dfc8e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The security_information field is missing.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202087bf15f01afbc2f6b300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000430eb50d4506c0c8888b369b97ff8b8e062e6cac90cfc2afaeae3398e48325a69b8a29ae7167e9f2ffac88f676df32377321eb84ff789af1756704afdd53ecd20a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414655d7bd93857b4824a4b3fadffa514020028be9a301f0603551d23041830168014b960b766d3f32b4bbe0a8d806f2144c9e56eca2a300a06082a8648ce3d0403020348003045022100cc8837008ba020152f5885ab95a64e65b8e0a2e6c9f9ec3530d7696cf89e1a9d02200e775b30e87c01ee1b89c9363d5524d28921e9e9a29e21bcd9a1f1647b64e9e3", + "pai_cert": "308201d43082017aa00302010202086e35454e57847bcc300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004587f48005e849b30321b156274f8a8bab1fec3b8d195e1d3b495686df42833849526f0c5b112a19f02c58f7c9b2c7f64e550fb815a2cccbe1fc1ecf883e0159ca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414b960b766d3f32b4bbe0a8d806f2144c9e56eca2a301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450220046e8d634e93c6e1afb3e9b87e75e2c5694a830e599215fdee609bf9c16328b9022100ad3caf71c0e488ea7272b81f4ff8d2f294eafe32b530afd3b4a77dc7981e2146", + "certification_declaration": "3081ff06092a864886f70d010702a081f13081ee020103310d300b0609608648016503040201305b06092a864886f70d010701a04e044c152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100ef62ce9b1b401f6a535184b8f1c8092549ccf01e8653e58760ef2834d764c785022038afb77b661d2a7a9bc63e9e79137a4b19c5efad2f34a6bd78526573084248c0", + "dac_private_key": "c79b59f9ea396b4f88df57bbd22c77103ff30cb90175de90c6007e77b42509a1", + "dac_public_key": "0430eb50d4506c0c8888b369b97ff8b8e062e6cac90cfc2afaeae3398e48325a69b8a29ae7167e9f2ffac88f676df32377321eb84ff789af1756704afdd53ecd20" +} diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/cd.der b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/cd.der new file mode 100644 index 00000000000000..b2c9a93764cc47 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Cert.der new file mode 100644 index 00000000000000..da4ba19d673e6c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..c59eb484dc749f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIXWF8uidLHHgwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +fVaINndxkCEFoq78yCBtRDjyh34K1VR6GJ98Oeb7jS2cNmT5KL/QiGWJxDXaBd09 +kkHFBoi+t5IDt+dYSFbyIqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFBijnEQzWDIt6bZVX5CQcQcZsAVlMB8GA1UdIwQYMBaAFIko +6Hw1WCk3RLuT7OcMxg8VShWDMAoGCCqGSM49BAMCA0cAMEQCIDt4lbW6TSRjMs1q +2IXlWBroLGbcMtzgoj6NAH00IN8dAiBaVk5cgAWztz5hvH3nnUv6oZet9ag7I2IW ++IFgwCc3Yw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Key.der new file mode 100644 index 00000000000000..ae9cb1eed03c2a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Key.pem new file mode 100644 index 00000000000000..c1ecce33a3a4e6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGzK5Utqhn2xf7S49G84gS1ntecK0M7oCJ1nJh1x4IZyoAoGCCqGSM49 +AwEHoUQDQgAEfVaINndxkCEFoq78yCBtRDjyh34K1VR6GJ98Oeb7jS2cNmT5KL/Q +iGWJxDXaBd09kkHFBoi+t5IDt+dYSFbyIg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Cert.der new file mode 100644 index 00000000000000..0544523e4f359d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..52e794e4c15987 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIEYWE6iUMvhMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARXQNNxugc+OMxaHVAwhnhHGdWBWUw5 ++2cu2zEwCgR9wqJix05G5fLrbXZzi0oqHuns1mzo33IuQ/wrBXprr3PQo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUiSjo +fDVYKTdEu5Ps5wzGDxVKFYMwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAKV6+TVpoC9Oz1Fjff1QQbHm6ew76vhjC3Xt +0YW296UxAiBbNPFWGZuwCcpqqECy1DctbPasnh3Cqv9NKr9BJl3CBQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Key.der new file mode 100644 index 00000000000000..1efa0f2842c893 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Key.pem new file mode 100644 index 00000000000000..a1501868787f7c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJ7b+BlFK4Vt7PLGpkQeG4eqyATmjbiaiFgqIqKYrSKroAoGCCqGSM49 +AwEHoUQDQgAEV0DTcboHPjjMWh1QMIZ4RxnVgVlMOftnLtsxMAoEfcKiYsdORuXy +6212c4tKKh7p7NZs6N9yLkP8KwV6a69z0A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_info_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/test_case_vector.json new file mode 100644 index 00000000000000..2d6070993cbcde --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_info_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The security_information field is set to invalid value (different from 0).", + "is_success_case": "false", + "dac_cert": "308201e33082018aa00302010202085d617cba274b1c78300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047d5688367771902105a2aefcc8206d4438f2877e0ad5547a189f7c39e6fb8d2d9c3664f928bfd0886589c435da05dd3d9241c50688beb79203b7e7584856f222a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041418a39c443358322de9b6555f9090710719b00565301f0603551d230418301680148928e87c3558293744bb93ece70cc60f154a1583300a06082a8648ce3d040302034700304402203b7895b5ba4d246332cd6ad885e5581ae82c66dc32dce0a23e8d007d3420df1d02205a564e5c8005b3b73e61bc7de79d4bfaa197adf5a83b236216f88160c0273763", + "pai_cert": "308201d43082017aa0030201020208118584ea250cbe13300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200045740d371ba073e38cc5a1d503086784719d581594c39fb672edb31300a047dc2a262c74e46e5f2eb6d76738b4a2a1ee9ecd66ce8df722e43fc2b057a6baf73d0a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604148928e87c3558293744bb93ece70cc60f154a1583301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100a57af93569a02f4ecf51637dfd5041b1e6e9ec3beaf8630b75edd185b6f7a53102205b34f156199bb009ca6aa840b2d4372d6cf6ac9e1dc2aaff4d2abf41265dc205", + "certification_declaration": "3082010406092a864886f70d010702a081f63081f3020103310d300b0609608648016503040201305f06092a864886f70d010701a0520450152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002506ffff25077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100b4c6186ac89197f89081ccbf9a070f9d399e9b506a52af397181b27bc6ad4e4e022100a5f9d2fb3d6a6f7a7a4fc1e1d82281e1ce87f1b78eec1fe0ce35d223cc498434", + "dac_private_key": "6ccae54b6a867db17fb4b8f46f38812d67b5e70ad0cee8089d67261d71e08672", + "dac_public_key": "047d5688367771902105a2aefcc8206d4438f2877e0ad5547a189f7c39e6fb8d2d9c3664f928bfd0886589c435da05dd3d9241c50688beb79203b7e7584856f222" +} diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_security_level_missing/cd.der new file mode 100644 index 00000000000000..b7a7a4546af80b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Cert.der new file mode 100644 index 00000000000000..b8df4f23852da8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Cert.pem new file mode 100644 index 00000000000000..62a993f6f6ed96 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIE2lW9dSOCXEwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +t5w8YXkiv5/tiNjumN3Q2PY6dfst1MvY6XhFlB1omARO9HmjBAUWrTWxtzFT7OSw +96KpPz4yo2cBpA5B9UPi5qNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFIpcc3gGYiwljvCC4W68JVrE8QB4MB8GA1UdIwQYMBaAFEOF +v5XccWakz5c28Zzn5w8bgDDEMAoGCCqGSM49BAMCA0cAMEQCIF8t+V/oDRZfW9Mj +rWgFaD0G2Md1swAHtGG1/35bUcTsAiAnvb/PGzp/k92onwkSW8LiYhWDakKigMMo ++Oxd29vNUQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Key.der new file mode 100644 index 00000000000000..79001453f83ee5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Key.pem new file mode 100644 index 00000000000000..60cc1af93d6dfa --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDB/06T71jm3TIkm+Ens9myN7rHx284jQAYRSeYQKEm3oAoGCCqGSM49 +AwEHoUQDQgAEt5w8YXkiv5/tiNjumN3Q2PY6dfst1MvY6XhFlB1omARO9HmjBAUW +rTWxtzFT7OSw96KpPz4yo2cBpA5B9UPi5g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Cert.der new file mode 100644 index 00000000000000..a99a06f8655310 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Cert.pem new file mode 100644 index 00000000000000..e133bed25cd9e9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIZc+RSNNs1g0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ2PvNC80HpuxlqJR0iTxdB9ccsQlS1 +4sY+PYvM3pRZPl30BJdIgK1Eyet2kkcb3J2nkV+tbCzMLyR3uBEbaWKro2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUQ4W/ +ldxxZqTPlzbxnOfnDxuAMMQwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAOzPUazq0/KGaRcbM9ree1fSm5cysifxQlrh +jHVWmRkyAiEAkNim1tWp0OCJCQVBMHStRfytLvUiQEhmSUn3vQk9KuM= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Key.der new file mode 100644 index 00000000000000..d6373a4dbdfbe7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Key.pem new file mode 100644 index 00000000000000..a94c627c37b487 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMczwDpRkOwfuVdXXo2KX1mI2Xi9b18kw6N3bjrVrrbeoAoGCCqGSM49 +AwEHoUQDQgAENj7zQvNB6bsZaiUdIk8XQfXHLEJUteLGPj2LzN6UWT5d9ASXSICt +RMnrdpJHG9ydp5FfrWwszC8kd7gRG2liqw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_security_level_missing/test_case_vector.json new file mode 100644 index 00000000000000..ea8fa08cc30ff5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The security_level field is missing.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa0030201020208136956f5d48e0971300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004b79c3c617922bf9fed88d8ee98ddd0d8f63a75fb2dd4cbd8e97845941d6898044ef479a3040516ad35b1b73153ece4b0f7a2a93f3e32a36701a40e41f543e2e6a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604148a5c737806622c258ef082e16ebc255ac4f10078301f0603551d230418301680144385bf95dc7166a4cf9736f19ce7e70f1b8030c4300a06082a8648ce3d040302034700304402205f2df95fe80d165f5bd323ad6805683d06d8c775b30007b461b5ff7e5b51c4ec022027bdbfcf1b3a7f93dda89f09125bc2e26215836a42a280c328f8ec5ddbdbcd51", + "pai_cert": "308201d53082017aa003020102020865cf9148d36cd60d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004363ef342f341e9bb196a251d224f1741f5c72c4254b5e2c63e3d8bccde94593e5df404974880ad44c9eb7692471bdc9da7915fad6c2ccc2f2477b8111b6962aba366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604144385bf95dc7166a4cf9736f19ce7e70f1b8030c4301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100eccf51acead3f28669171b33dade7b57d29b9732b227f1425ae18c755699193202210090d8a6d6d5a9d0e0890905413074ad45fcad2ef5224048664949f7bd093d2ae3", + "certification_declaration": "3082010006092a864886f70d010702a081f23081ef020103310d300b0609608648016503040201305b06092a864886f70d010701a04e044c152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100c1a3698a2bccb567d756b54af0f401293edd651d68dc324d6a320f7e788a0a5c0221008e55e68f6444efbe96048ffb2da98bae39d039a9facdf7416aa9ab2c68f14422", + "dac_private_key": "307fd3a4fbd639b74c8926f849ecf66c8deeb1f1dbce2340061149e6102849b7", + "dac_public_key": "04b79c3c617922bf9fed88d8ee98ddd0d8f63a75fb2dd4cbd8e97845941d6898044ef479a3040516ad35b1b73153ece4b0f7a2a93f3e32a36701a40e41f543e2e6" +} diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/cd.der b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/cd.der new file mode 100644 index 00000000000000..16dcac106e58fe Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Cert.der new file mode 100644 index 00000000000000..063e85dfaf779e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..07412a59670280 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIXpGsBYhRlRIwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +M2+LwXfS/qRQLlgwDp6hMMWWFlbk707SD83Dj6YTRqSRY9W4SYQlHzw46RrxIvAo +Xlk850xNrCXX4TD9bNbiRKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFGW/gt2gUP012Wf2HsKN9iLkh6biMB8GA1UdIwQYMBaAFDis +zuJlf6dRtipVyaNoO2V3oAQkMAoGCCqGSM49BAMCA0kAMEYCIQCGglATO4sh3bZD +5BgSHGdDpk2JezKrYrNnQ62aZ/3H4QIhAJjQDFZGhTvz9e3YGRJZE0tlhXvL67zx +pWxs2c+MVYQn +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Key.der new file mode 100644 index 00000000000000..01826defc75ae2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Key.pem new file mode 100644 index 00000000000000..d7962e9e63325a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIImKwcYDnjfA8gWHD54xkDplN9Z0SoIhL2UYEwEwFhUXoAoGCCqGSM49 +AwEHoUQDQgAEM2+LwXfS/qRQLlgwDp6hMMWWFlbk707SD83Dj6YTRqSRY9W4SYQl +Hzw46RrxIvAoXlk850xNrCXX4TD9bNbiRA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Cert.der new file mode 100644 index 00000000000000..11d26fab2f4884 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..5f8e149b8a0332 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIXubQRWqDJCEwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATygrvieiIpGJpJAeAIzWjT9LURbgAg +MUiSBERZDgtUYsElLb0J0HGr4dg/GGhu1gITLh2A2WgHsvW0vEqe+pkIo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUOKzO +4mV/p1G2KlXJo2g7ZXegBCQwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgcPSj1QQ+FcEJP+0zvSlgx8m3NbYTUZseIH5G +m2v3pnACIQDgZzYwb43aVrE6ETod3qd0WkYMzaA51+YZ/gCodvYfpA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Key.der new file mode 100644 index 00000000000000..f58e8bdc4bc4e8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Key.pem new file mode 100644 index 00000000000000..6ffea0c7371785 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPLDDKhOf5fE/PiU3L4s4a2RJxeV/cF14AwI5NN1+lodoAoGCCqGSM49 +AwEHoUQDQgAE8oK74noiKRiaSQHgCM1o0/S1EW4AIDFIkgREWQ4LVGLBJS29CdBx +q+HYPxhobtYCEy4dgNloB7L1tLxKnvqZCA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_security_level_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/test_case_vector.json new file mode 100644 index 00000000000000..9f8ce76179641d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_security_level_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The security_level field is set to invalid value (different from 0).", + "is_success_case": "false", + "dac_cert": "308201e53082018aa00302010202085e91ac0588519512300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004336f8bc177d2fea4502e58300e9ea130c5961656e4ef4ed20fcdc38fa61346a49163d5b84984251f3c38e91af122f0285e593ce74c4dac25d7e130fd6cd6e244a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041465bf82dda050fd35d967f61ec28df622e487a6e2301f0603551d2304183016801438accee2657fa751b62a55c9a3683b6577a00424300a06082a8648ce3d0403020349003046022100868250133b8b21ddb643e418121c6743a64d897b32ab62b36743ad9a67fdc7e102210098d00c5646853bf3f5edd8191259134b65857bcbebbcf1a56c6cd9cf8c558427", + "pai_cert": "308201d43082017aa00302010202085ee6d0456a832421300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f282bbe27a2229189a4901e008cd68d3f4b5116e00203148920444590e0b5462c1252dbd09d071abe1d83f18686ed602132e1d80d96807b2f5b4bc4a9efa9908a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041438accee2657fa751b62a55c9a3683b6577a00424301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022070f4a3d5043e15c1093fed33bd2960c7c9b735b613519b1e207e469b6bf7a670022100e06736306f8dda56b13a113a1ddea7745a460ccda039d7e619fe00a876f61fa4", + "certification_declaration": "3082010106092a864886f70d010702a081f33081f0020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405ff24060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402201837df6f5bc4a9fe0595e5d34c9ead59b50796b49a745c341e37ed34e2a5e7df02204eef7fc464be4704766fa79c8641c18d6d7af905249c102328761d738aab69b5", + "dac_private_key": "898ac1c6039e37c0f205870f9e31903a6537d6744a82212f6518130130161517", + "dac_public_key": "04336f8bc177d2fea4502e58300e9ea130c5961656e4ef4ed20fcdc38fa61346a49163d5b84984251f3c38e91af122f0285e593ce74c4dac25d7e130fd6cd6e244" +} diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/cd.der b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/cd.der new file mode 100644 index 00000000000000..ffa07ed6da852b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Cert.der new file mode 100644 index 00000000000000..55ed55caec8eed Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Cert.pem new file mode 100644 index 00000000000000..ed56b8dc5d7997 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIeDEMP7L8V3wwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +8mOCJde19TnLc/CdbGedVAdjfDYatZ6HZ6SZz5BlLN6itTG3RPj4n370NVkQAuyx +urVGwZPmWTeP8Gm00yvPbqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFCzsBXRNkmll18XzgCsGLgcFe2yyMB8GA1UdIwQYMBaAFKXo +hxBq8enTVS/4qlnpfV8U2OWqMAoGCCqGSM49BAMCA0gAMEUCIQD5ADqrN9OmR4Ji +//RyhuUHeriddDw86oRMLngBpVhCSAIgbGIXYtnBsh0nZV8vdoOd7poWrLsIJ0P8 +1pQCbr9y6n8= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Key.der new file mode 100644 index 00000000000000..5ef13ddadd7eff Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Key.pem new file mode 100644 index 00000000000000..f6132e06b49b9d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEGfjcZPnq7NdfbtbhYlc5nSfMMrSlhq+WslXBRCdJCUoAoGCCqGSM49 +AwEHoUQDQgAE8mOCJde19TnLc/CdbGedVAdjfDYatZ6HZ6SZz5BlLN6itTG3RPj4 +n370NVkQAuyxurVGwZPmWTeP8Gm00yvPbg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Cert.der new file mode 100644 index 00000000000000..5f5323afc56005 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Cert.pem new file mode 100644 index 00000000000000..55d5bb7f826b5f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIC7/eSlesK/IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARBGay/I2l3V3Mv7bnw86UAp7m8/jI7 +wYL3GXqedrhoMBw3vjJDISp6yj6vZmtdZ4Ic1nsSyjO6g5fptPItvglwo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUpeiH +EGrx6dNVL/iqWel9XxTY5aowHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAIdhK5PSB/+kh467OGMgEywocbejWQXBC+1C +zY/sXd7FAiAlZ98Is3VGGgHQ0svbhso2MhrnEvG9pjZMcGFfllfzOA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Key.der new file mode 100644 index 00000000000000..6ffeba74d630cf Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Key.pem new file mode 100644 index 00000000000000..ceea5ca8adc5b1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFq+dGAI2lydsuSvnmKFPOZ35WUscS8ziGC0pfvUtGaioAoGCCqGSM49 +AwEHoUQDQgAEQRmsvyNpd1dzL+258POlAKe5vP4yO8GC9xl6nna4aDAcN74yQyEq +eso+r2ZrXWeCHNZ7EsozuoOX6bTyLb4JcA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/test_case_vector.json new file mode 100644 index 00000000000000..f833120d8fbf5f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_digest_algo_sha1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid Signer Info digest algorithm SHA1.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa003020102020878310c3fb2fc577c300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f2638225d7b5f539cb73f09d6c679d5407637c361ab59e8767a499cf90652cdea2b531b744f8f89f7ef435591002ecb1bab546c193e659378ff069b4d32bcf6ea360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604142cec05744d926965d7c5f3802b062e07057b6cb2301f0603551d23041830168014a5e887106af1e9d3552ff8aa59e97d5f14d8e5aa300a06082a8648ce3d0403020348003045022100f9003aab37d3a6478262fff47286e5077ab89d743c3cea844c2e7801a558424802206c621762d9c1b21d27655f2f76839dee9a16acbb082743fcd694026ebf72ea7f", + "pai_cert": "308201d43082017aa00302010202080bbfde4a57ac2bf2300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200044119acbf23697757732fedb9f0f3a500a7b9bcfe323bc182f7197a9e76b868301c37be3243212a7aca3eaf666b5d67821cd67b12ca33ba8397e9b4f22dbe0970a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414a5e887106af1e9d3552ff8aa59e97d5f14d8e5aa301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502210087612b93d207ffa4878ebb386320132c2871b7a35905c10bed42cd8fec5ddec502202567df08b375461a01d0d2cbdb86ca36321ae712f1bda6364c70615f9657f338", + "certification_declaration": "3081fe06092a864886f70d010702a081f03081ed020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe6620181831793077020103801462fa823359acfaa9963e1cfa140addf504f37160300706052b0e03021a300a06082a8648ce3d040302044730450221008ac235ef439bb08e0574ddc4ce0b2dedb738ba389acffe08da8f5fb34ca40037022061bd3eff72b825427c15692e5995ed675380734711b19b4e2b86d2a9ec6684a6", + "dac_private_key": "419f8dc64f9eaecd75f6ed6e16257399d27cc32b4a586af96b255c1442749094", + "dac_public_key": "04f2638225d7b5f539cb73f09d6c679d5407637c361ab59e8767a499cf90652cdea2b531b744f8f89f7ef435591002ecb1bab546c193e659378ff069b4d32bcf6e" +} diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/cd.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/cd.der new file mode 100644 index 00000000000000..1b9938727700c9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Cert.der new file mode 100644 index 00000000000000..3464601669400c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Cert.pem new file mode 100644 index 00000000000000..e0f37f26a60053 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4jCCAYmgAwIBAgIHGh6W6IpxEzAKBggqhkjOPQQDAjBGMRgwFgYDVQQDDA9N +YXR0ZXIgVGVzdCBQQUkxFDASBgorBgEEAYKifAIBDARGRkYxMRQwEgYKKwYBBAGC +onwCAgwEODAwMDAgFw0yMjA1MTMwMDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEY +MBYGA1UEAwwPTWF0dGVyIFRlc3QgREFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEU +MBIGCisGAQQBgqJ8AgIMBDgwMDAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR9 +xixZwbBz4jINFh+YlZ41A8Md/U5ASgLgu2OSjdttYBEIhe2ZNzAyq5Z4nd33Hm2X +B4nBsff6z8MvXiy4IxEso2AwXjAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIH +gDAdBgNVHQ4EFgQUIDavmSb5ow4jxtf68395zfA+EIowHwYDVR0jBBgwFoAUK9pU +8OWyvYNaGmDgfHev0vklNYswCgYIKoZIzj0EAwIDRwAwRAIgBeKZZHJayuUsj1Wd +rg49VFv3U/y6kPrtbTwpoAs0HMoCIBNHv8vJitP1e42nr7UB7Sc63C0oYt3t1TY/ +n8HGmN7H +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Key.der new file mode 100644 index 00000000000000..eb4e4c34393912 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Key.pem new file mode 100644 index 00000000000000..ebf5dad60ae7d9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINyML+UfOotQFZmODsNeOMSKYwD+0tYdtxDXdFfBXNrKoAoGCCqGSM49 +AwEHoUQDQgAEfcYsWcGwc+IyDRYfmJWeNQPDHf1OQEoC4Ltjko3bbWARCIXtmTcw +MquWeJ3d9x5tlweJwbH3+s/DL14suCMRLA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Cert.der new file mode 100644 index 00000000000000..92c2b331182b3d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Cert.pem new file mode 100644 index 00000000000000..4056817679fa1d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIOph5r4Q3ipYwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATIg1xYZ2xbdux7SATmMCp71vkBAZjB +IfeR+YlDS/Y4U9x0lG7xe2hiQi2wEIYjdhp0RYCyPJ0ZrFg2NmMQc/D8o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUK9pU +8OWyvYNaGmDgfHev0vklNYswHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAMsQZluDNtHE9m4FGPtddKwzWQGO/nvtc4ba +DxFo1jTOAiBrC4blHCJHmxjmI/tRZUUWSH7CYsT/a7ZytAUIiKkPuw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Key.der new file mode 100644 index 00000000000000..b26a4cdb19fcdf Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Key.pem new file mode 100644 index 00000000000000..df838f6f594c4f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDYRVUeIKzAWR2+r4V4P8SWtDenJ96gzMBxa456OhFnfoAoGCCqGSM49 +AwEHoUQDQgAEyINcWGdsW3bse0gE5jAqe9b5AQGYwSH3kfmJQ0v2OFPcdJRu8Xto +YkItsBCGI3YadEWAsjydGaxYNjZjEHPw/A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/test_case_vector.json new file mode 100644 index 00000000000000..a9778a2ffbc75f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_invalid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The subjectKeyIdentifier contains invalid SKID of a certificate unknown by Zigbee Alliance.", + "is_success_case": "false", + "dac_cert": "308201e230820189a00302010202071a1e96e88a7113300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047dc62c59c1b073e2320d161f98959e3503c31dfd4e404a02e0bb63928ddb6d60110885ed99373032ab96789dddf71e6d970789c1b1f7facfc32f5e2cb823112ca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604142036af9926f9a30e23c6d7faf37f79cdf03e108a301f0603551d230418301680142bda54f0e5b2bd835a1a60e07c77afd2f925358b300a06082a8648ce3d0403020347003044022005e29964725acae52c8f559dae0e3d545bf753fcba90faed6d3c29a00b341cca02201347bfcbc98ad3f57b8da7afb501ed273adc2d2862ddedd5363f9fc1c698dec7", + "pai_cert": "308201d43082017aa00302010202083a9879af84378a96300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004c8835c58676c5b76ec7b4804e6302a7bd6f9010198c121f791f989434bf63853dc74946ef17b6862422db0108623761a744580b23c9d19ac583636631073f0fca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604142bda54f0e5b2bd835a1a60e07c77afd2f925358b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100cb10665b8336d1c4f66e0518fb5d74ac3359018efe7bed7386da0f1168d634ce02206b0b86e51c22479b18e623fb51654516487ec262c4ff6bb672b4050888a90fbb", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfa56963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100d458770a629b4c0a529b92b9d745a4835da8d0cd04be098e5bf5457fd1ec625502207de56847b47c4b34b8baab77a08f581f8ceef28d63cd18d462602a636ee3a381", + "dac_private_key": "dc8c2fe51f3a8b5015998e0ec35e38c48a6300fed2d61db710d77457c15cdaca", + "dac_public_key": "047dc62c59c1b073e2320d161f98959e3503c31dfd4e404a02e0bb63928ddb6d60110885ed99373032ab96789dddf71e6d970789c1b1f7facfc32f5e2cb823112c" +} diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/cd.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/cd.der new file mode 100644 index 00000000000000..df7f6f3c004469 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Cert.der new file mode 100644 index 00000000000000..128c6bcdc250ea Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Cert.pem new file mode 100644 index 00000000000000..f132ef1683d084 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIFGblAAc74AkwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +5xfYvWYadIG/coEHZqHst/XOmBfyrfBV3lO97047NCJ1bJAUg5lGUGQtE6m7E6e4 +Sd+h9duVDA+bHJvoCM1KPaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFDy3R9sx4FuFjEMlTjAZ0ziDaNIuMB8GA1UdIwQYMBaAFLk1 +nArAV56kNUHkJsodyUp4oYuXMAoGCCqGSM49BAMCA0gAMEUCID2emJnsY516cRGG +gehafxzeA+OTTadpeCyUwC/wjKvqAiEA0jXEK6+/hwMOVMy/tyepJUUHRpaSWlJ6 +YIRcTAhlBNI= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Key.der new file mode 100644 index 00000000000000..601cf94f86f8bc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Key.pem new file mode 100644 index 00000000000000..8d30ed5b41503d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIKKjLbODZxcsZja79FJfd6qGBbGqJChcwOK+l6TPv8IAoAoGCCqGSM49 +AwEHoUQDQgAE5xfYvWYadIG/coEHZqHst/XOmBfyrfBV3lO97047NCJ1bJAUg5lG +UGQtE6m7E6e4Sd+h9duVDA+bHJvoCM1KPQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Cert.der new file mode 100644 index 00000000000000..e9c0edf3f89832 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Cert.pem new file mode 100644 index 00000000000000..29a18e6d0032de --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIICpyXaSNFMBwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARxONb6QnkQNA8oBhwjEFGQcVw98eVx +WfEh+sPwubZnqWgB6uwl8R8stBqcGguA+OD37aakvmSCickjaWoYJLFeo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUuTWc +CsBXnqQ1QeQmyh3JSnihi5cwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAMOPdZ4niVI+t0hhIyuMUCTxUqA4qxKTlLg2 +3EGyyTjAAiEAzUaOKij49wXkOLEveg5Vj3lUnDHuuBoj4np9fI+dZJ0= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Key.der new file mode 100644 index 00000000000000..8d78b2cb0fdde8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Key.pem new file mode 100644 index 00000000000000..d92cef1dbb113e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIElM3ljTjpe3hdv///vwwWTNmqXnxmQi4eyk8qpw9YN5oAoGCCqGSM49 +AwEHoUQDQgAEcTjW+kJ5EDQPKAYcIxBRkHFcPfHlcVnxIfrD8Lm2Z6loAersJfEf +LLQanBoLgPjg9+2mpL5kgonJI2lqGCSxXg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/test_case_vector.json new file mode 100644 index 00000000000000..297050af9cb362 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_skid_valid/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The subjectKeyIdentifier contains SKID of a well-known Zigbee Alliance certificate.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa00302010202081466e500073be009300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004e717d8bd661a7481bf72810766a1ecb7f5ce9817f2adf055de53bdef4e3b3422756c901483994650642d13a9bb13a7b849dfa1f5db950c0f9b1c9be808cd4a3da360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604143cb747db31e05b858c43254e3019d3388368d22e301f0603551d23041830168014b9359c0ac0579ea43541e426ca1dc94a78a18b97300a06082a8648ce3d040302034800304502203d9e9899ec639d7a71118681e85a7f1cde03e3934da769782c94c02ff08cabea022100d235c42bafbf87030e54ccbfb727a92545074696925a527a60845c4c086504d2", + "pai_cert": "308201d53082017aa00302010202080a9c97692345301c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047138d6fa427910340f28061c23105190715c3df1e57159f121fac3f0b9b667a96801eaec25f11f2cb41a9c1a0b80f8e0f7eda6a4be648289c923696a1824b15ea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414b9359c0ac0579ea43541e426ca1dc94a78a18b97301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100c38f759e2789523eb74861232b8c5024f152a038ab129394b836dc41b2c938c0022100cd468e2a28f8f705e438b12f7a0e558f79549c31eeb81a23e27a7d7c8f9d649d", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022038f750ffb83fe674f203f07035cca23d18bafafbf92b65d07fa0336579676aa00221008648107106f03e5054e9d0bee0df886aca52fc47734a3a935e8cff39afa05feb", + "dac_private_key": "a2a32db38367172c6636bbf4525f77aa8605b1aa24285cc0e2be97a4cfbfc200", + "dac_public_key": "04e717d8bd661a7481bf72810766a1ecb7f5ce9817f2adf055de53bdef4e3b3422756c901483994650642d13a9bb13a7b849dfa1f5db950c0f9b1c9be808cd4a3d" +} diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/cd.der b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/cd.der new file mode 100644 index 00000000000000..38477c9fe48752 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Cert.der new file mode 100644 index 00000000000000..97435bb597a202 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Cert.pem new file mode 100644 index 00000000000000..fedca40db5afcd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIbrChSIkV+D0wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +NdPEwIMABSXkVCJY7ZhrxF4eh9ji9+BZnx7ddyx1WwbVv+zFG8Qb/R57GsYFKok4 +FfrvT6/n8Kyv2AF/UyHSKqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFCeEuaH+uV0hHpg7icTsi3rZW8h1MB8GA1UdIwQYMBaAFLPb +67ewqiZw8eHkHXPVyUZXhBsoMAoGCCqGSM49BAMCA0gAMEUCIEGCBn7X3bJs1+ib +1fSVRqerJZHytLH3nQI2WUDuhNXaAiEAm5cQQpl8AzIjC9Zw80n0Xuf6zbmLevfE +beGGk9XQdMs= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Key.der new file mode 100644 index 00000000000000..8fbd577bda3080 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Key.pem new file mode 100644 index 00000000000000..75013ff3705399 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBq8TLeIHx4HC5hdSFdCDW9RD+d40QkZXm7yuNao1cQZoAoGCCqGSM49 +AwEHoUQDQgAENdPEwIMABSXkVCJY7ZhrxF4eh9ji9+BZnx7ddyx1WwbVv+zFG8Qb +/R57GsYFKok4FfrvT6/n8Kyv2AF/UyHSKg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Cert.der new file mode 100644 index 00000000000000..31249e91bdfb69 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Cert.pem new file mode 100644 index 00000000000000..41b19be77361f1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIB/fSHXChpKMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ1edXi8Bn7KDp3K8zC7klkVlBKeNRc +gKmZRZzMN3yH/9ScfOVpaVqqv4/mknvo8/N3yNWgq/QBAbcSibcx8+2Po2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUs9vr +t7CqJnDx4eQdc9XJRleEGygwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAPE0uY/GwXm8B03oJmkb2QgfOFenbTG5OZ65 +YOb5pZ6LAiEA4D1h8PS2XDr427nekkF69Q5qvfSf3lleRTGOmOi9JaY= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Key.der new file mode 100644 index 00000000000000..e1d24b48c82cb5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Key.pem new file mode 100644 index 00000000000000..aabe62cfef2833 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIClKU2LslDDBVadDjBcK7Z8GdvBvavXUpvy66AM1MsAQoAoGCCqGSM49 +AwEHoUQDQgAENXnV4vAZ+yg6dyvMwu5JZFZQSnjUXICpmUWczDd8h//UnHzlaWla +qr+P5pJ76PPzd8jVoKv0AQG3Eom3MfPtjw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_signer_info_v2/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/test_case_vector.json new file mode 100644 index 00000000000000..623ad47f41aa12 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_signer_info_v2/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: Invalid Signer Info version set to v2.", + "is_success_case": "false", + "dac_cert": "308201e43082018aa00302010202086eb0a1488915f83d300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000435d3c4c083000525e4542258ed986bc45e1e87d8e2f7e0599f1edd772c755b06d5bfecc51bc41bfd1e7b1ac6052a893815faef4fafe7f0acafd8017f5321d22aa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604142784b9a1feb95d211e983b89c4ec8b7ad95bc875301f0603551d23041830168014b3dbebb7b0aa2670f1e1e41d73d5c94657841b28300a06082a8648ce3d040302034800304502204182067ed7ddb26cd7e89bd5f49546a7ab2591f2b4b1f79d02365940ee84d5da0221009b971042997c0332230bd670f349f45ee7facdb98b7af7c46de18693d5d074cb", + "pai_cert": "308201d53082017aa003020102020807f7d21d70a1a4a3300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200043579d5e2f019fb283a772bccc2ee496456504a78d45c80a999459ccc377c87ffd49c7ce569695aaabf8fe6927be8f3f377c8d5a0abf40101b71289b731f3ed8fa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414b3dbebb7b0aa2670f1e1e41d73d5c94657841b28301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100f134b98fc6c179bc074de826691bd9081f3857a76d31b9399eb960e6f9a59e8b022100e03d61f0f4b65c3af8dbb9de92417af50e6abdf49fde595e45318e98e8bd25a6", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020102801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100b1cb0831edf7445f152b21cf0637c301fca39ad79d01982cb392e54622a18f4902205bc356688b1ce990991e9a98a8bb64a4c49139b4c54b19d3b9b2129b8fe38419", + "dac_private_key": "1abc4cb7881f1e070b985d4857420d6f510fe778d109195e6ef2b8d6a8d5c419", + "dac_public_key": "0435d3c4c083000525e4542258ed986bc45e1e87d8e2f7e0599f1edd772c755b06d5bfecc51bc41bfd1e7b1ac6052a893815faef4fafe7f0acafd8017f5321d22a" +} diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/cd.der b/credentials/development/commissioner_dut/struct_cd_version_number_match/cd.der new file mode 100644 index 00000000000000..cd51cf893789c8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_match/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Cert.der new file mode 100644 index 00000000000000..439016ad7e8595 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Cert.pem new file mode 100644 index 00000000000000..c0d302b934c79e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5DCCAYqgAwIBAgIIHm/yBwipzuEwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +oIBVl+4vhxeO0sEEU987hKUgnkMdbtPrSAulg/uLQvlytKkV5C9Muzpk/buvn31s +Kgs+FdtV1Y+DzFGhu2N0/KNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFKevbuxU/sVdFh7ST9gkDCIVyAH1MB8GA1UdIwQYMBaAFDcg +LkdnJBuywytZaXyGEGaLVbF7MAoGCCqGSM49BAMCA0gAMEUCIAgHLSxNlH7Zz0/f +F2gpB2mh9tMPeW3peYZW4hCdZeCWAiEA/64IT3ckDUjiyoYf1+pnq6ixBIF9ho/4 +AtwR0xaHI3s= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Key.der new file mode 100644 index 00000000000000..4a0a330093abc2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Key.pem new file mode 100644 index 00000000000000..a4fba5e94022eb --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_match/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEILcwQTAWqhFvfLCHi8D6/1Y56CkUO+PcJvdKG+2jShhDoAoGCCqGSM49 +AwEHoUQDQgAEoIBVl+4vhxeO0sEEU987hKUgnkMdbtPrSAulg/uLQvlytKkV5C9M +uzpk/buvn31sKgs+FdtV1Y+DzFGhu2N0/A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Cert.der new file mode 100644 index 00000000000000..5d3c0cd473acbe Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Cert.pem new file mode 100644 index 00000000000000..0f9d7f569f0b11 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIbgBPmdYDFXUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT44l3a/JRzaY9sGILSSfy+Xa1/S6vZ +n/JkdjrxwJl1PihglhqmMk5pdm1XGo0VZH4pCrzOs+1+GD4/TOIj6M5ro2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUNyAu +R2ckG7LDK1lpfIYQZotVsXswHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhALdqhZyCujWCxx7r4PZUh9Y0qOjthuQTHHTC ++k4MEc1rAiAbF6NgjTlouO4m07r1fNdYJy9MRyFAJ0EnIajX9F1A2Q== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Key.der new file mode 100644 index 00000000000000..ec5cce72b652ff Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Key.pem new file mode 100644 index 00000000000000..8132a218dd30c0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_match/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFVRIHxYzSxG2gG/WX8FkdOJGNsEsSnOAcUZLvc4TwanoAoGCCqGSM49 +AwEHoUQDQgAE+OJd2vyUc2mPbBiC0kn8vl2tf0ur2Z/yZHY68cCZdT4oYJYapjJO +aXZtVxqNFWR+KQq8zrPtfhg+P0ziI+jOaw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_match/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_version_number_match/test_case_vector.json new file mode 100644 index 00000000000000..f9d5fe8998c555 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_match/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The version_number field matches the VID and PID used in a DeviceSoftwareVersionModel entry in the DCL matching the certification record associated with the product presenting this CD.", + "is_success_case": "true", + "dac_cert": "308201e43082018aa00302010202081e6ff20708a9cee1300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004a0805597ee2f87178ed2c10453df3b84a5209e431d6ed3eb480ba583fb8b42f972b4a915e42f4cbb3a64fdbbaf9f7d6c2a0b3e15db55d58f83cc51a1bb6374fca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414a7af6eec54fec55d161ed24fd8240c2215c801f5301f0603551d2304183016801437202e4767241bb2c32b59697c8610668b55b17b300a06082a8648ce3d0403020348003045022008072d2c4d947ed9cf4fdf1768290769a1f6d30f796de9798656e2109d65e096022100ffae084f77240d48e2ca861fd7ea67aba8b104817d868ff802dc11d31687237b", + "pai_cert": "308201d43082017aa00302010202086e004f99d6031575300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f8e25ddafc9473698f6c1882d249fcbe5dad7f4babd99ff264763af1c099753e2860961aa6324e69766d571a8d15647e290abcceb3ed7e183e3f4ce223e8ce6ba366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041437202e4767241bb2c32b59697c8610668b55b17b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100b76a859c82ba3582c71eebe0f65487d634a8e8ed86e4131c74c2fa4e0c11cd6b02201b17a3608d3968b8ee26d3baf57cd758272f4c47214027412721a8d7f45d40d9", + "certification_declaration": "3082010106092a864886f70d010702a081f33081f0020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402200f7e62d267c01cd3786adf4486609d66d5fe0a7241d800f415f64090a3bd429f0220279e9c286cb14c2d25e138e5e98da129315eca49680ff3eecc42afe7213729a8", + "dac_private_key": "b730413016aa116f7cb0878bc0faff5639e829143be3dc26f74a1beda34a1843", + "dac_public_key": "04a0805597ee2f87178ed2c10453df3b84a5209e431d6ed3eb480ba583fb8b42f972b4a915e42f4cbb3a64fdbbaf9f7d6c2a0b3e15db55d58f83cc51a1bb6374fc" +} diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_version_number_missing/cd.der new file mode 100644 index 00000000000000..b07333da99ee25 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Cert.der new file mode 100644 index 00000000000000..3e2f80644a09d2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Cert.pem new file mode 100644 index 00000000000000..49ed7185cb91d4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIe5DzJ8lIqH0wCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +KbggDZQkcLFv861ejvBGR4yQw79EGRX9RcX1DGjvwK2IbNkP1RLQv8f9bXqds7Dn +p1bN2GPY7zdcKiTK5OxRp6NgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFOWR6Pmi8MmKAAAgjjUErPEEEqndMB8GA1UdIwQYMBaAFMV8 +lt+EwEF+BqJyHWV27aq0piJ1MAoGCCqGSM49BAMCA0kAMEYCIQDNZA4b+s+RlovF +QzOBiLq/N2sOQkV3IbOzrL9+dpj9yAIhALMNMBZmsfthinVhKq1Tpue98vmpyqaD +/eTd0Krbz11x +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Key.der new file mode 100644 index 00000000000000..9d81b18b0dedae Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Key.pem new file mode 100644 index 00000000000000..10e4a7d357996d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICZmr+9iLlSfMu/d44csNBxEVLm7uF6iND0j/7eo7a6poAoGCCqGSM49 +AwEHoUQDQgAEKbggDZQkcLFv861ejvBGR4yQw79EGRX9RcX1DGjvwK2IbNkP1RLQ +v8f9bXqds7Dnp1bN2GPY7zdcKiTK5OxRpw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Cert.der new file mode 100644 index 00000000000000..a87ab0db1dd159 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Cert.pem new file mode 100644 index 00000000000000..2cc605be803067 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIBZ0FoZNceuswCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQCxzF8oEN+uABEayi7Wei09akDWnS3 +p1tNbr4uG9oJitDE8Ib7EUisnxuSJtO5xYQCdQrHtwiyBo89JB3YZJQBo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUxXyW +34TAQX4GonIdZXbtqrSmInUwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAJ7qrm1XPejeyq0XOewn5LDjCj7QZ+irP9h6 +kgFrnLSPAiAYGDDkrQGkhRojbh2HHjB8lvrcCrPg4mlFZ3Qgq1N53Q== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Key.der new file mode 100644 index 00000000000000..0be81f55552497 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Key.pem new file mode 100644 index 00000000000000..18d1ae2637534a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJ1/KEXFhGGVeLvK0XJ22SO1mTcQowLwyKC9mXgcfCvpoAoGCCqGSM49 +AwEHoUQDQgAEAscxfKBDfrgARGsou1notPWpA1p0t6dbTW6+LhvaCYrQxPCG+xFI +rJ8bkibTucWEAnUKx7cIsgaPPSQd2GSUAQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_version_number_missing/test_case_vector.json new file mode 100644 index 00000000000000..ccb5e2c06bbf0c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The version_number field is missing.", + "is_success_case": "true", + "dac_cert": "308201e53082018aa00302010202087b90f327c948a87d300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000429b8200d942470b16ff3ad5e8ef046478c90c3bf441915fd45c5f50c68efc0ad886cd90fd512d0bfc7fd6d7a9db3b0e7a756cdd863d8ef375c2a24cae4ec51a7a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414e591e8f9a2f0c98a0000208e3504acf10412a9dd301f0603551d23041830168014c57c96df84c0417e06a2721d6576edaab4a62275300a06082a8648ce3d0403020349003046022100cd640e1bfacf91968bc543338188babf376b0e42457721b3b3acbf7e7698fdc8022100b30d301666b1fb618a75612aad53a6e7bdf2f9a9caa683fde4ddd0aadbcf5d71", + "pai_cert": "308201d43082017aa0030201020208059d05a1935c7aeb300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000402c7317ca0437eb800446b28bb59e8b4f5a9035a74b7a75b4d6ebe2e1bda098ad0c4f086fb1148ac9f1b9226d3b9c58402750ac7b708b2068f3d241dd8649401a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414c57c96df84c0417e06a2721d6576edaab4a62275301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450221009eeaae6d573de8decaad1739ec27e4b0e30a3ed067e8ab3fd87a92016b9cb48f0220181830e4ad01a4851a236e1d871e307c96fadc0ab3e0e26945677420ab5379dd", + "certification_declaration": "3081fe06092a864886f70d010702a081f03081ed020103310d300b0609608648016503040201305a06092a864886f70d010701a04d044b152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d3234240500240600240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502201157e55479d4bd66b470f3282cd7f02df657c485fff508a820ed75b6193c813c0221008214b655a27a6e7a4fdde6c6d3cd6d8dc5d3ad268c1cf6c5911608165d26d902", + "dac_private_key": "2666afef622e549f32efdde3872c341c4454b9bbb85ea2343d23ffb7a8edaea9", + "dac_public_key": "0429b8200d942470b16ff3ad5e8ef046478c90c3bf441915fd45c5f50c68efc0ad886cd90fd512d0bfc7fd6d7a9db3b0e7a756cdd863d8ef375c2a24cae4ec51a7" +} diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/cd.der b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/cd.der new file mode 100644 index 00000000000000..89990442431930 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Cert.der new file mode 100644 index 00000000000000..95bab359a07b25 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..ec689acdf10df8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYqgAwIBAgIIRHWAI9XN7lgwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +TEKG7ImMe3GamPotw3oKJ0af2L/zRzgGGxpW66h0G4Q02v62pnxF3RyCY3/IvE+O +q7TW6QmK/mkw31Wlv3VgWqNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFOaSf9YFPe5L+x2bBtUkOO7GgaBCMB8GA1UdIwQYMBaAFGuP +DhpW3pJtP81lXMOgKqV2VvJIMAoGCCqGSM49BAMCA0cAMEQCIB9/8/OVy9fZRakV +XJkAxxrhFuhQjicP/oD3N+vhKoGuAiB45RK8Fhudrdj1UX/0LWazYhFxeeaUNBtJ +K6x7sLDZeA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Key.der new file mode 100644 index 00000000000000..a9c6908894e349 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Key.pem new file mode 100644 index 00000000000000..ef270b7251690b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOelSy6ySSXyClwV7p6e6TsIZjdJgYxnRUqD2h4s5f37oAoGCCqGSM49 +AwEHoUQDQgAETEKG7ImMe3GamPotw3oKJ0af2L/zRzgGGxpW66h0G4Q02v62pnxF +3RyCY3/IvE+Oq7TW6QmK/mkw31Wlv3VgWg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Cert.der new file mode 100644 index 00000000000000..c0b15acd5f6023 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..bf8448678ce99d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1TCCAXqgAwIBAgIIIR+EJtrV6TIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQMDbACvU2dnkDA+et2wqfJqlNnfMep +EuVXRoxEqYZKAjHioZNtmHNg8QVUFdo02d41U7htTEX0nxFJ+QPnQ8Pwo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUa48O +Glbekm0/zWVcw6AqpXZW8kgwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSQAwRgIhAOf/04IdZtDrX4lKiASX59AR0AuCAQdBJEYN +vq+CZNGwAiEAxnzihlwEvlwWxXG9hjc4KqT2SZQnzDOLnF8zKX91rj4= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Key.der new file mode 100644 index 00000000000000..6b65288779f570 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Key.pem new file mode 100644 index 00000000000000..f18c8ec9763ce7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEXrFkMrkPI1eRh2r/IsllRGGvlNPThy9Rklp2cAPtZnoAoGCCqGSM49 +AwEHoUQDQgAEDA2wAr1NnZ5AwPnrdsKnyapTZ3zHqRLlV0aMRKmGSgIx4qGTbZhz +YPEFVBXaNNneNVO4bUxF9J8RSfkD50PD8A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_version_number_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/test_case_vector.json new file mode 100644 index 00000000000000..890a96f4f8edb1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_version_number_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The version_number field doesn't match the VID and PID used in a DeviceSoftwareVersionModel entry in the DCL matching the certification record associated with the product presenting this CD.", + "is_success_case": "false", + "dac_cert": "308201e33082018aa003020102020844758023d5cdee58300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200044c4286ec898c7b719a98fa2dc37a0a27469fd8bff34738061b1a56eba8741b8434dafeb6a67c45dd1c82637fc8bc4f8eabb4d6e9098afe6930df55a5bf75605aa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414e6927fd6053dee4bfb1d9b06d52438eec681a042301f0603551d230418301680146b8f0e1a56de926d3fcd655cc3a02aa57656f248300a06082a8648ce3d040302034700304402201f7ff3f395cbd7d945a9155c9900c71ae116e8508e270ffe80f737ebe12a81ae022078e512bc161b9dadd8f5517ff42d66b362117179e694341b492bac7bb0b0d978", + "pai_cert": "308201d53082017aa0030201020208211f8426dad5e932300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200040c0db002bd4d9d9e40c0f9eb76c2a7c9aa53677cc7a912e557468c44a9864a0231e2a1936d987360f1055415da34d9de3553b86d4c45f49f1149f903e743c3f0a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604146b8f0e1a56de926d3fcd655cc3a02aa57656f248301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100e7ffd3821d66d0eb5f894a880497e7d011d00b8201074124460dbeaf8264d1b0022100c67ce2865c04be5c16c571bd8637382aa4f6499427cc338b9c5f33297f75ae3e", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305e06092a864886f70d010701a051044f152000012501f1ff360205008018250334122c04135a494732303134315a423333303030312d323424050024060025078967240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100da62840ebeb53d534757931ca061b78abe1285477bc4560f0db28870f41c882f02206da0181b931d025bcafed7ea045530a72be58c9743951ab98e112960a69531ee", + "dac_private_key": "e7a54b2eb24925f20a5c15ee9e9ee93b08663749818c67454a83da1e2ce5fdfb", + "dac_public_key": "044c4286ec898c7b719a98fa2dc37a0a27469fd8bff34738061b1a56eba8741b8434dafeb6a67c45dd1c82637fc8bc4f8eabb4d6e9098afe6930df55a5bf75605a" +} diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/cd.der b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/cd.der new file mode 100644 index 00000000000000..20a4845d4c1bed Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..cb5bffc9bb86dc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..9d2e32a59e957c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIOcveKos3EAEwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +qBcgxPGSTuIQ2x/guluecckbm0yOlZwOzJRbZFR4YvzUcuFEw94jDR2a6AFm5POl +xsn0Ig5I13HpkIj4Tm+LhaNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFNCc2Ta4XjZtQRzjLgxTinokz66TMB8GA1UdIwQYMBaAFFIx +uWZtvLQagstrf5guwol+Lv8sMAoGCCqGSM49BAMCA0kAMEYCIQCaVz9lresSBbSv +mouQnFEl8Q9HXybeYDL/FIxdijAhIwIhAKXkkQ46opHQAFxEtbeAyMvAozZhDodz +zmbHFLLlGaxV +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Key.der new file mode 100644 index 00000000000000..9452cc73438031 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..90ba8af8a49668 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPrOE+FinVLoBLe3SNFj+Bw7HUjlGghqXYuNOx984AiEoAoGCCqGSM49 +AwEHoUQDQgAEqBcgxPGSTuIQ2x/guluecckbm0yOlZwOzJRbZFR4YvzUcuFEw94j +DR2a6AFm5POlxsn0Ig5I13HpkIj4Tm+LhQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..2e4e85de7213e7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..4a8541a5817142 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIImMHXt/Sm7kwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ7VVk7W+vm0/R56RyGd9VVF2tyY71d +/ScRvFDZd1Plr1eRDS0jnWkK5LEbaLYwzXBNnxn05s1Th55xFJXeUwW+o2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUUjG5 +Zm28tBqCy2t/mC7CiX4u/ywwHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIgDX4kD8hB7Xq8o5JHvrpV4MXxTeeojhxy04FJ +XDAD3+ECIQC5YrjY806+enx/ZuvnLiA11B06+6qaXih5Y8DPVEaXCA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Key.der new file mode 100644 index 00000000000000..449857cad1fc89 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..829baf3b07a2c8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIG9hXzdH3bCO6bVabRCZbj1Z1atyQCvieVoeqK8BllqioAoGCCqGSM49 +AwEHoUQDQgAEO1VZO1vr5tP0eekchnfVVRdrcmO9Xf0nEbxQ2XdT5a9XkQ0tI51p +CuSxG2i2MM1wTZ8Z9ObNU4eecRSV3lMFvg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..171239421fe7a3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The vendor_id field doesn't match the VID in DAC.", + "is_success_case": "false", + "dac_cert": "308201e53082018aa003020102020839cbde2a8b371001300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004a81720c4f1924ee210db1fe0ba5b9e71c91b9b4c8e959c0ecc945b64547862fcd472e144c3de230d1d9ae80166e4f3a5c6c9f4220e48d771e99088f84e6f8b85a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414d09cd936b85e366d411ce32e0c538a7a24cfae93301f0603551d230418301680145231b9666dbcb41a82cb6b7f982ec2897e2eff2c300a06082a8648ce3d04030203490030460221009a573f65adeb1205b4af9a8b909c5125f10f475f26de6032ff148c5d8a302123022100a5e4910e3aa291d0005c44b5b780c8cbc0a336610e8773ce66c714b2e519ac55", + "pai_cert": "308201d43082017aa00302010202082263075edfd29bb9300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200043b55593b5bebe6d3f479e91c8677d555176b7263bd5dfd2711bc50d97753e5af57910d2d239d690ae4b11b68b630cd704d9f19f4e6cd53879e711495de5305bea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604145231b9666dbcb41a82cb6b7f982ec2897e2eff2c301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502200d7e240fc841ed7abca39247beba55e0c5f14de7a88e1c72d381495c3003dfe1022100b962b8d8f34ebe7a7c7f66ebe72e2035d41d3afbaa9a5e287963c0cf54469708", + "certification_declaration": "3082010206092a864886f70d010702a081f43081f1020103310d300b0609608648016503040201305d06092a864886f70d010701a050044e1520000124010e360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044830460221009cecb327c1f8141a190c77233f8ddc79bdd635580285dfee6abb9add2a0751bc022100ff6974085a48755d75e50a221106382d2bf622c6ed4624603e7c11f0cc20c579", + "dac_private_key": "face13e1629d52e804b7b748d163f81c3b1d48e51a086a5d8b8d3b1f7ce00884", + "dac_public_key": "04a81720c4f1924ee210db1fe0ba5b9e71c91b9b4c8e959c0ecc945b64547862fcd472e144c3de230d1d9ae80166e4f3a5c6c9f4220e48d771e99088f84e6f8b85" +} diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/cd.der b/credentials/development/commissioner_dut/struct_cd_vid_missing/cd.der new file mode 100644 index 00000000000000..b6452ee41ad238 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Cert.der new file mode 100644 index 00000000000000..5132070338072f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Cert.pem new file mode 100644 index 00000000000000..0bb0f9dfcc9c66 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB5TCCAYqgAwIBAgIIHbs1hdjFASgwCgYIKoZIzj0EAwIwRjEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQB +gqJ8AgIMBDgwMDAwIBcNMjIwNTEzMDAwMDAwWhgPOTk5OTEyMzEyMzU5NTlaMEYx +GDAWBgNVBAMMD01hdHRlciBUZXN0IERBQzEUMBIGCisGAQQBgqJ8AgEMBEZGRjEx +FDASBgorBgEEAYKifAICDAQ4MDAwMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE +LjFgARXP0wJXRAgfJfyWYvK4U9SiqWnxRzOeAQOl3jl40x/nlqPv3IlgVrzKaGsE +DMEEtfd4hhAWdtgJTwb8rKNgMF4wDAYDVR0TAQH/BAIwADAOBgNVHQ8BAf8EBAMC +B4AwHQYDVR0OBBYEFHwcLKfGMWrIa2SG8Sc32dX0GscZMB8GA1UdIwQYMBaAFKIO ++2+8IEGWiSZ1zAr6iUUOydodMAoGCCqGSM49BAMCA0kAMEYCIQClecTPeX6U/DC4 +NDj0c9iwWdc6LXfhWRsyfsA2y1ZD5gIhAPcS16cJQibQktHuKwqxMvfTLVT7zHvm +gCBz26V+lGE5 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Key.der new file mode 100644 index 00000000000000..a00d6d544befea Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Key.pem new file mode 100644 index 00000000000000..06bf6d8b5c6c2e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJ5eTIvmcjtQxy39ymUdqxu5KiqpIjQjC4fJr3PX2YO8oAoGCCqGSM49 +AwEHoUQDQgAELjFgARXP0wJXRAgfJfyWYvK4U9SiqWnxRzOeAQOl3jl40x/nlqPv +3IlgVrzKaGsEDMEEtfd4hhAWdtgJTwb8rA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Cert.der new file mode 100644 index 00000000000000..e25929dc44fbc1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Cert.pem new file mode 100644 index 00000000000000..4d153408fbf70d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB1DCCAXqgAwIBAgIIXGvLy9D1Wl0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA1MTMw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT+ybj1bdHukJD1cABOikqqXqYomVjp +lVn+sUiigOJcXbNYKbJWbhO/9S8SR7GCNhCaH3GuEjYl8GOBaqkLocEXo2YwZDAS +BgNVHRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUog77 +b7wgQZaJJnXMCvqJRQ7J2h0wHwYDVR0jBBgwFoAUav0idx9RH+y/FkGXZxDc3DGh +cX4wCgYIKoZIzj0EAwIDSAAwRQIhAKtFAWA4LM3z1FP2JG/TonZiCb/MU+1sYCCB +Lg7Jm872AiB+E51+Ks6uH3x1krVbkG4KhF41DgqKcClpTxfOHcUnCg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Key.der new file mode 100644 index 00000000000000..0b976abc509635 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Key.pem new file mode 100644 index 00000000000000..aab61d2626282a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEILmE3YnU63W5wwebUEknJI/cmF+ZrodL4DwzxWSa8xMioAoGCCqGSM49 +AwEHoUQDQgAE/sm49W3R7pCQ9XAATopKql6mKJlY6ZVZ/rFIooDiXF2zWCmyVm4T +v/UvEkexgjYQmh9xrhI2JfBjgWqpC6HBFw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_cd_vid_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_cd_vid_missing/test_case_vector.json new file mode 100644 index 00000000000000..478805ef0f0ab8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_cd_vid_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "CD Test Vector: The vendor_id field is missing.", + "is_success_case": "false", + "dac_cert": "308201e53082018aa00302010202081dbb3585d8c50128300a06082a8648ce3d04030230463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200042e31600115cfd3025744081f25fc9662f2b853d4a2a969f147339e0103a5de3978d31fe796a3efdc896056bcca686b040cc104b5f77886101676d8094f06fcaca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604147c1c2ca7c6316ac86b6486f12737d9d5f41ac719301f0603551d23041830168014a20efb6fbc204196892675cc0afa89450ec9da1d300a06082a8648ce3d0403020349003046022100a579c4cf797e94fc30b83438f473d8b059d73a2d77e1591b327ec036cb5643e6022100f712d7a7094226d092d1ee2b0ab132f7d32d54fbcc7be6802073dba57e946139", + "pai_cert": "308201d43082017aa00302010202085c6bcbcbd0f55a5d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303531333030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004fec9b8f56dd1ee9090f570004e8a4aaa5ea6289958e99559feb148a280e25c5db35829b2566e13bff52f1247b18236109a1f71ae123625f063816aa90ba1c117a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414a20efb6fbc204196892675cc0afa89450ec9da1d301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100ab450160382ccdf3d453f6246fd3a2766209bfcc53ed6c6020812e0ec99bcef602207e139d7e2aceae1f7c7592b55b906e0a845e350e0a8a7029694f17ce1dc5270a", + "certification_declaration": "3081fe06092a864886f70d010702a081f03081ed020103310d300b0609608648016503040201305a06092a864886f70d010701a04d044b15200001360205008018250334122c04135a494732303134315a423333303030312d323424050024060025077698240800360b10140b44cabbc5016577aa8b44ffb90fcca140fe66201818317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100a0bb8249ec19b7419523402f61f27098c7784af5905870db932ba9d2f5deddd102203e80686ac1ee9b0735d6784b2cf9338e21c8485374aff30b1a676c121f477c38", + "dac_private_key": "9e5e4c8be6723b50c72dfdca651dab1bb92a2aa92234230b87c9af73d7d983bc", + "dac_public_key": "042e31600115cfd3025744081f25fc9662f2b853d4a2a969f147339e0103a5de3978d31fe796a3efdc896056bcca686b040cc104b5f77886101676d8094f06fcac" +} diff --git a/src/tools/chip-cert/Cmd_GenAttCert.cpp b/src/tools/chip-cert/Cmd_GenAttCert.cpp index 6c98076c1fd4c5..c91ce8bee6e735 100644 --- a/src/tools/chip-cert/Cmd_GenAttCert.cpp +++ b/src/tools/chip-cert/Cmd_GenAttCert.cpp @@ -58,8 +58,8 @@ OptionDef gCmdOptionDefs[] = { "valid-from", kArgumentRequired, 'f' }, { "lifetime", kArgumentRequired, 'l' }, #if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES - { "ignore-error", kNoArgument, 'i' }, - { "error-type", kArgumentRequired, 'e' }, + { "ignore-error", kNoArgument, 'I' }, + { "error-type", kArgumentRequired, 'E' }, #endif { } }; @@ -124,14 +124,14 @@ const char * const gCmdOptionHelp = " expiration date\n" "\n" #if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES - " -i, --ignore-error\n" + " -I, --ignore-error\n" "\n" " Ignore some input parameters error.\n" " WARNING: This option makes it possible to circumvent attestation certificate\n" " structure requirement. This is required for negative testing of the attestation flow.\n" " Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.\n" "\n" - " -e, --error-type \n" + " -E, --error-type \n" "\n" " When specified injects specific error into the structure of generated attestation certificate.\n" " Note that 'ignore-error' option MUST be specified for this error injection to take effect.\n" @@ -290,10 +290,10 @@ bool HandleOption(const char * progName, OptionSet * optSet, int id, const char } break; #if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES - case 'i': + case 'I': gCertConfig.EnableErrorTestCase(); break; - case 'e': + case 'E': if (strcmp(arg, "cert-version") == 0) { gCertConfig.SetCertVersionWrong(); @@ -437,7 +437,8 @@ bool Cmd_GenAttCert(int argc, char * argv[]) if (gCertConfig.IsErrorTestCaseEnabled()) { fprintf(stderr, - "WARNING: The ignor-error option is set. This option makes it possible to generate invalid certificates.\n"); + "WARNING get-att-cert: The ignor-error option is set. This option makes it possible to generate invalid " + "certificates.\n"); } if (gAttCertType == kAttCertType_NotSpecified) diff --git a/src/tools/chip-cert/Cmd_GenCD.cpp b/src/tools/chip-cert/Cmd_GenCD.cpp index 9ad04df56ac652..e0534c7f8f4e8d 100644 --- a/src/tools/chip-cert/Cmd_GenCD.cpp +++ b/src/tools/chip-cert/Cmd_GenCD.cpp @@ -31,12 +31,16 @@ #include +#include + namespace { using namespace chip; +using namespace chip::ASN1; using namespace chip::ArgParser; using namespace chip::Credentials; using namespace chip::Crypto; +using namespace chip::TLV; #define CMD_NAME "chip-cert gen-cd" @@ -60,6 +64,10 @@ OptionDef gCmdOptionDefs[] = { "dac-origin-vendor-id", kArgumentRequired, 'o' }, { "dac-origin-product-id", kArgumentRequired, 'r' }, { "authorized-paa-cert", kArgumentRequired, 'a' }, +#if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES + { "ignore-error", kNoArgument, 'I' }, + { "error-type", kArgumentRequired, 'E' }, +#endif { } }; @@ -137,6 +145,68 @@ const char * const gCmdOptionHelp = " Note that only the Subject Key Identifier (SKID) value will be extracted\n" " from the PAA certificate and put into CD Structure.\n" "\n" +#if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES + " -I, --ignore-error\n" + "\n" + " Ignore some input parameters error.\n" + " WARNING: This option makes it possible to circumvent Certification Declaration\n" + " structure/parameter requirement. This is required for negative testing of the attestation flow.\n" + " Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.\n" + "\n" + " -E, --error-type \n" + "\n" + " When specified injects specific error into the structure of generated Certification Declaration.\n" + " Note that 'ignore-error' option MUST be specified for this error injection to take effect.\n" + " Supported error types that can be injected are:\n" + " no-error - No error to inject.\n" + " format-version-missing - The CD TLV structure won't have format version field.\n" + " format-version-wrong - Format version will be set to 2 instead of required 1.\n" + " vid-missing - The CD TLV structure won't have vedor_id field.\n" + " vid-mismatch - The vendor_id field will have value that doesn't match the VID in DAC.\n" + " pid-array-missing - The CD TLV structure won't have product_id_array field.\n" + " pid-array-count0 - The product_id_array will be empty.\n" + " pid-array-count01-valid - The product_id_array field will have one valid PID value.\n" + " pid-array-count01-mismatch - The product_id_array field will have one PID value that doesn't match PID in DAC.\n" + " pid-array-count10-valid - The product_id_array field will have 10 PID values one of which is valid matches PID in DAC.\n" + " pid-array-count10-mismatch - The product_id_array field will have 10 PID values none of which matches the PID in DAC.\n" + " pid-array-count100-valid - The product_id_array field will have 100 PID values one of which is valid matches PID in DAC.\n" + " pid-array-count100-mismatch - The product_id_array field will have 100 PID values none of which matches the PID in DAC.\n" + " device-type-id-missing - The CD TLV structure won't have device_type_id field.\n" + " device-type-id-mismatch - device_type_id field won't match the value in the DCL entries associated with the VID and PID.\n" + " cert-id-missing - The CD TLV structure won't have certificate_id field.\n" + " cert-id-mismatch - The certificate_id field will contain value NOT allocated by the CSA.\n" + " cert-id-len-wrong - The certificate_id field will be truncated to have invalid length.\n" + " security-level-missing - The CD TLV structure won't have security_level field.\n" + " security-level-wrong - The security_level field will be set to invalid value (different from 0).\n" + " security-info-missing - The CD TLV structure won't have security_information field.\n" + " security-info-wrong - The security_information field will be set to invalid value (different from 0).\n" + " version-number-missing - The CD TLV structure won't have version_number field.\n" + " version-number-wrong - The version_number field will contain value NOT assigned by the CSA.\n" + " cert-type-missing - The CD TLV structure won't have certification_type field.\n" + " cert-type-wrong - The certification_type field will contain invalue value.\n" + " dac-origin-vid-present - The CD TLV structure will include optional dac_origin_vid field.\n" + " dac-origin-pid-present - The CD TLV structure will include optional dac_origin_pid field.\n" + " dac-origin-vid-pid-present - The CD TLV structure will include optional dac_origin_vid and dac_origin_pid fields.\n" + " dac-origin-vid-mismatch - The optional dac_origin_vid field will be present and won't match the VID in DAC.\n" + " dac-origin-pid-mismatch - The optional dac_origin_pid field will be present and won't match the PID in DAC.\n" + " authorized-paa-list-count0 - The authorized_paa_list will be empty TLV list.\n" + " authorized-paa-list-count1-valid - The authorized_paa_list will have one valid value.\n" + " authorized-paa-list-count2-valid - The authorized_paa_list will have two elements one of which is valid.\n" + " authorized-paa-list-count3-invalid - The authorized_paa_list will have three elements none of which is valid.\n" + " authorized-paa-list-count10-valid - The authorized_paa_list will have ten elements one of which is valid.\n" + " authorized-paa-list-count10-invalid- The authorized_paa_list will have ten elements none of which is valid.\n" + " signer-info-v2 - Signer Info version will be set to v2 instead of required v3.\n" + " signer-info-digest-algo - Use Signer Info SHA1 digest algorithm instead of required SHA256.\n" + " signer-info-skid - Inject error into SKID of a Signer Info signing certificate.\n" + " cms-v2 - CMS version will be set to v2 instead of required v3.\n" + " cms-digest-algo - Use SHA1 digest algorithm instead of required SHA256.\n" + " cms-sig-algo - Use ecdsa-with-SHA1 signature algorithm instead of required ecdsa-with-SHA256.\n" + " required secp256r1 (aka prime256v1).\n" + " cms-econtent-type - CMS eContentType is set to Microsoft Authenticode [MSAC] ( OID = { 1.3.6.1.4.1.311.2.1.4 } )\n" + " instead of required pkcs7_data.\n" + " cms-sig - Inject error into CMS signature.\n" + "\n" +#endif ; OptionSet gCmdOptions = @@ -162,10 +232,138 @@ OptionSet *gCmdOptionSets[] = }; // clang-format on +/** Certification Declaration Error and Configuration Flags + * + * By default all methods (if none of the class setters were used) return valid + * certification declaration configuration parameter as described in the spec. + * These parameters can be modified to inject errors into cd structure. + */ +class CDStructConfig +{ +public: + void EnableErrorTestCase() { mEnabled = true; } + void SetFormatVersionMissing() { mFlags.Set(CDConfigFlags::kFormatVersionMissing); } + void SetFormatVersionWrong() { mFlags.Set(CDConfigFlags::kFormatVersionWrong); } + void SetVIDMissing() { mFlags.Set(CDConfigFlags::kVIDMissing); } + void SetVIDWrong() { mFlags.Set(CDConfigFlags::kVIDWrong); } + void SetPIDArrayMissing() { mFlags.Set(CDConfigFlags::kPIDArrayMissing); } + void SetPIDArrayWrong() { mFlags.Set(CDConfigFlags::kPIDArrayWrong); } + void SetPIDArrayCount(uint8_t pidArrayCount) { mPIDArrayCount = pidArrayCount; } + void SetDeviceTypeIdMissing() { mFlags.Set(CDConfigFlags::kDeviceTypeIdMissing); } + void SetDeviceTypeIdWrong() { mFlags.Set(CDConfigFlags::kDeviceTypeIdWrong); } + void SetCertIdMissing() { mFlags.Set(CDConfigFlags::kCertIdMissing); } + void SetCertIdWrong() { mFlags.Set(CDConfigFlags::kCertIdWrong); } + void SetCertIdLenWrong() { mFlags.Set(CDConfigFlags::kCertIdLenWrong); } + void SetSecurityLevelMissing() { mFlags.Set(CDConfigFlags::kSecurityLevelMissing); } + void SetSecurityLevelWrong() { mFlags.Set(CDConfigFlags::kSecurityLevelWrong); } + void SetSecurityInfoMissing() { mFlags.Set(CDConfigFlags::kSecurityInfoMissing); } + void SetSecurityInfoWrong() { mFlags.Set(CDConfigFlags::kSecurityInfoWrong); } + void SetVersionNumberMissing() { mFlags.Set(CDConfigFlags::kVersionNumberMissing); } + void SetVersionNumberWrong() { mFlags.Set(CDConfigFlags::kVersionNumberWrong); } + void SetCertTypeMissing() { mFlags.Set(CDConfigFlags::kCertTypeMissing); } + void SetCertTypeWrong() { mFlags.Set(CDConfigFlags::kCertTypeWrong); } + void SetDACOriginVIDWrong() { mFlags.Set(CDConfigFlags::kDACOriginVID); } + void SetDACOriginPIDWrong() { mFlags.Set(CDConfigFlags::kDACOriginPID); } + void SetDACOriginVIDPresent() { mFlags.Set(CDConfigFlags::kDACOriginVIDPresent); } + void SetDACOriginPIDPresent() { mFlags.Set(CDConfigFlags::kDACOriginPIDPresent); } + void SetAuthPAAListPresent() { mFlags.Set(CDConfigFlags::kAuthPAAListPresent); } + void SetAuthPAAListWrong() { mFlags.Set(CDConfigFlags::kAuthPAAListWrong); } + void SetAuthPAAListCount(uint8_t authPAAListCount) { mAuthPAAListCount = authPAAListCount; } + void SetSignerInfoVersionWrong() { mFlags.Set(CDConfigFlags::kSignerInfoVersion); } + void SetSignerInfoDigestAlgoWrong() { mFlags.Set(CDConfigFlags::kSignerInfoDigestAlgo); } + void SetSignerInfoSKIDWrong() { mFlags.Set(CDConfigFlags::kSignerInfoSKID); } + void SetCMSVersionWrong() { mFlags.Set(CDConfigFlags::kCMSVersion); } + void SetCMSDigestAlgoWrong() { mFlags.Set(CDConfigFlags::kCMSDigestAlgo); } + void SetCMSSigAlgoWrong() { mFlags.Set(CDConfigFlags::kCMSSigAlgo); } + void SetCMSEContentTypeWrong() { mFlags.Set(CDConfigFlags::kCMSEContentType); } + void SetCMSSignatureWrong() { mFlags.Set(CDConfigFlags::kCMSSignature); } + + bool IsErrorTestCaseEnabled() { return mEnabled; } + bool IsFormatVersionPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kFormatVersionMissing)); } + int GetFormatVersion() { return (mEnabled && mFlags.Has(CDConfigFlags::kFormatVersionWrong)) ? 2 : 1; } + bool IsVIDPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kVIDMissing)); } + bool IsVIDCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kVIDWrong)); } + bool IsPIDArrayPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kPIDArrayMissing)); } + bool IsPIDArrayCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kPIDArrayWrong)); } + uint8_t GetPIDArrayCount() const { return mPIDArrayCount; } + bool IsDeviceTypeIdPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kDeviceTypeIdMissing)); } + bool IsDeviceTypeIdCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kDeviceTypeIdWrong)); } + bool IsCertIdPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCertIdMissing)); } + bool IsCertIdCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCertIdWrong)); } + bool IsCertIdLenCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCertIdLenWrong)); } + bool IsSecurityLevelPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kSecurityLevelMissing)); } + bool IsSecurityLevelCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kSecurityLevelWrong)); } + bool IsSecurityInfoPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kSecurityInfoMissing)); } + bool IsSecurityInfoCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kSecurityInfoWrong)); } + bool IsVersionNumberPresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kVersionNumberMissing)); } + bool IsVersionNumberCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kVersionNumberWrong)); } + bool IsCertTypePresent() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCertTypeMissing)); } + bool IsCertTypeCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCertTypeWrong)); } + bool IsDACOriginVIDCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kDACOriginVID)); } + bool IsDACOriginPIDCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kDACOriginPID)); } + bool IsDACOriginVIDPresent() { return (mEnabled && mFlags.Has(CDConfigFlags::kDACOriginVIDPresent)); } + bool IsDACOriginPIDPresent() { return (mEnabled && mFlags.Has(CDConfigFlags::kDACOriginPIDPresent)); } + bool IsAuthPAAListPresent() { return (mEnabled || mFlags.Has(CDConfigFlags::kAuthPAAListPresent)); } + bool IsAuthPAAListCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kAuthPAAListWrong)); } + uint8_t GetAuthPAAListCount() const { return mAuthPAAListCount; } + bool IsSignerInfoVersionCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kSignerInfoVersion)); } + bool IsSignerInfoDigestAlgoCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kSignerInfoDigestAlgo)); } + bool IsSignerInfoSKIDCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kSignerInfoSKID)); } + bool IsCMSVersionCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCMSVersion)); } + bool IsCMSDigestAlgoCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCMSDigestAlgo)); } + bool IsCMSSigAlgoCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCMSSigAlgo)); } + bool IsCMSEContentTypeCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCMSEContentType)); } + bool IsCMSSignatureCorrect() { return (!mEnabled || !mFlags.Has(CDConfigFlags::kCMSSignature)); } + +private: + enum class CDConfigFlags : uint64_t + { + kFormatVersionMissing = 0x0000000000000001, + kFormatVersionWrong = 0x0000000000000002, + kVIDMissing = 0x0000000000000004, + kVIDWrong = 0x0000000000000008, + kPIDArrayMissing = 0x0000000000000010, + kPIDArrayWrong = 0x0000000000000020, + kDeviceTypeIdMissing = 0x0000000000000040, + kDeviceTypeIdWrong = 0x0000000000000080, + kCertIdMissing = 0x0000000000000100, + kCertIdWrong = 0x0000000000000200, + kCertIdLenWrong = 0x0000000000000400, + kSecurityLevelMissing = 0x0000000000000800, + kSecurityLevelWrong = 0x0000000000001000, + kSecurityInfoMissing = 0x0000000000002000, + kSecurityInfoWrong = 0x0000000000004000, + kVersionNumberMissing = 0x0000000000008000, + kVersionNumberWrong = 0x0000000000010000, + kCertTypeMissing = 0x0000000000020000, + kCertTypeWrong = 0x0000000000040000, + kDACOriginVID = 0x0000000000080000, + kDACOriginPID = 0x0000000000100000, + kDACOriginVIDPresent = 0x0000000000200000, + kDACOriginPIDPresent = 0x0000000000400000, + kAuthPAAListPresent = 0x0000000000800000, + kAuthPAAListWrong = 0x0000000001000000, + kSignerInfoVersion = 0x0000000002000000, + kSignerInfoDigestAlgo = 0x0000000004000000, + kSignerInfoSKID = 0x0000000008000000, + kCMSVersion = 0x0000000010000000, + kCMSDigestAlgo = 0x0000000020000000, + kCMSSigAlgo = 0x0000000040000000, + kCMSEContentType = 0x0000000080000000, + kCMSSignature = 0x0000000100000000, + }; + + bool mEnabled = false; + chip::BitFlags mFlags; + uint8_t mPIDArrayCount = 1; + uint8_t mAuthPAAListCount = 1; +}; + CertificationElements gCertElements; const char * gCertFileName = nullptr; const char * gKeyFileName = nullptr; const char * gSignedCDFileName = nullptr; +CDStructConfig gCDConfig; bool ExtractSKIDFromX509Cert(X509 * cert, ByteSpan & skid) { @@ -294,6 +492,210 @@ bool HandleOption(const char * progName, OptionSet * optSet, int id, const char memcpy(gCertElements.AuthorizedPAAList[gCertElements.AuthorizedPAAListCount++], skid.data(), skid.size()); } break; +#if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES + case 'I': + gCDConfig.EnableErrorTestCase(); + break; + case 'E': + if (strcmp(arg, "format-version-missing") == 0) + { + gCDConfig.SetFormatVersionMissing(); + } + else if (strcmp(arg, "format-version-wrong") == 0) + { + gCDConfig.SetFormatVersionWrong(); + } + else if (strcmp(arg, "vid-missing") == 0) + { + gCDConfig.SetVIDMissing(); + } + else if (strcmp(arg, "vid-mismatch") == 0) + { + gCDConfig.SetVIDWrong(); + } + else if (strcmp(arg, "pid-array-missing") == 0) + { + gCDConfig.SetPIDArrayMissing(); + } + else if (strcmp(arg, "pid-array-count0") == 0) + { + gCDConfig.SetPIDArrayCount(0); + } + else if (strcmp(arg, "pid-array-count01-valid") == 0) + { + gCDConfig.SetPIDArrayCount(1); + } + else if (strcmp(arg, "pid-array-count01-mismatch") == 0) + { + gCDConfig.SetPIDArrayCount(1); + gCDConfig.SetPIDArrayWrong(); + } + else if (strcmp(arg, "pid-array-count10-valid") == 0) + { + gCDConfig.SetPIDArrayCount(10); + } + else if (strcmp(arg, "pid-array-count10-mismatch") == 0) + { + gCDConfig.SetPIDArrayCount(10); + gCDConfig.SetPIDArrayWrong(); + } + else if (strcmp(arg, "pid-array-count100-valid") == 0) + { + gCDConfig.SetPIDArrayCount(100); + } + else if (strcmp(arg, "pid-array-count100-mismatch") == 0) + { + gCDConfig.SetPIDArrayCount(100); + gCDConfig.SetPIDArrayWrong(); + } + else if (strcmp(arg, "device-type-id-missing") == 0) + { + gCDConfig.SetDeviceTypeIdMissing(); + } + else if (strcmp(arg, "device-type-id-mismatch") == 0) + { + gCDConfig.SetDeviceTypeIdWrong(); + } + else if (strcmp(arg, "cert-id-missing") == 0) + { + gCDConfig.SetCertIdMissing(); + } + else if (strcmp(arg, "cert-id-mismatch") == 0) + { + gCDConfig.SetCertIdWrong(); + } + else if (strcmp(arg, "cert-id-len-wrong") == 0) + { + gCDConfig.SetCertIdLenWrong(); + } + else if (strcmp(arg, "security-level-missing") == 0) + { + gCDConfig.SetSecurityLevelMissing(); + } + else if (strcmp(arg, "security-level-wrong") == 0) + { + gCDConfig.SetSecurityLevelWrong(); + } + else if (strcmp(arg, "security-info-missing") == 0) + { + gCDConfig.SetSecurityInfoMissing(); + } + else if (strcmp(arg, "security-info-wrong") == 0) + { + gCDConfig.SetSecurityInfoWrong(); + } + else if (strcmp(arg, "version-number-missing") == 0) + { + gCDConfig.SetVersionNumberMissing(); + } + else if (strcmp(arg, "version-number-wrong") == 0) + { + gCDConfig.SetVersionNumberWrong(); + } + else if (strcmp(arg, "cert-type-missing") == 0) + { + gCDConfig.SetCertTypeMissing(); + } + else if (strcmp(arg, "cert-type-wrong") == 0) + { + gCDConfig.SetCertTypeWrong(); + } + else if (strcmp(arg, "dac-origin-vid-present") == 0) + { + gCDConfig.SetDACOriginVIDPresent(); + } + else if (strcmp(arg, "dac-origin-pid-present") == 0) + { + gCDConfig.SetDACOriginPIDPresent(); + } + else if (strcmp(arg, "dac-origin-vid-pid-present") == 0) + { + gCDConfig.SetDACOriginVIDPresent(); + gCDConfig.SetDACOriginPIDPresent(); + } + else if (strcmp(arg, "dac-origin-vid-mismatch") == 0) + { + gCDConfig.SetDACOriginVIDPresent(); + gCDConfig.SetDACOriginPIDPresent(); + gCDConfig.SetDACOriginVIDWrong(); + } + else if (strcmp(arg, "dac-origin-pid-mismatch") == 0) + { + gCDConfig.SetDACOriginVIDPresent(); + gCDConfig.SetDACOriginPIDPresent(); + gCDConfig.SetDACOriginPIDWrong(); + } + else if (strcmp(arg, "authorized-paa-list-count0") == 0) + { + gCDConfig.SetAuthPAAListPresent(); + gCDConfig.SetAuthPAAListCount(0); + } + else if (strcmp(arg, "authorized-paa-list-count1-valid") == 0) + { + gCDConfig.SetAuthPAAListPresent(); + gCDConfig.SetAuthPAAListCount(1); + } + else if (strcmp(arg, "authorized-paa-list-count2-valid") == 0) + { + gCDConfig.SetAuthPAAListPresent(); + gCDConfig.SetAuthPAAListCount(2); + } + else if (strcmp(arg, "authorized-paa-list-count3-invalid") == 0) + { + gCDConfig.SetAuthPAAListCount(3); + gCDConfig.SetAuthPAAListPresent(); + gCDConfig.SetAuthPAAListWrong(); + } + else if (strcmp(arg, "authorized-paa-list-count10-valid") == 0) + { + gCDConfig.SetAuthPAAListPresent(); + gCDConfig.SetAuthPAAListCount(10); + } + else if (strcmp(arg, "authorized-paa-list-count10-invalid") == 0) + { + gCDConfig.SetAuthPAAListCount(10); + gCDConfig.SetAuthPAAListPresent(); + gCDConfig.SetAuthPAAListWrong(); + } + else if (strcmp(arg, "signer-info-v2") == 0) + { + gCDConfig.SetSignerInfoVersionWrong(); + } + else if (strcmp(arg, "signer-info-digest-algo") == 0) + { + gCDConfig.SetSignerInfoDigestAlgoWrong(); + } + else if (strcmp(arg, "signer-info-skid") == 0) + { + gCDConfig.SetSignerInfoSKIDWrong(); + } + else if (strcmp(arg, "cms-v2") == 0) + { + gCDConfig.SetCMSVersionWrong(); + } + else if (strcmp(arg, "cms-digest-algo") == 0) + { + gCDConfig.SetCMSDigestAlgoWrong(); + } + else if (strcmp(arg, "cms-sig-algo") == 0) + { + gCDConfig.SetCMSSigAlgoWrong(); + } + else if (strcmp(arg, "cms-econtent-type") == 0) + { + gCDConfig.SetCMSEContentTypeWrong(); + } + else if (strcmp(arg, "cms-sig") == 0) + { + gCDConfig.SetCMSSignatureWrong(); + } + else if (strcmp(arg, "no-error") != 0) + { + PrintArgError("%s: Invalid value specified for the error type: %s\n", progName, arg); + return false; + } + break; +#endif default: PrintArgError("%s: Unhandled option: %s\n", progName, name); return false; @@ -302,6 +704,381 @@ bool HandleOption(const char * progName, OptionSet * optSet, int id, const char return true; } +static constexpr uint8_t sOID_ContentType_PKCS7Data[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01 }; +static constexpr uint8_t sOID_ContentType_MSAC[] = { 0x06, 0x0A, 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04 }; +static constexpr uint8_t sOID_ContentType_PKCS7SignedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02 }; +static constexpr uint8_t sOID_DigestAlgo_SHA256[] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01 }; +static constexpr uint8_t sOID_DigestAlgo_SHA1[] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A }; +static constexpr uint8_t sOID_SigAlgo_ECDSAWithSHA1[] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x04, 0x01 }; + +/** Certification Declaration Element TLV Tags + */ +enum +{ + kTag_FormatVersion = 0, /**< [ unsigned int ] Format version. */ + kTag_VendorId = 1, /**< [ unsigned int ] Vedor identifier. */ + kTag_ProductIdArray = 2, /**< [ array ] Product identifiers (each is unsigned int). */ + kTag_DeviceTypeId = 3, /**< [ unsigned int ] Device Type identifier. */ + kTag_CertificateId = 4, /**< [ UTF-8 string, length 19 ] Certificate identifier. */ + kTag_SecurityLevel = 5, /**< [ unsigned int ] Security level. */ + kTag_SecurityInformation = 6, /**< [ unsigned int ] Security information. */ + kTag_VersionNumber = 7, /**< [ unsigned int ] Version number. */ + kTag_CertificationType = 8, /**< [ unsigned int ] Certification Type. */ + kTag_DACOriginVendorId = 9, /**< [ unsigned int, optional ] DAC origin vendor identifier. */ + kTag_DACOriginProductId = 10, /**< [ unsigned int, optional ] DAC origin product identifier. */ + kTag_AuthorizedPAAList = 11, /**< [ array, optional ] Authorized PAA List. */ +}; + +CHIP_ERROR EncodeCertificationElements_Ignore_Error(const CertificationElements & certElements, + MutableByteSpan & encodedCertElements, CDStructConfig & cdConfig) +{ + TLVWriter writer; + TLVType outerContainer1, outerContainer2; + + writer.Init(encodedCertElements); + + ReturnErrorOnFailure(writer.StartContainer(AnonymousTag(), kTLVType_Structure, outerContainer1)); + + if (cdConfig.IsFormatVersionPresent()) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_FormatVersion), cdConfig.GetFormatVersion())); + } + if (cdConfig.IsVIDPresent()) + { + if (cdConfig.IsVIDCorrect()) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_VendorId), certElements.VendorId)); + } + else + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_VendorId), static_cast(certElements.VendorId ^ UINT16_MAX))); + } + } + if (cdConfig.IsPIDArrayPresent()) + { + ReturnErrorOnFailure(writer.StartContainer(ContextTag(kTag_ProductIdArray), kTLVType_Array, outerContainer2)); + uint16_t pid = + cdConfig.IsPIDArrayCorrect() ? certElements.ProductIds[0] : static_cast(certElements.ProductIds[0] + 1); + for (uint8_t i = 0; i < cdConfig.GetPIDArrayCount(); i++) + { + ReturnErrorOnFailure(writer.Put(AnonymousTag(), static_cast(pid++))); + } + ReturnErrorOnFailure(writer.EndContainer(outerContainer2)); + } + if (cdConfig.IsDeviceTypeIdPresent()) + { + if (cdConfig.IsDeviceTypeIdCorrect()) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_DeviceTypeId), certElements.DeviceTypeId)); + } + else + { + ReturnErrorOnFailure( + writer.Put(ContextTag(kTag_DeviceTypeId), static_cast(certElements.DeviceTypeId ^ UINT32_MAX))); + } + } + if (cdConfig.IsCertIdPresent()) + { + if (cdConfig.IsCertIdCorrect() && cdConfig.IsCertIdLenCorrect()) + { + ReturnErrorOnFailure(writer.PutString(ContextTag(kTag_CertificateId), certElements.CertificateId)); + } + else if (!cdConfig.IsCertIdCorrect()) + { + ReturnErrorOnFailure(writer.PutString(ContextTag(kTag_CertificateId), "INV20141ZB330001-24")); + } + else + { + std::string cert_id(certElements.CertificateId); + cert_id += "1234"; + ReturnErrorOnFailure(writer.PutString(ContextTag(kTag_CertificateId), cert_id.c_str())); + } + } + if (cdConfig.IsSecurityLevelPresent()) + { + if (cdConfig.IsSecurityLevelCorrect()) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_SecurityLevel), certElements.SecurityLevel)); + } + else + { + ReturnErrorOnFailure( + writer.Put(ContextTag(kTag_SecurityLevel), static_cast(certElements.SecurityLevel ^ UINT8_MAX))); + } + } + if (cdConfig.IsSecurityInfoPresent()) + { + if (cdConfig.IsSecurityInfoCorrect()) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_SecurityInformation), certElements.SecurityInformation)); + } + else + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_SecurityInformation), + static_cast(certElements.SecurityInformation ^ UINT16_MAX))); + } + } + if (cdConfig.IsVersionNumberPresent()) + { + if (cdConfig.IsVersionNumberCorrect()) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_VersionNumber), certElements.VersionNumber)); + } + else + { + ReturnErrorOnFailure( + writer.Put(ContextTag(kTag_VersionNumber), static_cast(certElements.VersionNumber ^ UINT16_MAX))); + } + } + if (cdConfig.IsCertTypePresent()) + { + if (cdConfig.IsCertTypeCorrect()) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_CertificationType), certElements.CertificationType)); + } + else + { + ReturnErrorOnFailure( + writer.Put(ContextTag(kTag_CertificationType), static_cast(certElements.CertificationType ^ UINT8_MAX))); + } + } + if (cdConfig.IsDACOriginVIDPresent()) + { + if (cdConfig.IsDACOriginVIDCorrect() && certElements.DACOriginVIDandPIDPresent) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_DACOriginVendorId), certElements.DACOriginVendorId)); + } + else + { + uint16_t wrong_dac_origin_vid = 0x8008; + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_DACOriginVendorId), wrong_dac_origin_vid)); + } + } + if (cdConfig.IsDACOriginPIDPresent()) + { + if (cdConfig.IsDACOriginPIDCorrect() && certElements.DACOriginVIDandPIDPresent) + { + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_DACOriginProductId), certElements.DACOriginProductId)); + } + else + { + uint16_t wrong_dac_origin_pid = 0xFF00; + ReturnErrorOnFailure(writer.Put(ContextTag(kTag_DACOriginProductId), wrong_dac_origin_pid)); + } + } + if (cdConfig.IsAuthPAAListPresent()) + { + ReturnErrorOnFailure(writer.StartContainer(ContextTag(kTag_AuthorizedPAAList), kTLVType_Array, outerContainer2)); + uint8_t wrong_kid[kKeyIdentifierLength] = { 0xF4, 0x44, 0xCA, 0xBB, 0xC5, 0x01, 0x65, 0x77, 0xAA, 0x8B, + 0x44, 0xFF, 0xB9, 0x0F, 0xCC, 0xA1, 0x40, 0xFE, 0x66, 0x20 }; + for (uint8_t i = 0; i < cdConfig.GetAuthPAAListCount(); i++) + { + if (cdConfig.IsAuthPAAListCorrect() && (i < certElements.AuthorizedPAAListCount)) + { + ReturnErrorOnFailure(writer.Put(AnonymousTag(), ByteSpan(certElements.AuthorizedPAAList[i]))); + } + else + { + wrong_kid[(i % kKeyIdentifierLength)] ^= 0xFF; + ReturnErrorOnFailure(writer.Put(AnonymousTag(), ByteSpan(wrong_kid))); + } + } + ReturnErrorOnFailure(writer.EndContainer(outerContainer2)); + } + + ReturnErrorOnFailure(writer.EndContainer(outerContainer1)); + + ReturnErrorOnFailure(writer.Finalize()); + + encodedCertElements.reduce_size(writer.GetLengthWritten()); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR EncodeEncapsulatedContent_Ignor_Error(const ByteSpan & cdContent, ASN1Writer & writer, CDStructConfig & cdConfig) +{ + /** + * EncapsulatedContentInfo ::= SEQUENCE { + * eContentType OBJECT IDENTIFIER pkcs7-data (1.2.840.113549.1.7.1), + * eContent [0] EXPLICIT OCTET STRING cd_content } + */ + CHIP_ERROR err = CHIP_NO_ERROR; + + ASN1_START_SEQUENCE + { + // eContentType OBJECT IDENTIFIER pkcs7-data (1.2.840.113549.1.7.1) + if (cdConfig.IsCMSEContentTypeCorrect()) + { + ReturnErrorOnFailure(writer.PutObjectId(sOID_ContentType_PKCS7Data, sizeof(sOID_ContentType_PKCS7Data))); + } + else + { + ReturnErrorOnFailure(writer.PutObjectId(sOID_ContentType_MSAC, sizeof(sOID_ContentType_MSAC))); + } + + // eContent [0] EXPLICIT OCTET STRING cd_content + ASN1_START_CONSTRUCTED(kASN1TagClass_ContextSpecific, 0) + { + // OCTET STRING cd_content + ReturnErrorOnFailure(writer.PutOctetString(cdContent.data(), static_cast(cdContent.size()))); + } + ASN1_END_CONSTRUCTED; + } + ASN1_END_SEQUENCE; + +exit: + return err; +} + +CHIP_ERROR EncodeSignerInfo_Ignor_Error(const ByteSpan & signerKeyId, const P256ECDSASignature & signature, ASN1Writer & writer, + CDStructConfig & cdConfig) +{ + /** + * SignerInfo ::= SEQUENCE { + * version INTEGER ( v3(3) ), + * subjectKeyIdentifier OCTET STRING, + * digestAlgorithm OBJECT IDENTIFIER sha256 (2.16.840.1.101.3.4.2.1), + * signatureAlgorithm OBJECT IDENTIFIER ecdsa-with-SHA256 (1.2.840.10045.4.3.2), + * signature OCTET STRING } + */ + CHIP_ERROR err = CHIP_NO_ERROR; + + ASN1_START_SET + { + ASN1_START_SEQUENCE + { + // version INTEGER ( v3(3) ) + ASN1_ENCODE_INTEGER(cdConfig.IsSignerInfoVersionCorrect() ? 3 : 2); + + // subjectKeyIdentifier OCTET STRING + if (cdConfig.IsSignerInfoSKIDCorrect()) + { + ReturnErrorOnFailure(writer.PutOctetString(kASN1TagClass_ContextSpecific, 0, signerKeyId.data(), + static_cast(signerKeyId.size()))); + } + else + { + uint8_t wrong_skid[kKeyIdentifierLength]; + memcpy(wrong_skid, signerKeyId.data(), signerKeyId.size()); + wrong_skid[7] ^= 0xFF; + ReturnErrorOnFailure(writer.PutOctetString(kASN1TagClass_ContextSpecific, 0, wrong_skid, sizeof(wrong_skid))); + } + + // digestAlgorithm OBJECT IDENTIFIER sha256 (2.16.840.1.101.3.4.2.1) + ASN1_START_SEQUENCE + { + if (cdConfig.IsSignerInfoDigestAlgoCorrect()) + { + ReturnErrorOnFailure(writer.PutObjectId(sOID_DigestAlgo_SHA256, sizeof(sOID_DigestAlgo_SHA256))); + } + else + { + ReturnErrorOnFailure(writer.PutObjectId(sOID_DigestAlgo_SHA1, sizeof(sOID_DigestAlgo_SHA1))); + } + } + ASN1_END_SEQUENCE; + + // signatureAlgorithm OBJECT IDENTIFIER ecdsa-with-SHA256 (1.2.840.10045.4.3.2) + ASN1_START_SEQUENCE + { + if (cdConfig.IsCMSSigAlgoCorrect()) + { + ASN1_ENCODE_OBJECT_ID(kOID_SigAlgo_ECDSAWithSHA256); + } + else + { + ReturnErrorOnFailure(writer.PutObjectId(sOID_SigAlgo_ECDSAWithSHA1, sizeof(sOID_SigAlgo_ECDSAWithSHA1))); + } + } + ASN1_END_SEQUENCE; + + uint8_t asn1SignatureBuf[kMax_ECDSA_Signature_Length_Der]; + MutableByteSpan asn1Signature(asn1SignatureBuf); + ReturnErrorOnFailure(EcdsaRawSignatureToAsn1(kP256_FE_Length, ByteSpan(signature, signature.Length()), asn1Signature)); + + if (!cdConfig.IsCMSSignatureCorrect()) + { + asn1SignatureBuf[10] ^= 0xFF; + } + + // signature OCTET STRING + ReturnErrorOnFailure(writer.PutOctetString(asn1Signature.data(), static_cast(asn1Signature.size()))); + } + ASN1_END_SEQUENCE; + } + ASN1_END_SET; + +exit: + return err; +} + +CHIP_ERROR CMS_Sign_Ignore_Error(const ByteSpan & cdContent, const ByteSpan & signerKeyId, Crypto::P256Keypair & signerKeypair, + MutableByteSpan & signedMessage, CDStructConfig & cdConfig) +{ + /** + * CertificationDeclaration ::= SEQUENCE { + * version INTEGER ( v3(3) ), + * digestAlgorithm OBJECT IDENTIFIER sha256 (2.16.840.1.101.3.4.2.1), + * encapContentInfo EncapsulatedContentInfo, + * signerInfo SignerInfo } + */ + CHIP_ERROR err = CHIP_NO_ERROR; + ASN1Writer writer; + uint32_t size = static_cast(std::min(static_cast(UINT32_MAX), signedMessage.size())); + + writer.Init(signedMessage.data(), size); + + ASN1_START_SEQUENCE + { + // OID identifies the CMS signed-data content type + ReturnErrorOnFailure(writer.PutObjectId(sOID_ContentType_PKCS7SignedData, sizeof(sOID_ContentType_PKCS7SignedData))); + + ASN1_START_CONSTRUCTED(kASN1TagClass_ContextSpecific, 0) + { + ASN1_START_SEQUENCE + { + // version INTEGER ( v3(3) ) + ASN1_ENCODE_INTEGER(cdConfig.IsCMSVersionCorrect() ? 3 : 2); + + // digestAlgorithm OBJECT IDENTIFIER sha256 (2.16.840.1.101.3.4.2.1) + ASN1_START_SET + { + ASN1_START_SEQUENCE + { + if (cdConfig.IsCMSDigestAlgoCorrect()) + { + ReturnErrorOnFailure(writer.PutObjectId(sOID_DigestAlgo_SHA256, sizeof(sOID_DigestAlgo_SHA256))); + } + else + { + ReturnErrorOnFailure(writer.PutObjectId(sOID_DigestAlgo_SHA1, sizeof(sOID_DigestAlgo_SHA1))); + } + } + ASN1_END_SEQUENCE; + } + ASN1_END_SET; + + // encapContentInfo EncapsulatedContentInfo + ReturnErrorOnFailure(EncodeEncapsulatedContent_Ignor_Error(cdContent, writer, cdConfig)); + + Crypto::P256ECDSASignature signature; + ReturnErrorOnFailure(signerKeypair.ECDSA_sign_msg(cdContent.data(), cdContent.size(), signature)); + + // signerInfo SignerInfo + ReturnErrorOnFailure(EncodeSignerInfo_Ignor_Error(signerKeyId, signature, writer, cdConfig)); + } + ASN1_END_SEQUENCE; + } + ASN1_END_CONSTRUCTED; + } + ASN1_END_SEQUENCE; + + signedMessage.reduce_size(writer.GetLengthWritten()); + +exit: + return err; +} + } // namespace bool Cmd_GenCD(int argc, char * argv[]) @@ -314,6 +1091,13 @@ bool Cmd_GenCD(int argc, char * argv[]) VerifyOrReturnError(ParseArgs(CMD_NAME, argc, argv, gCmdOptionSets), false); + if (gCDConfig.IsErrorTestCaseEnabled()) + { + fprintf(stderr, + "WARNING gen-cd: The ignor-error option is set. This option makes it possible to generate invalid certification " + "declaration.\n"); + } + if (gKeyFileName == nullptr) { fprintf(stderr, "Please specify the signing private key file name using the --key option.\n"); @@ -331,19 +1115,7 @@ bool Cmd_GenCD(int argc, char * argv[]) fprintf(stderr, "Please specify the file name for the signed Certification Declaration using the --out option.\n"); return false; } - - if (gCertElements.VendorId == 0 || gCertElements.ProductIdsCount == 0 || gCertElements.DeviceTypeId == 0 || - strlen(gCertElements.CertificateId) == 0 || gCertElements.VersionNumber == 0) - { - fprintf(stderr, "Please specify all mandatory CD elements.\n"); - return false; - } - - if (gCertElements.DACOriginVIDandPIDPresent && (gCertElements.DACOriginVendorId == 0 || gCertElements.DACOriginProductId == 0)) - { - fprintf(stderr, "The DAC Origin Vendor Id and Product Id SHALL be specified together.\n"); - return false; - } + fprintf(stderr, "gSignedCDFileName = %s\n", gSignedCDFileName); if (strcmp(gSignedCDFileName, "-") != 0 && access(gSignedCDFileName, R_OK) == 0) { @@ -354,6 +1126,23 @@ bool Cmd_GenCD(int argc, char * argv[]) return false; } + if (!gCDConfig.IsErrorTestCaseEnabled()) + { + if (gCertElements.VendorId == 0 || gCertElements.ProductIdsCount == 0 || strlen(gCertElements.CertificateId) == 0 || + gCertElements.VersionNumber == 0) + { + fprintf(stderr, "Please specify all mandatory CD elements.\n"); + return false; + } + + if (gCertElements.DACOriginVIDandPIDPresent && + (gCertElements.DACOriginVendorId == 0 || gCertElements.DACOriginProductId == 0)) + { + fprintf(stderr, "The DAC Origin Vendor Id and Product Id SHALL be specified together.\n"); + return false; + } + } + { std::unique_ptr cert(X509_new(), &X509_free); std::unique_ptr key(EVP_PKEY_new(), &EVP_PKEY_free); @@ -376,12 +1165,28 @@ bool Cmd_GenCD(int argc, char * argv[]) // Encode CD TLV content. uint8_t encodedCDBuf[kCertificationElements_TLVEncodedMaxLength]; MutableByteSpan encodedCD(encodedCDBuf); - VerifyOrReturnError(EncodeCertificationElements(gCertElements, encodedCD) == CHIP_NO_ERROR, false); + if (gCDConfig.IsErrorTestCaseEnabled()) + { + VerifyOrReturnError(EncodeCertificationElements_Ignore_Error(gCertElements, encodedCD, gCDConfig) == CHIP_NO_ERROR, + false); + } + else + { + VerifyOrReturnError(EncodeCertificationElements(gCertElements, encodedCD) == CHIP_NO_ERROR, false); + } // Sign CD. uint8_t signedMessageBuf[kMaxCMSSignedCDMessage]; MutableByteSpan signedMessage(signedMessageBuf); - VerifyOrReturnError(CMS_Sign(encodedCD, signerKeyId, keypair, signedMessage) == CHIP_NO_ERROR, false); + if (gCDConfig.IsErrorTestCaseEnabled()) + { + VerifyOrReturnError(CMS_Sign_Ignore_Error(encodedCD, signerKeyId, keypair, signedMessage, gCDConfig) == CHIP_NO_ERROR, + false); + } + else + { + VerifyOrReturnError(CMS_Sign(encodedCD, signerKeyId, keypair, signedMessage) == CHIP_NO_ERROR, false); + } // Write to file. { diff --git a/src/tools/chip-cert/gen_com_dut_test_vectors.py b/src/tools/chip-cert/gen_com_dut_test_vectors.py index bf33c2b16e00cb..8a675f73948337 100755 --- a/src/tools/chip-cert/gen_com_dut_test_vectors.py +++ b/src/tools/chip-cert/gen_com_dut_test_vectors.py @@ -311,6 +311,327 @@ class CertType(Enum): }, ] +CD_STRUCT_TEST_CASES = [ + { + "description": 'Valid format_version field set to 1.', + "test_folder": 'format_version_1', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'The format_version field is missing.', + "test_folder": 'format_version_missing', + "error_flag": 'format-version-missing', + "is_success_case": 'false', + }, + { + "description": 'Invalid format_version field set to 2.', + "test_folder": 'format_version_2', + "error_flag": 'format-version-wrong', + "is_success_case": 'false', + }, + { + "description": 'The vendor_id field is missing.', + "test_folder": 'vid_missing', + "error_flag": 'vid-missing', + "is_success_case": 'false', + }, + { + "description": "The vendor_id field doesn't match the VID in DAC.", + "test_folder": 'vid_mismatch', + "error_flag": 'vid-mismatch', + "is_success_case": 'false', + }, + { + "description": 'The product_id_array field is missing.', + "test_folder": 'pid_array_missing', + "error_flag": 'pid-array-missing', + "is_success_case": 'false', + }, + { + "description": "The product_id_array field is empty TLV array.", + "test_folder": 'pid_array_count0', + "error_flag": 'pid-array-count0', + "is_success_case": 'false', + }, + { + "description": "The product_id_array field has one PID value which matches the PID value in DAC.", + "test_folder": 'pid_array_count01_valid', + "error_flag": 'pid-array-count01-valid', + "is_success_case": 'true', + }, + { + "description": "The product_id_array field has one PID value that doesn't match the PID value in DAC.", + "test_folder": 'pid_array_count01_mismatch', + "error_flag": 'pid-array-count01-mismatch', + "is_success_case": 'false', + }, + { + "description": "The product_id_array field has 10 PID values one of which matches the PID value in DAC.", + "test_folder": 'pid_array_count10_valid', + "error_flag": 'pid-array-count10-valid', + "is_success_case": 'true', + }, + { + "description": "The product_id_array field has 10 PID values none of which matches the PID value in DAC.", + "test_folder": 'pid_array_count10_mismatch', + "error_flag": 'pid-array-count10-mismatch', + "is_success_case": 'false', + }, + { + "description": "The product_id_array field has 100 PID values one of which matches the PID value in DAC.", + "test_folder": 'pid_array_count100_valid', + "error_flag": 'pid-array-count100-valid', + "is_success_case": 'true', + }, + { + "description": "The product_id_array field has 100 PID values none of which matches the PID value in DAC.", + "test_folder": 'pid_array_count100_mismatch', + "error_flag": 'pid-array-count100-mismatch', + "is_success_case": 'false', + }, + { + "description": "The device_type_id field is missing.", + "test_folder": 'device_type_id_missing', + "error_flag": 'device-type-id-missing', + "is_success_case": 'false', + }, + { + "description": "The device_type_id field doesn't match the device_type_id value in the DCL entries associated with the VID and PID.", + "test_folder": 'device_type_id_mismatch', + "error_flag": 'device-type-id-mismatch', + "is_success_case": 'false', + }, + { + "description": "The certificate_id field is missing.", + "test_folder": 'cert_id_missing', + "error_flag": 'cert-id-missing', + "is_success_case": 'false', + }, + { + "description": "The certificate_id field doesn't contain a globally unique serial number allocated by the CSA for this CD.", + "test_folder": 'cert_id_mismatch', + "error_flag": 'cert-id-mismatch', + "is_success_case": 'false', + }, + { + "description": 'The certificate_id field has wrong length.', + "test_folder": 'cert_id_len_wrong', + "error_flag": 'cert-id-len-wrong', + "is_success_case": 'false', + }, + { + "description": 'The security_level field is missing.', + "test_folder": 'security_level_missing', + "error_flag": 'security-level-missing', + "is_success_case": 'false', + }, + { + "description": 'The security_level field is set to invalid value (different from 0).', + "test_folder": 'security_level_wrong', + "error_flag": 'security-level-wrong', + "is_success_case": 'false', + }, + { + "description": 'The security_information field is missing.', + "test_folder": 'security_info_missing', + "error_flag": 'security-info-missing', + "is_success_case": 'false', + }, + { + "description": 'The security_information field is set to invalid value (different from 0).', + "test_folder": 'security_info_wrong', + "error_flag": 'security-info-wrong', + "is_success_case": 'false', + }, + { + "description": 'The version_number field is missing.', + "test_folder": 'version_number_missing', + "error_flag": 'version-number-missing', + "is_success_case": 'true', + }, + { + "description": 'The version_number field matches the VID and PID used in a DeviceSoftwareVersionModel entry in the DCL matching the certification record associated with the product presenting this CD.', + "test_folder": 'version_number_match', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": "The version_number field doesn't match the VID and PID used in a DeviceSoftwareVersionModel entry in the DCL matching the certification record associated with the product presenting this CD.", + "test_folder": 'version_number_wrong', + "error_flag": 'version-number-wrong', + "is_success_case": 'false', + }, + { + "description": 'The certification_type field is missing.', + "test_folder": 'cert_type_missing', + "error_flag": 'cert-type-missing', + "is_success_case": 'false', + }, + { + "description": 'The certification_type field is set to invalid value.', + "test_folder": 'cert_type_wrong', + "error_flag": 'cert-type-wrong', + "is_success_case": 'false', + }, + { + "description": 'The dac_origin_vendor_id and dac_origin_product_id fields are not present.', + "test_folder": 'dac_origin_vid_pid_missing', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'The dac_origin_vendor_id fild is present and dac_origin_product_id fields is not present.', + "test_folder": 'dac_origin_vid_present_pid_missing', + "error_flag": 'dac-origin-vid-present', + "is_success_case": 'false', + }, + { + "description": 'The dac_origin_vendor_id fild is not present and dac_origin_product_id is present.', + "test_folder": 'dac_origin_vid_missing_pid_present', + "error_flag": 'dac-origin-pid-present', + "is_success_case": 'false', + }, + { + "description": 'The dac_origin_vendor_id and dac_origin_product_id fields present and contain the VID and PID values that match the VID and PID found in the DAC Subject DN.', + "test_folder": 'dac_origin_vid_pid_present_match', + "error_flag": 'dac-origin-vid-pid-present', + "is_success_case": 'true', + }, + { + "description": "The dac_origin_vendor_id and dac_origin_product_id fields present and the VID value doesn't match the VID found in the DAC Subject DN.", + "test_folder": 'dac_origin_vid_pid_present_vid_mismatch', + "error_flag": 'dac-origin-vid-mismatch', + "is_success_case": 'false', + }, + { + "description": "The dac_origin_vendor_id and dac_origin_product_id fields present and the PID value doesn't match the PID found in the DAC Subject DN.", + "test_folder": 'dac_origin_vid_pid_present_pid_mismatch', + "error_flag": 'dac-origin-pid-mismatch', + "is_success_case": 'false', + }, + { + "description": 'The optional authorized_paa_list field is not present.', + "test_folder": 'authorized_paa_list_missing', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'The authorized_paa_list contains one valid PAA which is authorized to sign the PAI.', + "test_folder": 'authorized_paa_list_count0', + "error_flag": 'authorized-paa-list-count0', + "is_success_case": 'false', + }, + { + "description": 'The authorized_paa_list contains one valid PAA which is authorized to sign the PAI.', + "test_folder": 'authorized_paa_list_count1_valid', + "error_flag": 'authorized-paa-list-count1-valid', + "is_success_case": 'true', + }, + { + "description": 'The authorized_paa_list contains two PAAs one of which is valid PAA authorized to sign the PAI.', + "test_folder": 'authorized_paa_list_count2_valid', + "error_flag": 'authorized-paa-list-count2-valid', + "is_success_case": 'true', + }, + { + "description": 'The authorized_paa_list contains three PAAs none of which is a valid PAA authorized to sign the PAI.', + "test_folder": 'authorized_paa_list_count3_invalid', + "error_flag": 'authorized-paa-list-count3-invalid', + "is_success_case": 'false', + }, + { + "description": 'The authorized_paa_list contains ten PAAs one of which is valid PAA authorized to sign the PAI.', + "test_folder": 'authorized_paa_list_count10_valid', + "error_flag": 'authorized-paa-list-count10-valid', + "is_success_case": 'true', + }, + { + "description": 'The authorized_paa_list contains ten PAAs none of which is a valid PAA authorized to sign the PAI.', + "test_folder": 'authorized_paa_list_count10_invalid', + "error_flag": 'authorized-paa-list-count10-invalid', + "is_success_case": 'false', + }, + { + "description": 'Invalid Signer Info version set to v2.', + "test_folder": 'signer_info_v2', + "error_flag": 'signer-info-v2', + "is_success_case": 'false', + }, + { + "description": 'Invalid Signer Info digest algorithm SHA1.', + "test_folder": 'signer_info_digest_algo_sha1', + "error_flag": 'signer-info-digest-algo', + "is_success_case": 'false', + }, + { + "description": 'The subjectKeyIdentifier contains SKID of a well-known Zigbee Alliance certificate.', + "test_folder": 'signer_info_skid_valid', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'The subjectKeyIdentifier contains invalid SKID of a certificate unknown by Zigbee Alliance.', + "test_folder": 'signer_info_skid_invalid', + "error_flag": 'signer-info-skid', + "is_success_case": 'false', + }, + { + "description": 'Valid CMS version set to v3.', + "test_folder": 'cms_v3', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'Invalid CMS version set to v2.', + "test_folder": 'cms_v2', + "error_flag": 'cms-v2', + "is_success_case": 'false', + }, + { + "description": 'Valid CMS digest algorithm SHA256.', + "test_folder": 'cms_digest_algo_sha256', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'Invalid CMS digest algorithm SHA1.', + "test_folder": 'cms_digest_algo_sha1', + "error_flag": 'cms-digest-algo', + "is_success_case": 'false', + }, + { + "description": 'Valid CMS signature algorithm ECDSA_WITH_SHA256.', + "test_folder": 'cms_sig_algo_ecdsa_with_sha256', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'Invalid CMS signature algorithm ECDSA_WITH_SHA1.', + "test_folder": 'cms_sig_algo_ecdsa_with_sha1', + "error_flag": 'cms-sig-algo', + "is_success_case": 'false', + }, + { + "description": 'Valid CMS eContentType pkcs7-data.', + "test_folder": 'cms_econtent_type_pkcs7_data', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'Invalid CMS eContentType is set to Microsoft Authenticode [MSAC] OID = { 1.3.6.1.4.1.311.2.1.4 }.', + "test_folder": 'cms_econtent_type_msac', + "error_flag": 'cms-econtent-type', + "is_success_case": 'false', + }, + { + "description": 'Invalid CMS Signature.', + "test_folder": 'cms_signature', + "error_flag": 'cms-sig', + "is_success_case": 'false', + }, +] + class Names: def __init__(self, cert_type: CertType, paa_path, test_case_out_dir): @@ -352,7 +673,7 @@ def __init__(self, cert_type: CertType, error_type: str, paa_path: str, test_cas def make_certs_and_keys(self) -> None: """Creates the PEM and DER certs and keyfiles""" - error_type_flag = ' -i -e' + self.error_type + error_type_flag = ' -I -E' + self.error_type subject_name = self.custom_cn_attribute vid_flag = ' -V 0x{:X}'.format(self.vid) pid_flag = ' -P 0x{:X}'.format(self.pid) @@ -554,6 +875,43 @@ def main(): # Generate Test Case Data Container in JSON Format generate_test_case_vector_json(test_case_out_dir, test_cert, test_case) + for test_case in CD_STRUCT_TEST_CASES: + test_case_out_dir = args.outdir + '/struct_cd_' + test_case["test_folder"] + vid = 0xFFF1 + pid = 0x8000 + + # Generate PAI Cert/Key + builder = DevCertBuilder(CertType.PAI, 'no-error', args.paapath, test_case_out_dir, + chipcert, vid, pid, '') + builder.make_certs_and_keys() + + # Generate DAC Cert/Key + builder = DevCertBuilder(CertType.DAC, 'no-error', args.paapath, test_case_out_dir, + chipcert, vid, pid, '') + builder.make_certs_and_keys() + + # Generate Certification Declaration (CD) + vid_flag = ' -V 0x{:X}'.format(vid) + pid_flag = ' -p 0x{:X}'.format(pid) + + dac_origin_flag = ' ' + if test_case["error_flag"] == 'dac-origin-vid-present' or test_case["error_flag"] == 'dac-origin-vid-pid-present': + dac_origin_flag += ' -o 0x{:X}'.format(vid) + if test_case["error_flag"] == 'dac-origin-pid-present' or test_case["error_flag"] == 'dac-origin-vid-pid-present': + dac_origin_flag += ' -r 0x{:X}'.format(pid) + + if test_case["error_flag"] == 'authorized-paa-list-count0' or test_case["error_flag"] == 'authorized-paa-list-count1-valid' or test_case["error_flag"] == 'authorized-paa-list-count2-valid' or test_case["error_flag"] == 'authorized-paa-list-count3-invalid' or test_case["error_flag"] == 'authorized-paa-list-count10-valid' or test_case["error_flag"] == 'authorized-paa-list-count10-invalid': + authorized_paa_flag = ' -a ' + args.paapath + 'Cert.pem' + else: + authorized_paa_flag = '' + + cmd = chipcert + ' gen-cd -I -E ' + test_case["error_flag"] + ' -K ' + cd_key + ' -C ' + cd_cert + ' -O ' + test_case_out_dir + '/cd.der' + \ + ' -f 1 ' + vid_flag + pid_flag + dac_origin_flag + authorized_paa_flag + ' -d 0x1234 -c "ZIG20141ZB330001-24" -l 0 -i 0 -n 9876 -t 0' + subprocess.run(cmd, shell=True) + + # Generate Test Case Data Container in JSON Format + generate_test_case_vector_json(test_case_out_dir, 'cd', test_case) + if __name__ == '__main__': sys.exit(main())