Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Juan Castillo | e6d30e9 | 2015-06-12 11:27:59 +0100 | [diff] [blame] | 7 | #include "tbbr/tbb_key.h" |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 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 | */ |
Juan Castillo | e6d30e9 | 2015-06-12 11:27:59 +0100 | [diff] [blame] | 14 | static key_t tbb_keys[] = { |
| 15 | [ROT_KEY] = { |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 16 | .id = ROT_KEY, |
Juan Castillo | 1218dd5 | 2015-07-03 16:23:16 +0100 | [diff] [blame] | 17 | .opt = "rot-key", |
Juan Castillo | 212f738 | 2015-12-15 16:37:57 +0000 | [diff] [blame] | 18 | .help_msg = "Root Of Trust key (input/output file)", |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 19 | .desc = "Root Of Trust key" |
| 20 | }, |
Juan Castillo | e6d30e9 | 2015-06-12 11:27:59 +0100 | [diff] [blame] | 21 | [TRUSTED_WORLD_KEY] = { |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 22 | .id = TRUSTED_WORLD_KEY, |
Juan Castillo | 1218dd5 | 2015-07-03 16:23:16 +0100 | [diff] [blame] | 23 | .opt = "trusted-world-key", |
Juan Castillo | 212f738 | 2015-12-15 16:37:57 +0000 | [diff] [blame] | 24 | .help_msg = "Trusted World key (input/output file)", |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 25 | .desc = "Trusted World key" |
| 26 | }, |
Juan Castillo | e6d30e9 | 2015-06-12 11:27:59 +0100 | [diff] [blame] | 27 | [NON_TRUSTED_WORLD_KEY] = { |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 28 | .id = NON_TRUSTED_WORLD_KEY, |
Juan Castillo | 1218dd5 | 2015-07-03 16:23:16 +0100 | [diff] [blame] | 29 | .opt = "non-trusted-world-key", |
Juan Castillo | 212f738 | 2015-12-15 16:37:57 +0000 | [diff] [blame] | 30 | .help_msg = "Non Trusted World key (input/output file)", |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 31 | .desc = "Non Trusted World key" |
| 32 | }, |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 33 | [SCP_FW_CONTENT_CERT_KEY] = { |
| 34 | .id = SCP_FW_CONTENT_CERT_KEY, |
| 35 | .opt = "scp-fw-key", |
Juan Castillo | 212f738 | 2015-12-15 16:37:57 +0000 | [diff] [blame] | 36 | .help_msg = "SCP Firmware Content Certificate key (input/output file)", |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 37 | .desc = "SCP Firmware Content Certificate key" |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 38 | }, |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 39 | [SOC_FW_CONTENT_CERT_KEY] = { |
| 40 | .id = SOC_FW_CONTENT_CERT_KEY, |
| 41 | .opt = "soc-fw-key", |
Juan Castillo | 212f738 | 2015-12-15 16:37:57 +0000 | [diff] [blame] | 42 | .help_msg = "SoC Firmware Content Certificate key (input/output file)", |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 43 | .desc = "SoC Firmware Content Certificate key" |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 44 | }, |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 45 | [TRUSTED_OS_FW_CONTENT_CERT_KEY] = { |
| 46 | .id = TRUSTED_OS_FW_CONTENT_CERT_KEY, |
| 47 | .opt = "tos-fw-key", |
Juan Castillo | 212f738 | 2015-12-15 16:37:57 +0000 | [diff] [blame] | 48 | .help_msg = "Trusted OS Firmware Content Certificate key (input/output file)", |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 49 | .desc = "Trusted OS Firmware Content Certificate key" |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 50 | }, |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 51 | [NON_TRUSTED_FW_CONTENT_CERT_KEY] = { |
| 52 | .id = NON_TRUSTED_FW_CONTENT_CERT_KEY, |
| 53 | .opt = "nt-fw-key", |
Juan Castillo | 212f738 | 2015-12-15 16:37:57 +0000 | [diff] [blame] | 54 | .help_msg = "Non Trusted Firmware Content Certificate key (input/output file)", |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 55 | .desc = "Non Trusted Firmware Content Certificate key" |
Juan Castillo | 11abdcd | 2014-10-21 11:30:42 +0100 | [diff] [blame] | 56 | } |
| 57 | }; |
Juan Castillo | e6d30e9 | 2015-06-12 11:27:59 +0100 | [diff] [blame] | 58 | |
| 59 | REGISTER_KEYS(tbb_keys); |