Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 1 | /* |
Soby Mathew | 2ffb473 | 2017-11-07 16:50:31 +0000 | [diff] [blame] | 2 | * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef TBBR_OID_H |
| 8 | #define TBBR_OID_H |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 9 | |
| 10 | /* |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 11 | * The following is a list of OID values defined and reserved by ARM, which |
| 12 | * are used to define the extension fields of the certificate structure, as |
| 13 | * defined in the Trusted Board Boot Requirements (TBBR) specification, |
| 14 | * ARM DEN0006C-1. |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 17 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 18 | /* TrustedFirmwareNVCounter - Non-volatile counter extension */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 19 | #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] | 20 | /* NonTrustedFirmwareNVCounter - Non-volatile counter extension */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 21 | #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] | 22 | |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 23 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 24 | /* |
| 25 | * Non-Trusted Firmware Updater Certificate |
| 26 | */ |
| 27 | |
| 28 | /* APFirmwareUpdaterConfigHash - BL2U */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 29 | #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] | 30 | /* SCPFirmwareUpdaterConfigHash - SCP_BL2U */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 31 | #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] | 32 | /* FirmwareUpdaterHash - NS_BL2U */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 33 | #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] | 34 | /* TrustedWatchdogRefreshTime */ |
| 35 | #define TRUSTED_WATCHDOG_TIME_OID "1.3.6.1.4.1.4128.2100.104" |
| 36 | |
| 37 | |
| 38 | /* |
| 39 | * Trusted Boot Firmware Certificate |
| 40 | */ |
| 41 | |
| 42 | /* TrustedBootFirmwareHash - BL2 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 43 | #define TRUSTED_BOOT_FW_HASH_OID "1.3.6.1.4.1.4128.2100.201" |
Soby Mathew | 2ffb473 | 2017-11-07 16:50:31 +0000 | [diff] [blame] | 44 | #define TRUSTED_BOOT_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.202" |
| 45 | #define HW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.203" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 46 | |
| 47 | /* |
| 48 | * Trusted Key Certificate |
| 49 | */ |
| 50 | |
| 51 | /* PrimaryDebugCertificatePK */ |
| 52 | #define PRIMARY_DEBUG_PK_OID "1.3.6.1.4.1.4128.2100.301" |
| 53 | /* TrustedWorldPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 54 | #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] | 55 | /* NonTrustedWorldPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 56 | #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] | 57 | |
| 58 | |
| 59 | /* |
| 60 | * Trusted Debug Certificate |
| 61 | */ |
| 62 | |
| 63 | /* DebugScenario */ |
| 64 | #define TRUSTED_DEBUG_SCENARIO_OID "1.3.6.1.4.1.4128.2100.401" |
| 65 | /* SoC Specific */ |
| 66 | #define TRUSTED_DEBUG_SOC_SPEC_OID "1.3.6.1.4.1.4128.2100.402" |
| 67 | /* SecondaryDebugCertPK */ |
| 68 | #define SECONDARY_DEBUG_PK_OID "1.3.6.1.4.1.4128.2100.403" |
| 69 | |
| 70 | |
| 71 | /* |
| 72 | * SoC Firmware Key Certificate |
| 73 | */ |
| 74 | |
| 75 | /* SoCFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 76 | #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] | 77 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 78 | /* |
| 79 | * SoC Firmware Content Certificate |
| 80 | */ |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 81 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 82 | /* APRomPatchHash - BL1_PATCH */ |
| 83 | #define APROM_PATCH_HASH_OID "1.3.6.1.4.1.4128.2100.601" |
| 84 | /* SoCConfigHash */ |
| 85 | #define SOC_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.602" |
| 86 | /* SoCAPFirmwareHash - BL31 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 87 | #define SOC_AP_FW_HASH_OID "1.3.6.1.4.1.4128.2100.603" |
Soby Mathew | 2bb78d3 | 2018-03-29 14:29:55 +0100 | [diff] [blame] | 88 | /* SoCFirmwareConfigHash = SOC_FW_CONFIG */ |
| 89 | #define SOC_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.604" |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 90 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 91 | /* |
| 92 | * SCP Firmware Key Certificate |
| 93 | */ |
| 94 | |
| 95 | /* SCPFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 96 | #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] | 97 | |
| 98 | |
| 99 | /* |
| 100 | * SCP Firmware Content Certificate |
| 101 | */ |
| 102 | |
Juan Castillo | a72b647 | 2015-12-10 15:49:17 +0000 | [diff] [blame] | 103 | /* SCPFirmwareHash - SCP_BL2 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 104 | #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] | 105 | /* SCPRomPatchHash - SCP_BL1_PATCH */ |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 106 | #define SCP_ROM_PATCH_HASH_OID "1.3.6.1.4.1.4128.2100.802" |
| 107 | |
| 108 | |
| 109 | /* |
| 110 | * Trusted OS Firmware Key Certificate |
| 111 | */ |
| 112 | |
| 113 | /* TrustedOSFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 114 | #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] | 115 | |
| 116 | |
| 117 | /* |
| 118 | * Trusted OS Firmware Content Certificate |
| 119 | */ |
| 120 | |
| 121 | /* TrustedOSFirmwareHash - BL32 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 122 | #define TRUSTED_OS_FW_HASH_OID "1.3.6.1.4.1.4128.2100.1001" |
Summer Qin | 8072678 | 2017-04-20 16:28:39 +0100 | [diff] [blame] | 123 | /* TrustedOSExtra1FirmwareHash - BL32 Extra1 */ |
| 124 | #define TRUSTED_OS_FW_EXTRA1_HASH_OID "1.3.6.1.4.1.4128.2100.1002" |
| 125 | /* TrustedOSExtra2FirmwareHash - BL32 Extra2 */ |
| 126 | #define TRUSTED_OS_FW_EXTRA2_HASH_OID "1.3.6.1.4.1.4128.2100.1003" |
Soby Mathew | 2bb78d3 | 2018-03-29 14:29:55 +0100 | [diff] [blame] | 127 | /* TrustedOSFirmwareConfigHash - TOS_FW_CONFIG */ |
| 128 | #define TRUSTED_OS_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.1004" |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 129 | |
| 130 | |
| 131 | /* |
| 132 | * Non-Trusted Firmware Key Certificate |
| 133 | */ |
| 134 | |
| 135 | /* NonTrustedFirmwareContentCertPK */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 136 | #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] | 137 | |
| 138 | |
| 139 | /* |
| 140 | * Non-Trusted Firmware Content Certificate |
| 141 | */ |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 142 | |
Juan Castillo | 740bc52 | 2015-12-02 09:48:34 +0000 | [diff] [blame] | 143 | /* NonTrustedWorldBootloaderHash - BL33 */ |
Juan Castillo | be80120 | 2015-12-03 10:19:21 +0000 | [diff] [blame] | 144 | #define NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID "1.3.6.1.4.1.4128.2100.1201" |
Soby Mathew | 2bb78d3 | 2018-03-29 14:29:55 +0100 | [diff] [blame] | 145 | /* NonTrustedFirmwareConfigHash - NT_FW_CONFIG */ |
| 146 | #define NON_TRUSTED_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.1202" |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 147 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 148 | #endif /* TBBR_OID_H */ |