Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions are met: |
| 6 | * |
| 7 | * Redistributions of source code must retain the above copyright notice, this |
| 8 | * list of conditions and the following disclaimer. |
| 9 | * |
| 10 | * Redistributions in binary form must reproduce the above copyright notice, |
| 11 | * this list of conditions and the following disclaimer in the documentation |
| 12 | * and/or other materials provided with the distribution. |
| 13 | * |
| 14 | * Neither the name of ARM nor the names of its contributors may be used |
| 15 | * to endorse or promote products derived from this software without specific |
| 16 | * prior written permission. |
| 17 | * |
| 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 22 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 24 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 25 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 26 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 27 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 28 | * POSSIBILITY OF SUCH DAMAGE. |
| 29 | */ |
| 30 | |
| 31 | #ifndef __BOARD_ARM_OID_H__ |
| 32 | #define __BOARD_ARM_OID_H__ |
| 33 | |
| 34 | /* |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 35 | * The following is a list of OID values defined and reserved by ARM, which |
| 36 | * are used to define the extension fields of the certificate structure, as |
| 37 | * defined in the Trusted Board Boot Requirements (TBBR) specification, |
| 38 | * ARM DEN0006C-1. |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 39 | * |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 40 | * Non-ARM platform owners that wish to align with the TBBR should define |
| 41 | * constants with the same name in their own platform port(s), using their |
| 42 | * own OIDs obtained from the ITU-T. |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 43 | */ |
| 44 | |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 45 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 46 | /* TrustedFirmwareNVCounter - Non-volatile counter extension */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 47 | #define TRUSTED_FW_NVCOUNTER_OID "1.3.6.1.4.1.4128.2100.1" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 48 | /* NonTrustedFirmwareNVCounter - Non-volatile counter extension */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 49 | #define NON_TRUSTED_FW_NVCOUNTER_OID "1.3.6.1.4.1.4128.2100.2" |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 50 | |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 51 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 52 | /* |
| 53 | * Non-Trusted Firmware Updater Certificate |
| 54 | */ |
| 55 | |
| 56 | /* APFirmwareUpdaterConfigHash - BL2U */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 57 | #define AP_FWU_CFG_HASH_OID "1.3.6.1.4.1.4128.2100.101" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 58 | /* SCPFirmwareUpdaterConfigHash - SCP_BL2U */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 59 | #define SCP_FWU_CFG_HASH_OID "1.3.6.1.4.1.4128.2100.102" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 60 | /* FirmwareUpdaterHash - NS_BL2U */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 61 | #define FWU_HASH_OID "1.3.6.1.4.1.4128.2100.103" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 62 | /* TrustedWatchdogRefreshTime */ |
| 63 | #define TRUSTED_WATCHDOG_TIME_OID "1.3.6.1.4.1.4128.2100.104" |
| 64 | |
| 65 | |
| 66 | /* |
| 67 | * Trusted Boot Firmware Certificate |
| 68 | */ |
| 69 | |
| 70 | /* TrustedBootFirmwareHash - BL2 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 71 | #define TRUSTED_BOOT_FW_HASH_OID "1.3.6.1.4.1.4128.2100.201" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 72 | |
| 73 | |
| 74 | /* |
| 75 | * Trusted Key Certificate |
| 76 | */ |
| 77 | |
| 78 | /* PrimaryDebugCertificatePK */ |
| 79 | #define PRIMARY_DEBUG_PK_OID "1.3.6.1.4.1.4128.2100.301" |
| 80 | /* TrustedWorldPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 81 | #define TRUSTED_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.302" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 82 | /* NonTrustedWorldPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 83 | #define NON_TRUSTED_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.303" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 84 | |
| 85 | |
| 86 | /* |
| 87 | * Trusted Debug Certificate |
| 88 | */ |
| 89 | |
| 90 | /* DebugScenario */ |
| 91 | #define TRUSTED_DEBUG_SCENARIO_OID "1.3.6.1.4.1.4128.2100.401" |
| 92 | /* SoC Specific */ |
| 93 | #define TRUSTED_DEBUG_SOC_SPEC_OID "1.3.6.1.4.1.4128.2100.402" |
| 94 | /* SecondaryDebugCertPK */ |
| 95 | #define SECONDARY_DEBUG_PK_OID "1.3.6.1.4.1.4128.2100.403" |
| 96 | |
| 97 | |
| 98 | /* |
| 99 | * SoC Firmware Key Certificate |
| 100 | */ |
| 101 | |
| 102 | /* SoCFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 103 | #define SOC_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.501" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 104 | |
| 105 | |
| 106 | /* |
| 107 | * SoC Firmware Content Certificate |
| 108 | */ |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 109 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 110 | /* APRomPatchHash - BL1_PATCH */ |
| 111 | #define APROM_PATCH_HASH_OID "1.3.6.1.4.1.4128.2100.601" |
| 112 | /* SoCConfigHash */ |
| 113 | #define SOC_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.602" |
| 114 | /* SoCAPFirmwareHash - BL31 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 115 | #define SOC_AP_FW_HASH_OID "1.3.6.1.4.1.4128.2100.603" |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 116 | |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 117 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 118 | /* |
| 119 | * SCP Firmware Key Certificate |
| 120 | */ |
| 121 | |
| 122 | /* SCPFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 123 | #define SCP_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.701" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 124 | |
| 125 | |
| 126 | /* |
| 127 | * SCP Firmware Content Certificate |
| 128 | */ |
| 129 | |
Juan Castillo | a72b647 | 2015-12-10 15:49:17 +0000 | [diff] [blame] | 130 | /* SCPFirmwareHash - SCP_BL2 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 131 | #define SCP_FW_HASH_OID "1.3.6.1.4.1.4128.2100.801" |
Juan Castillo | a72b647 | 2015-12-10 15:49:17 +0000 | [diff] [blame] | 132 | /* SCPRomPatchHash - SCP_BL1_PATCH */ |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 133 | #define SCP_ROM_PATCH_HASH_OID "1.3.6.1.4.1.4128.2100.802" |
| 134 | |
| 135 | |
| 136 | /* |
| 137 | * Trusted OS Firmware Key Certificate |
| 138 | */ |
| 139 | |
| 140 | /* TrustedOSFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 141 | #define TRUSTED_OS_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.901" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 142 | |
| 143 | |
| 144 | /* |
| 145 | * Trusted OS Firmware Content Certificate |
| 146 | */ |
| 147 | |
| 148 | /* TrustedOSFirmwareHash - BL32 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 149 | #define TRUSTED_OS_FW_HASH_OID "1.3.6.1.4.1.4128.2100.1001" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 150 | |
| 151 | |
| 152 | /* |
| 153 | * Non-Trusted Firmware Key Certificate |
| 154 | */ |
| 155 | |
| 156 | /* NonTrustedFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 157 | #define NON_TRUSTED_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.1101" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 158 | |
| 159 | |
| 160 | /* |
| 161 | * Non-Trusted Firmware Content Certificate |
| 162 | */ |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 163 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 164 | /* NonTrustedWorldBootloaderHash - BL33 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 165 | #define NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID "1.3.6.1.4.1.4128.2100.1201" |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 166 | |
| 167 | #endif /* __BOARD_ARM_OID_H__ */ |