tbbr_oid.h 3.94 KB
Newer Older
1
/*
Soby Mathew's avatar
Soby Mathew committed
2
 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
8
#ifndef __TBBR_OID_H__
#define __TBBR_OID_H__
9
10

/*
Juan Castillo's avatar
Juan Castillo committed
11
12
13
14
 * 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.
15
16
17
 */


Juan Castillo's avatar
Juan Castillo committed
18
/* TrustedFirmwareNVCounter - Non-volatile counter extension */
19
#define TRUSTED_FW_NVCOUNTER_OID		"1.3.6.1.4.1.4128.2100.1"
Juan Castillo's avatar
Juan Castillo committed
20
/* NonTrustedFirmwareNVCounter - Non-volatile counter extension */
21
#define NON_TRUSTED_FW_NVCOUNTER_OID		"1.3.6.1.4.1.4128.2100.2"
22
23


Juan Castillo's avatar
Juan Castillo committed
24
25
26
27
28
/*
 * Non-Trusted Firmware Updater Certificate
 */

/* APFirmwareUpdaterConfigHash - BL2U */
29
#define AP_FWU_CFG_HASH_OID			"1.3.6.1.4.1.4128.2100.101"
Juan Castillo's avatar
Juan Castillo committed
30
/* SCPFirmwareUpdaterConfigHash - SCP_BL2U */
31
#define SCP_FWU_CFG_HASH_OID			"1.3.6.1.4.1.4128.2100.102"
Juan Castillo's avatar
Juan Castillo committed
32
/* FirmwareUpdaterHash - NS_BL2U */
33
#define FWU_HASH_OID				"1.3.6.1.4.1.4128.2100.103"
Juan Castillo's avatar
Juan Castillo committed
34
35
36
37
38
39
40
41
42
/* TrustedWatchdogRefreshTime */
#define TRUSTED_WATCHDOG_TIME_OID		"1.3.6.1.4.1.4128.2100.104"


/*
 * Trusted Boot Firmware Certificate
 */

/* TrustedBootFirmwareHash - BL2 */
43
#define TRUSTED_BOOT_FW_HASH_OID		"1.3.6.1.4.1.4128.2100.201"
Soby Mathew's avatar
Soby Mathew committed
44
45
#define TRUSTED_BOOT_FW_CONFIG_HASH_OID		"1.3.6.1.4.1.4128.2100.202"
#define HW_CONFIG_HASH_OID			"1.3.6.1.4.1.4128.2100.203"
Juan Castillo's avatar
Juan Castillo committed
46
47
48
49
50
51
52
53

/*
 * Trusted Key Certificate
 */

/* PrimaryDebugCertificatePK */
#define PRIMARY_DEBUG_PK_OID			"1.3.6.1.4.1.4128.2100.301"
/* TrustedWorldPK */
54
#define TRUSTED_WORLD_PK_OID			"1.3.6.1.4.1.4128.2100.302"
Juan Castillo's avatar
Juan Castillo committed
55
/* NonTrustedWorldPK */
56
#define NON_TRUSTED_WORLD_PK_OID		"1.3.6.1.4.1.4128.2100.303"
Juan Castillo's avatar
Juan Castillo committed
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75


/*
 * 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 */
76
#define SOC_FW_CONTENT_CERT_PK_OID		"1.3.6.1.4.1.4128.2100.501"
Juan Castillo's avatar
Juan Castillo committed
77
78
79
80

/*
 * SoC Firmware Content Certificate
 */
81

Juan Castillo's avatar
Juan Castillo committed
82
83
84
85
86
/* 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 */
87
#define SOC_AP_FW_HASH_OID			"1.3.6.1.4.1.4128.2100.603"
88
89
/* SoCFirmwareConfigHash = SOC_FW_CONFIG */
#define SOC_FW_CONFIG_HASH_OID			"1.3.6.1.4.1.4128.2100.604"
90

Juan Castillo's avatar
Juan Castillo committed
91
92
93
94
95
/*
 * SCP Firmware Key Certificate
 */

/* SCPFirmwareContentCertPK */
96
#define SCP_FW_CONTENT_CERT_PK_OID		"1.3.6.1.4.1.4128.2100.701"
Juan Castillo's avatar
Juan Castillo committed
97
98
99
100
101
102


/*
 * SCP Firmware Content Certificate
 */

103
/* SCPFirmwareHash - SCP_BL2 */
104
#define SCP_FW_HASH_OID				"1.3.6.1.4.1.4128.2100.801"
105
/* SCPRomPatchHash - SCP_BL1_PATCH */
Juan Castillo's avatar
Juan Castillo committed
106
107
108
109
110
111
112
113
#define SCP_ROM_PATCH_HASH_OID			"1.3.6.1.4.1.4128.2100.802"


/*
 * Trusted OS Firmware Key Certificate
 */

/* TrustedOSFirmwareContentCertPK */
114
#define TRUSTED_OS_FW_CONTENT_CERT_PK_OID	"1.3.6.1.4.1.4128.2100.901"
Juan Castillo's avatar
Juan Castillo committed
115
116
117
118
119
120
121


/*
 * Trusted OS Firmware Content Certificate
 */

/* TrustedOSFirmwareHash - BL32 */
122
#define TRUSTED_OS_FW_HASH_OID			"1.3.6.1.4.1.4128.2100.1001"
123
124
125
126
/* TrustedOSExtra1FirmwareHash - BL32 Extra1 */
#define TRUSTED_OS_FW_EXTRA1_HASH_OID		"1.3.6.1.4.1.4128.2100.1002"
/* TrustedOSExtra2FirmwareHash - BL32 Extra2 */
#define TRUSTED_OS_FW_EXTRA2_HASH_OID		"1.3.6.1.4.1.4128.2100.1003"
127
128
/* TrustedOSFirmwareConfigHash - TOS_FW_CONFIG */
#define TRUSTED_OS_FW_CONFIG_HASH_OID		"1.3.6.1.4.1.4128.2100.1004"
Juan Castillo's avatar
Juan Castillo committed
129
130
131
132
133
134
135


/*
 * Non-Trusted Firmware Key Certificate
 */

/* NonTrustedFirmwareContentCertPK */
136
#define NON_TRUSTED_FW_CONTENT_CERT_PK_OID	"1.3.6.1.4.1.4128.2100.1101"
Juan Castillo's avatar
Juan Castillo committed
137
138
139
140
141


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

Juan Castillo's avatar
Juan Castillo committed
143
/* NonTrustedWorldBootloaderHash - BL33 */
144
#define NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID	"1.3.6.1.4.1.4128.2100.1201"
145
146
/* NonTrustedFirmwareConfigHash - NT_FW_CONFIG */
#define NON_TRUSTED_FW_CONFIG_HASH_OID		"1.3.6.1.4.1.4128.2100.1202"
147

148
#endif /* __TBBR_OID_H__ */