blob: cbf22900641924e6b15cf035be4d30e83b737c31 [file] [log] [blame]
Dan Handley9df48042015-03-19 18:58:55 +00001/*
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 Castillo740bc522015-12-02 09:48:34 +000035 * 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 Handley9df48042015-03-19 18:58:55 +000039 *
Juan Castillo740bc522015-12-02 09:48:34 +000040 * 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 Handley9df48042015-03-19 18:58:55 +000043 */
44
Dan Handley9df48042015-03-19 18:58:55 +000045
Juan Castillo740bc522015-12-02 09:48:34 +000046/* TrustedFirmwareNVCounter - Non-volatile counter extension */
Juan Castillobe801202015-12-03 10:19:21 +000047#define TRUSTED_FW_NVCOUNTER_OID "1.3.6.1.4.1.4128.2100.1"
Juan Castillo740bc522015-12-02 09:48:34 +000048/* NonTrustedFirmwareNVCounter - Non-volatile counter extension */
Juan Castillobe801202015-12-03 10:19:21 +000049#define NON_TRUSTED_FW_NVCOUNTER_OID "1.3.6.1.4.1.4128.2100.2"
Dan Handley9df48042015-03-19 18:58:55 +000050
Dan Handley9df48042015-03-19 18:58:55 +000051
Juan Castillo740bc522015-12-02 09:48:34 +000052/*
53 * Non-Trusted Firmware Updater Certificate
54 */
55
56/* APFirmwareUpdaterConfigHash - BL2U */
Juan Castillobe801202015-12-03 10:19:21 +000057#define AP_FWU_CFG_HASH_OID "1.3.6.1.4.1.4128.2100.101"
Juan Castillo740bc522015-12-02 09:48:34 +000058/* SCPFirmwareUpdaterConfigHash - SCP_BL2U */
Juan Castillobe801202015-12-03 10:19:21 +000059#define SCP_FWU_CFG_HASH_OID "1.3.6.1.4.1.4128.2100.102"
Juan Castillo740bc522015-12-02 09:48:34 +000060/* FirmwareUpdaterHash - NS_BL2U */
Juan Castillobe801202015-12-03 10:19:21 +000061#define FWU_HASH_OID "1.3.6.1.4.1.4128.2100.103"
Juan Castillo740bc522015-12-02 09:48:34 +000062/* 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 Castillobe801202015-12-03 10:19:21 +000071#define TRUSTED_BOOT_FW_HASH_OID "1.3.6.1.4.1.4128.2100.201"
Juan Castillo740bc522015-12-02 09:48:34 +000072
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 Castillobe801202015-12-03 10:19:21 +000081#define TRUSTED_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.302"
Juan Castillo740bc522015-12-02 09:48:34 +000082/* NonTrustedWorldPK */
Juan Castillobe801202015-12-03 10:19:21 +000083#define NON_TRUSTED_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.303"
Juan Castillo740bc522015-12-02 09:48:34 +000084
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 Castillobe801202015-12-03 10:19:21 +0000103#define SOC_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.501"
Juan Castillo740bc522015-12-02 09:48:34 +0000104
105
106/*
107 * SoC Firmware Content Certificate
108 */
Dan Handley9df48042015-03-19 18:58:55 +0000109
Juan Castillo740bc522015-12-02 09:48:34 +0000110/* 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 Castillobe801202015-12-03 10:19:21 +0000115#define SOC_AP_FW_HASH_OID "1.3.6.1.4.1.4128.2100.603"
Dan Handley9df48042015-03-19 18:58:55 +0000116
Dan Handley9df48042015-03-19 18:58:55 +0000117
Juan Castillo740bc522015-12-02 09:48:34 +0000118/*
119 * SCP Firmware Key Certificate
120 */
121
122/* SCPFirmwareContentCertPK */
Juan Castillobe801202015-12-03 10:19:21 +0000123#define SCP_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.701"
Juan Castillo740bc522015-12-02 09:48:34 +0000124
125
126/*
127 * SCP Firmware Content Certificate
128 */
129
Juan Castilloa72b6472015-12-10 15:49:17 +0000130/* SCPFirmwareHash - SCP_BL2 */
Juan Castillobe801202015-12-03 10:19:21 +0000131#define SCP_FW_HASH_OID "1.3.6.1.4.1.4128.2100.801"
Juan Castilloa72b6472015-12-10 15:49:17 +0000132/* SCPRomPatchHash - SCP_BL1_PATCH */
Juan Castillo740bc522015-12-02 09:48:34 +0000133#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 Castillobe801202015-12-03 10:19:21 +0000141#define TRUSTED_OS_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.901"
Juan Castillo740bc522015-12-02 09:48:34 +0000142
143
144/*
145 * Trusted OS Firmware Content Certificate
146 */
147
148/* TrustedOSFirmwareHash - BL32 */
Juan Castillobe801202015-12-03 10:19:21 +0000149#define TRUSTED_OS_FW_HASH_OID "1.3.6.1.4.1.4128.2100.1001"
Juan Castillo740bc522015-12-02 09:48:34 +0000150
151
152/*
153 * Non-Trusted Firmware Key Certificate
154 */
155
156/* NonTrustedFirmwareContentCertPK */
Juan Castillobe801202015-12-03 10:19:21 +0000157#define NON_TRUSTED_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.1101"
Juan Castillo740bc522015-12-02 09:48:34 +0000158
159
160/*
161 * Non-Trusted Firmware Content Certificate
162 */
Dan Handley9df48042015-03-19 18:58:55 +0000163
Juan Castillo740bc522015-12-02 09:48:34 +0000164/* NonTrustedWorldBootloaderHash - BL33 */
Juan Castillobe801202015-12-03 10:19:21 +0000165#define NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID "1.3.6.1.4.1.4128.2100.1201"
Dan Handley9df48042015-03-19 18:58:55 +0000166
167#endif /* __BOARD_ARM_OID_H__ */