board_arm_oid.h 4.84 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * Neither the name of ARM nor the names of its contributors may be used
 * to endorse or promote products derived from this software without specific
 * prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef __BOARD_ARM_OID_H__
#define __BOARD_ARM_OID_H__

/*
Juan Castillo's avatar
Juan Castillo committed
35
36
37
38
 * The following is a list of OID values defined and reserved by ARM, which
 * are used to define the extension fields of the certificate structure, as
 * defined in the Trusted Board Boot Requirements (TBBR) specification,
 * ARM DEN0006C-1.
39
 *
Juan Castillo's avatar
Juan Castillo committed
40
41
42
 * Non-ARM platform owners that wish to align with the TBBR should define
 * constants with the same name in their own platform port(s), using their
 * own OIDs obtained from the ITU-T.
43
44
45
 */


Juan Castillo's avatar
Juan Castillo committed
46
/* TrustedFirmwareNVCounter - Non-volatile counter extension */
47
#define TRUSTED_FW_NVCOUNTER_OID		"1.3.6.1.4.1.4128.2100.1"
Juan Castillo's avatar
Juan Castillo committed
48
/* NonTrustedFirmwareNVCounter - Non-volatile counter extension */
49
#define NON_TRUSTED_FW_NVCOUNTER_OID		"1.3.6.1.4.1.4128.2100.2"
50
51


Juan Castillo's avatar
Juan Castillo committed
52
53
54
55
56
/*
 * Non-Trusted Firmware Updater Certificate
 */

/* APFirmwareUpdaterConfigHash - BL2U */
57
#define AP_FWU_CFG_HASH_OID			"1.3.6.1.4.1.4128.2100.101"
Juan Castillo's avatar
Juan Castillo committed
58
/* SCPFirmwareUpdaterConfigHash - SCP_BL2U */
59
#define SCP_FWU_CFG_HASH_OID			"1.3.6.1.4.1.4128.2100.102"
Juan Castillo's avatar
Juan Castillo committed
60
/* FirmwareUpdaterHash - NS_BL2U */
61
#define FWU_HASH_OID				"1.3.6.1.4.1.4128.2100.103"
Juan Castillo's avatar
Juan Castillo committed
62
63
64
65
66
67
68
69
70
/* TrustedWatchdogRefreshTime */
#define TRUSTED_WATCHDOG_TIME_OID		"1.3.6.1.4.1.4128.2100.104"


/*
 * Trusted Boot Firmware Certificate
 */

/* TrustedBootFirmwareHash - BL2 */
71
#define TRUSTED_BOOT_FW_HASH_OID		"1.3.6.1.4.1.4128.2100.201"
Juan Castillo's avatar
Juan Castillo committed
72
73
74
75
76
77
78
79
80


/*
 * Trusted Key Certificate
 */

/* PrimaryDebugCertificatePK */
#define PRIMARY_DEBUG_PK_OID			"1.3.6.1.4.1.4128.2100.301"
/* TrustedWorldPK */
81
#define TRUSTED_WORLD_PK_OID			"1.3.6.1.4.1.4128.2100.302"
Juan Castillo's avatar
Juan Castillo committed
82
/* NonTrustedWorldPK */
83
#define NON_TRUSTED_WORLD_PK_OID		"1.3.6.1.4.1.4128.2100.303"
Juan Castillo's avatar
Juan Castillo committed
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102


/*
 * Trusted Debug Certificate
 */

/* DebugScenario */
#define TRUSTED_DEBUG_SCENARIO_OID		"1.3.6.1.4.1.4128.2100.401"
/* SoC Specific */
#define TRUSTED_DEBUG_SOC_SPEC_OID		"1.3.6.1.4.1.4128.2100.402"
/* SecondaryDebugCertPK */
#define SECONDARY_DEBUG_PK_OID			"1.3.6.1.4.1.4128.2100.403"


/*
 * SoC Firmware Key Certificate
 */

/* SoCFirmwareContentCertPK */
103
#define SOC_FW_CONTENT_CERT_PK_OID		"1.3.6.1.4.1.4128.2100.501"
Juan Castillo's avatar
Juan Castillo committed
104
105
106
107
108


/*
 * SoC Firmware Content Certificate
 */
109

Juan Castillo's avatar
Juan Castillo committed
110
111
112
113
114
/* APRomPatchHash - BL1_PATCH */
#define APROM_PATCH_HASH_OID			"1.3.6.1.4.1.4128.2100.601"
/* SoCConfigHash */
#define SOC_CONFIG_HASH_OID			"1.3.6.1.4.1.4128.2100.602"
/* SoCAPFirmwareHash - BL31 */
115
#define SOC_AP_FW_HASH_OID			"1.3.6.1.4.1.4128.2100.603"
116
117


Juan Castillo's avatar
Juan Castillo committed
118
119
120
121
122
/*
 * SCP Firmware Key Certificate
 */

/* SCPFirmwareContentCertPK */
123
#define SCP_FW_CONTENT_CERT_PK_OID		"1.3.6.1.4.1.4128.2100.701"
Juan Castillo's avatar
Juan Castillo committed
124
125
126
127
128
129
130


/*
 * SCP Firmware Content Certificate
 */

/* SCPFirmwareHash - BL30 */
131
#define SCP_FW_HASH_OID				"1.3.6.1.4.1.4128.2100.801"
Juan Castillo's avatar
Juan Castillo committed
132
133
134
135
136
137
138
139
140
/* SCPRomPatchHash - BL0_PATCH */
#define SCP_ROM_PATCH_HASH_OID			"1.3.6.1.4.1.4128.2100.802"


/*
 * Trusted OS Firmware Key Certificate
 */

/* TrustedOSFirmwareContentCertPK */
141
#define TRUSTED_OS_FW_CONTENT_CERT_PK_OID	"1.3.6.1.4.1.4128.2100.901"
Juan Castillo's avatar
Juan Castillo committed
142
143
144
145
146
147
148


/*
 * Trusted OS Firmware Content Certificate
 */

/* TrustedOSFirmwareHash - BL32 */
149
#define TRUSTED_OS_FW_HASH_OID			"1.3.6.1.4.1.4128.2100.1001"
Juan Castillo's avatar
Juan Castillo committed
150
151
152
153
154
155
156


/*
 * Non-Trusted Firmware Key Certificate
 */

/* NonTrustedFirmwareContentCertPK */
157
#define NON_TRUSTED_FW_CONTENT_CERT_PK_OID	"1.3.6.1.4.1.4128.2100.1101"
Juan Castillo's avatar
Juan Castillo committed
158
159
160
161
162


/*
 * Non-Trusted Firmware Content Certificate
 */
163

Juan Castillo's avatar
Juan Castillo committed
164
/* NonTrustedWorldBootloaderHash - BL33 */
165
#define NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID	"1.3.6.1.4.1.4128.2100.1201"
166
167

#endif /* __BOARD_ARM_OID_H__ */