Home | History | Annotate | Download | only in tbbr
      1 /*
      2  * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
      3  *
      4  * SPDX-License-Identifier: BSD-3-Clause
      5  */
      6 
      7 #include "tbbr/tbb_key.h"
      8 
      9 /*
     10  * Keys used to establish the chain of trust
     11  *
     12  * The order of the keys must follow the enumeration specified in tbb_key.h
     13  */
     14 static key_t tbb_keys[] = {
     15 	[ROT_KEY] = {
     16 		.id = ROT_KEY,
     17 		.opt = "rot-key",
     18 		.help_msg = "Root Of Trust key (input/output file)",
     19 		.desc = "Root Of Trust key"
     20 	},
     21 	[TRUSTED_WORLD_KEY] = {
     22 		.id = TRUSTED_WORLD_KEY,
     23 		.opt = "trusted-world-key",
     24 		.help_msg = "Trusted World key (input/output file)",
     25 		.desc = "Trusted World key"
     26 	},
     27 	[NON_TRUSTED_WORLD_KEY] = {
     28 		.id = NON_TRUSTED_WORLD_KEY,
     29 		.opt = "non-trusted-world-key",
     30 		.help_msg = "Non Trusted World key (input/output file)",
     31 		.desc = "Non Trusted World key"
     32 	},
     33 	[SCP_FW_CONTENT_CERT_KEY] = {
     34 		.id = SCP_FW_CONTENT_CERT_KEY,
     35 		.opt = "scp-fw-key",
     36 		.help_msg = "SCP Firmware Content Certificate key (input/output file)",
     37 		.desc = "SCP Firmware Content Certificate key"
     38 	},
     39 	[SOC_FW_CONTENT_CERT_KEY] = {
     40 		.id = SOC_FW_CONTENT_CERT_KEY,
     41 		.opt = "soc-fw-key",
     42 		.help_msg = "SoC Firmware Content Certificate key (input/output file)",
     43 		.desc = "SoC Firmware Content Certificate key"
     44 	},
     45 	[TRUSTED_OS_FW_CONTENT_CERT_KEY] = {
     46 		.id = TRUSTED_OS_FW_CONTENT_CERT_KEY,
     47 		.opt = "tos-fw-key",
     48 		.help_msg = "Trusted OS Firmware Content Certificate key (input/output file)",
     49 		.desc = "Trusted OS Firmware Content Certificate key"
     50 	},
     51 	[NON_TRUSTED_FW_CONTENT_CERT_KEY] = {
     52 		.id = NON_TRUSTED_FW_CONTENT_CERT_KEY,
     53 		.opt = "nt-fw-key",
     54 		.help_msg = "Non Trusted Firmware Content Certificate key (input/output file)",
     55 		.desc = "Non Trusted Firmware Content Certificate key"
     56 	}
     57 };
     58 
     59 REGISTER_KEYS(tbb_keys);
     60