155e291a4SJuan Castillo /* 255e291a4SJuan Castillo * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. 355e291a4SJuan Castillo * 455e291a4SJuan Castillo * Redistribution and use in source and binary forms, with or without 555e291a4SJuan Castillo * modification, are permitted provided that the following conditions are met: 655e291a4SJuan Castillo * 755e291a4SJuan Castillo * Redistributions of source code must retain the above copyright notice, this 855e291a4SJuan Castillo * list of conditions and the following disclaimer. 955e291a4SJuan Castillo * 1055e291a4SJuan Castillo * Redistributions in binary form must reproduce the above copyright notice, 1155e291a4SJuan Castillo * this list of conditions and the following disclaimer in the documentation 1255e291a4SJuan Castillo * and/or other materials provided with the distribution. 1355e291a4SJuan Castillo * 1455e291a4SJuan Castillo * Neither the name of ARM nor the names of its contributors may be used 1555e291a4SJuan Castillo * to endorse or promote products derived from this software without specific 1655e291a4SJuan Castillo * prior written permission. 1755e291a4SJuan Castillo * 1855e291a4SJuan Castillo * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 1955e291a4SJuan Castillo * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2055e291a4SJuan Castillo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2155e291a4SJuan Castillo * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 2255e291a4SJuan Castillo * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2355e291a4SJuan Castillo * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2455e291a4SJuan Castillo * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2555e291a4SJuan Castillo * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2655e291a4SJuan Castillo * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2755e291a4SJuan Castillo * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2855e291a4SJuan Castillo * POSSIBILITY OF SUCH DAMAGE. 2955e291a4SJuan Castillo */ 3055e291a4SJuan Castillo 3155e291a4SJuan Castillo #include "tbbr/tbb_key.h" 3255e291a4SJuan Castillo 3355e291a4SJuan Castillo /* 3455e291a4SJuan Castillo * Keys used to establish the chain of trust 3555e291a4SJuan Castillo * 3655e291a4SJuan Castillo * The order of the keys must follow the enumeration specified in tbb_key.h 3755e291a4SJuan Castillo */ 3855e291a4SJuan Castillo static key_t tbb_keys[] = { 3955e291a4SJuan Castillo [ROT_KEY] = { 4055e291a4SJuan Castillo .id = ROT_KEY, 41ad2c1a9aSJuan Castillo .opt = "rot-key", 42*159807e2SJuan Castillo .help_msg = "Root Of Trust key (input/output file)", 4355e291a4SJuan Castillo .desc = "Root Of Trust key" 4455e291a4SJuan Castillo }, 4555e291a4SJuan Castillo [TRUSTED_WORLD_KEY] = { 4655e291a4SJuan Castillo .id = TRUSTED_WORLD_KEY, 47ad2c1a9aSJuan Castillo .opt = "trusted-world-key", 48*159807e2SJuan Castillo .help_msg = "Trusted World key (input/output file)", 4955e291a4SJuan Castillo .desc = "Trusted World key" 5055e291a4SJuan Castillo }, 5155e291a4SJuan Castillo [NON_TRUSTED_WORLD_KEY] = { 5255e291a4SJuan Castillo .id = NON_TRUSTED_WORLD_KEY, 53ad2c1a9aSJuan Castillo .opt = "non-trusted-world-key", 54*159807e2SJuan Castillo .help_msg = "Non Trusted World key (input/output file)", 5555e291a4SJuan Castillo .desc = "Non Trusted World key" 5655e291a4SJuan Castillo }, 57516beb58SJuan Castillo [SCP_FW_CONTENT_CERT_KEY] = { 58516beb58SJuan Castillo .id = SCP_FW_CONTENT_CERT_KEY, 59516beb58SJuan Castillo .opt = "scp-fw-key", 60*159807e2SJuan Castillo .help_msg = "SCP Firmware Content Certificate key (input/output file)", 61516beb58SJuan Castillo .desc = "SCP Firmware Content Certificate key" 6255e291a4SJuan Castillo }, 63516beb58SJuan Castillo [SOC_FW_CONTENT_CERT_KEY] = { 64516beb58SJuan Castillo .id = SOC_FW_CONTENT_CERT_KEY, 65516beb58SJuan Castillo .opt = "soc-fw-key", 66*159807e2SJuan Castillo .help_msg = "SoC Firmware Content Certificate key (input/output file)", 67516beb58SJuan Castillo .desc = "SoC Firmware Content Certificate key" 6855e291a4SJuan Castillo }, 69516beb58SJuan Castillo [TRUSTED_OS_FW_CONTENT_CERT_KEY] = { 70516beb58SJuan Castillo .id = TRUSTED_OS_FW_CONTENT_CERT_KEY, 71516beb58SJuan Castillo .opt = "tos-fw-key", 72*159807e2SJuan Castillo .help_msg = "Trusted OS Firmware Content Certificate key (input/output file)", 73516beb58SJuan Castillo .desc = "Trusted OS Firmware Content Certificate key" 7455e291a4SJuan Castillo }, 75516beb58SJuan Castillo [NON_TRUSTED_FW_CONTENT_CERT_KEY] = { 76516beb58SJuan Castillo .id = NON_TRUSTED_FW_CONTENT_CERT_KEY, 77516beb58SJuan Castillo .opt = "nt-fw-key", 78*159807e2SJuan Castillo .help_msg = "Non Trusted Firmware Content Certificate key (input/output file)", 79516beb58SJuan Castillo .desc = "Non Trusted Firmware Content Certificate key" 8055e291a4SJuan Castillo } 8155e291a4SJuan Castillo }; 8255e291a4SJuan Castillo 8355e291a4SJuan Castillo REGISTER_KEYS(tbb_keys); 84