blob: b29212e40edbb75c22618fa3b49ae21989f1599d [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 */
47#define TZ_FW_NVCOUNTER_OID "1.3.6.1.4.1.4128.2100.1"
48/* NonTrustedFirmwareNVCounter - Non-volatile counter extension */
49#define NTZ_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 */
57#define BL2U_HASH_OID "1.3.6.1.4.1.4128.2100.101"
58/* SCPFirmwareUpdaterConfigHash - SCP_BL2U */
59#define SCP_BL2U_HASH_OID "1.3.6.1.4.1.4128.2100.102"
60/* FirmwareUpdaterHash - NS_BL2U */
61#define NS_BL2U_HASH_OID "1.3.6.1.4.1.4128.2100.103"
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 */
71#define BL2_HASH_OID "1.3.6.1.4.1.4128.2100.201"
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 */
81#define TZ_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.302"
82/* NonTrustedWorldPK */
83#define NTZ_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.303"
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 */
103#define BL31_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.501"
104
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 */
115#define BL31_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 */
123#define BL30_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.701"
124
125
126/*
127 * SCP Firmware Content Certificate
128 */
129
130/* SCPFirmwareHash - BL30 */
131#define BL30_HASH_OID "1.3.6.1.4.1.4128.2100.801"
132/* SCPRomPatchHash - BL0_PATCH */
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 */
141#define BL32_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.901"
142
143
144/*
145 * Trusted OS Firmware Content Certificate
146 */
147
148/* TrustedOSFirmwareHash - BL32 */
149#define BL32_HASH_OID "1.3.6.1.4.1.4128.2100.1001"
150
151
152/*
153 * Non-Trusted Firmware Key Certificate
154 */
155
156/* NonTrustedFirmwareContentCertPK */
157#define BL33_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.1101"
158
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 */
165#define BL33_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__ */