155e291a4SJuan Castillo /* 255e291a4SJuan Castillo * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. 355e291a4SJuan Castillo * 4*82cb2c1aSdp-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 */ 1455e291a4SJuan Castillo static key_t tbb_keys[] = { 1555e291a4SJuan Castillo [ROT_KEY] = { 1655e291a4SJuan Castillo .id = ROT_KEY, 17ad2c1a9aSJuan Castillo .opt = "rot-key", 18159807e2SJuan Castillo .help_msg = "Root Of Trust key (input/output file)", 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", 24159807e2SJuan Castillo .help_msg = "Trusted World key (input/output file)", 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", 30159807e2SJuan Castillo .help_msg = "Non Trusted World key (input/output file)", 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", 36159807e2SJuan Castillo .help_msg = "SCP Firmware Content Certificate key (input/output file)", 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", 42159807e2SJuan Castillo .help_msg = "SoC Firmware Content Certificate key (input/output file)", 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", 48159807e2SJuan Castillo .help_msg = "Trusted OS Firmware Content Certificate key (input/output file)", 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", 54159807e2SJuan Castillo .help_msg = "Non Trusted Firmware Content Certificate key (input/output file)", 55516beb58SJuan Castillo .desc = "Non Trusted Firmware Content Certificate key" 5655e291a4SJuan Castillo } 5755e291a4SJuan Castillo }; 5855e291a4SJuan Castillo 5955e291a4SJuan Castillo REGISTER_KEYS(tbb_keys); 60