xref: /rk3399_ARM-atf/tools/cert_create/src/tbbr/tbb_key.c (revision e2c3611cf109b6d69cbf68de874e034b309ffd73)
155e291a4SJuan Castillo /*
2*ccbfd01dSManish V Badarkhe  * Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
355e291a4SJuan Castillo  *
482cb2c1aSdp-arm  * SPDX-License-Identifier: BSD-3-Clause
555e291a4SJuan Castillo  */
655e291a4SJuan Castillo 
755e291a4SJuan Castillo #include "tbbr/tbb_key.h"
855e291a4SJuan Castillo 
955e291a4SJuan Castillo /*
1055e291a4SJuan Castillo  * Keys used to establish the chain of trust
1155e291a4SJuan Castillo  *
1255e291a4SJuan Castillo  * The order of the keys must follow the enumeration specified in tbb_key.h
1355e291a4SJuan Castillo  */
14*ccbfd01dSManish V Badarkhe static cert_key_t tbb_keys[] = {
1555e291a4SJuan Castillo 	[ROT_KEY] = {
1655e291a4SJuan Castillo 		.id = ROT_KEY,
17ad2c1a9aSJuan Castillo 		.opt = "rot-key",
18616b3ce2SRobin van der Gracht 		.help_msg = "Root Of Trust key file or PKCS11 URI",
1955e291a4SJuan Castillo 		.desc = "Root Of Trust key"
2055e291a4SJuan Castillo 	},
2155e291a4SJuan Castillo 	[TRUSTED_WORLD_KEY] = {
2255e291a4SJuan Castillo 		.id = TRUSTED_WORLD_KEY,
23ad2c1a9aSJuan Castillo 		.opt = "trusted-world-key",
24616b3ce2SRobin van der Gracht 		.help_msg = "Trusted World key file or PKCS11 URI",
2555e291a4SJuan Castillo 		.desc = "Trusted World key"
2655e291a4SJuan Castillo 	},
2755e291a4SJuan Castillo 	[NON_TRUSTED_WORLD_KEY] = {
2855e291a4SJuan Castillo 		.id = NON_TRUSTED_WORLD_KEY,
29ad2c1a9aSJuan Castillo 		.opt = "non-trusted-world-key",
30616b3ce2SRobin van der Gracht 		.help_msg = "Non Trusted World key file or PKCS11 URI",
3155e291a4SJuan Castillo 		.desc = "Non Trusted World key"
3255e291a4SJuan Castillo 	},
33516beb58SJuan Castillo 	[SCP_FW_CONTENT_CERT_KEY] = {
34516beb58SJuan Castillo 		.id = SCP_FW_CONTENT_CERT_KEY,
35516beb58SJuan Castillo 		.opt = "scp-fw-key",
36616b3ce2SRobin van der Gracht 		.help_msg = "SCP Firmware Content Certificate key file or PKCS11 URI",
37516beb58SJuan Castillo 		.desc = "SCP Firmware Content Certificate key"
3855e291a4SJuan Castillo 	},
39516beb58SJuan Castillo 	[SOC_FW_CONTENT_CERT_KEY] = {
40516beb58SJuan Castillo 		.id = SOC_FW_CONTENT_CERT_KEY,
41516beb58SJuan Castillo 		.opt = "soc-fw-key",
42616b3ce2SRobin van der Gracht 		.help_msg = "SoC Firmware Content Certificate key file or PKCS11 URI",
43516beb58SJuan Castillo 		.desc = "SoC Firmware Content Certificate key"
4455e291a4SJuan Castillo 	},
45516beb58SJuan Castillo 	[TRUSTED_OS_FW_CONTENT_CERT_KEY] = {
46516beb58SJuan Castillo 		.id = TRUSTED_OS_FW_CONTENT_CERT_KEY,
47516beb58SJuan Castillo 		.opt = "tos-fw-key",
48616b3ce2SRobin van der Gracht 		.help_msg = "Trusted OS Firmware Content Certificate key file or PKCS11 URI",
49516beb58SJuan Castillo 		.desc = "Trusted OS Firmware Content Certificate key"
5055e291a4SJuan Castillo 	},
51516beb58SJuan Castillo 	[NON_TRUSTED_FW_CONTENT_CERT_KEY] = {
52516beb58SJuan Castillo 		.id = NON_TRUSTED_FW_CONTENT_CERT_KEY,
53516beb58SJuan Castillo 		.opt = "nt-fw-key",
54616b3ce2SRobin van der Gracht 		.help_msg = "Non Trusted Firmware Content Certificate key file or PKCS11 URI",
55516beb58SJuan Castillo 		.desc = "Non Trusted Firmware Content Certificate key"
5655e291a4SJuan Castillo 	}
5755e291a4SJuan Castillo };
5855e291a4SJuan Castillo 
5955e291a4SJuan Castillo REGISTER_KEYS(tbb_keys);
60