• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 * This file provide a malformed CoT DT file that there
7 * are image/certificate that points to invalid parent
8 *
9 */
10
11cot {
12	manifests {
13		compatible = "arm, cert-descs";
14
15		cca_content_cert: cca_content_cert {
16			root-certificate;
17			image-id =<36>;
18			antirollback-counter = <&cca_nv_ctr>;
19
20			hw_config_hash: hw_config_hash {
21				oid = "1.3.6.1.4.1.4128.2100.203";
22			};
23			soc_fw_config_hash: soc_fw_config_hash {
24				oid = "1.3.6.1.4.1.4128.2100.604";
25			};
26		};
27
28		plat_key_cert: plat_key_cert {
29			root-certificate;
30			image-id = <38>;
31			signing-key = <&prot_pk>;
32			antirollback-counter = <&non_trusted_nv_ctr>;
33
34			plat_pk: plat_pk {
35				oid =  "1.3.6.1.4.1.4128.2100.1105";
36			};
37		};
38
39		non_trusted_fw_content_cert: non_trusted_fw_content_cert {
40			image-id = <NON_TRUSTED_FW_CONTENT_CERT_ID>;
41			parent = <&wrong_parent>;
42			signing-key = <&plat_pk>;
43			antirollback-counter = <&non_trusted_nv_ctr>;
44
45			nt_world_bl_hash: nt_world_bl_hash {
46				oid = "1.3.6.1.4.1.4128.2100.1201";
47			};
48			nt_fw_config_hash: nt_fw_config_hash {
49				oid = "1.3.6.1.4.1.4128.2100.1202";
50			};
51		};
52
53	};
54
55	images {
56		compatible = "arm, img-descs";
57
58		hw_config {
59			image-id = <23>;
60			parent = <&cca_content_cert>;
61			hash = <&hw_config_hash>;
62		};
63
64		soc_fw_config {
65			image-id = <25>;
66			parent = <&cca_content_cert>;
67			hash = <&soc_fw_config_hash>;
68		};
69
70		bl33_image {
71			image-id = <5>;
72			parent = <&non_trusted_fw_content_cert>;
73			hash = <&nt_world_bl_hash>;
74		};
75
76		nt_fw_config {
77			image-id = <27>;
78			hash = <&nt_fw_config_hash>;
79		};
80	};
81};
82
83non_volatile_counters: non_volatile_counters {
84	compatible = "arm, non-volatile-counter";
85
86	#address-cells = <1>;
87	#size-cells = <0>;
88
89	cca_nv_ctr: cca_nv_ctr {
90		id  = <0>;
91		oid = "1.3.6.1.4.1.4128.2100.3";
92	};
93
94	trusted_nv_ctr: trusted_nv_ctr {
95		id  = <0>;
96		oid = "1.3.6.1.4.1.4128.2100.1";
97	};
98
99	non_trusted_nv_ctr: non_trusted_nv_ctr {
100		id  = <1>;
101		oid = "1.3.6.1.4.1.4128.2100.2";
102	};
103};
104
105rot_keys {
106	swd_rot_pk: swd_rot_pk {
107		oid = "1.3.6.1.4.1.4128.2100.1103";
108	};
109
110	prot_pk: prot_pk {
111		oid = "1.3.6.1.4.1.4128.2100.1102";
112	};
113};
114