blob: 18ddbdc2a591104778f8e6810f9696691a1a5c61 [file] [log] [blame]
Dan Handley9df48042015-03-19 18:58:55 +00001/*
Soby Mathew2ffb4732017-11-07 16:50:31 +00002 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
Dan Handley9df48042015-03-19 18:58:55 +00003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Dan Handley9df48042015-03-19 18:58:55 +00005 */
6
Masahiro Yamadaa27c1662017-05-22 12:11:24 +09007#ifndef __TBBR_OID_H__
8#define __TBBR_OID_H__
Dan Handley9df48042015-03-19 18:58:55 +00009
10/*
Juan Castillo740bc522015-12-02 09:48:34 +000011 * 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 Handley9df48042015-03-19 18:58:55 +000015 */
16
Dan Handley9df48042015-03-19 18:58:55 +000017
Juan Castillo740bc522015-12-02 09:48:34 +000018/* TrustedFirmwareNVCounter - Non-volatile counter extension */
Juan Castillobe801202015-12-03 10:19:21 +000019#define TRUSTED_FW_NVCOUNTER_OID "1.3.6.1.4.1.4128.2100.1"
Juan Castillo740bc522015-12-02 09:48:34 +000020/* NonTrustedFirmwareNVCounter - Non-volatile counter extension */
Juan Castillobe801202015-12-03 10:19:21 +000021#define NON_TRUSTED_FW_NVCOUNTER_OID "1.3.6.1.4.1.4128.2100.2"
Dan Handley9df48042015-03-19 18:58:55 +000022
Dan Handley9df48042015-03-19 18:58:55 +000023
Juan Castillo740bc522015-12-02 09:48:34 +000024/*
25 * Non-Trusted Firmware Updater Certificate
26 */
27
28/* APFirmwareUpdaterConfigHash - BL2U */
Juan Castillobe801202015-12-03 10:19:21 +000029#define AP_FWU_CFG_HASH_OID "1.3.6.1.4.1.4128.2100.101"
Juan Castillo740bc522015-12-02 09:48:34 +000030/* SCPFirmwareUpdaterConfigHash - SCP_BL2U */
Juan Castillobe801202015-12-03 10:19:21 +000031#define SCP_FWU_CFG_HASH_OID "1.3.6.1.4.1.4128.2100.102"
Juan Castillo740bc522015-12-02 09:48:34 +000032/* FirmwareUpdaterHash - NS_BL2U */
Juan Castillobe801202015-12-03 10:19:21 +000033#define FWU_HASH_OID "1.3.6.1.4.1.4128.2100.103"
Juan Castillo740bc522015-12-02 09:48:34 +000034/* 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 Castillobe801202015-12-03 10:19:21 +000043#define TRUSTED_BOOT_FW_HASH_OID "1.3.6.1.4.1.4128.2100.201"
Soby Mathew2ffb4732017-11-07 16:50:31 +000044#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 Castillo740bc522015-12-02 09:48:34 +000046
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 Castillobe801202015-12-03 10:19:21 +000054#define TRUSTED_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.302"
Juan Castillo740bc522015-12-02 09:48:34 +000055/* NonTrustedWorldPK */
Juan Castillobe801202015-12-03 10:19:21 +000056#define NON_TRUSTED_WORLD_PK_OID "1.3.6.1.4.1.4128.2100.303"
Juan Castillo740bc522015-12-02 09:48:34 +000057
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 Castillobe801202015-12-03 10:19:21 +000076#define SOC_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.501"
Juan Castillo740bc522015-12-02 09:48:34 +000077
78
79/*
80 * SoC Firmware Content Certificate
81 */
Dan Handley9df48042015-03-19 18:58:55 +000082
Juan Castillo740bc522015-12-02 09:48:34 +000083/* APRomPatchHash - BL1_PATCH */
84#define APROM_PATCH_HASH_OID "1.3.6.1.4.1.4128.2100.601"
85/* SoCConfigHash */
86#define SOC_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.602"
87/* SoCAPFirmwareHash - BL31 */
Juan Castillobe801202015-12-03 10:19:21 +000088#define SOC_AP_FW_HASH_OID "1.3.6.1.4.1.4128.2100.603"
Dan Handley9df48042015-03-19 18:58:55 +000089
Dan Handley9df48042015-03-19 18:58:55 +000090
Juan Castillo740bc522015-12-02 09:48:34 +000091/*
92 * SCP Firmware Key Certificate
93 */
94
95/* SCPFirmwareContentCertPK */
Juan Castillobe801202015-12-03 10:19:21 +000096#define SCP_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.701"
Juan Castillo740bc522015-12-02 09:48:34 +000097
98
99/*
100 * SCP Firmware Content Certificate
101 */
102
Juan Castilloa72b6472015-12-10 15:49:17 +0000103/* SCPFirmwareHash - SCP_BL2 */
Juan Castillobe801202015-12-03 10:19:21 +0000104#define SCP_FW_HASH_OID "1.3.6.1.4.1.4128.2100.801"
Juan Castilloa72b6472015-12-10 15:49:17 +0000105/* SCPRomPatchHash - SCP_BL1_PATCH */
Juan Castillo740bc522015-12-02 09:48:34 +0000106#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 Castillobe801202015-12-03 10:19:21 +0000114#define TRUSTED_OS_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.901"
Juan Castillo740bc522015-12-02 09:48:34 +0000115
116
117/*
118 * Trusted OS Firmware Content Certificate
119 */
120
121/* TrustedOSFirmwareHash - BL32 */
Juan Castillobe801202015-12-03 10:19:21 +0000122#define TRUSTED_OS_FW_HASH_OID "1.3.6.1.4.1.4128.2100.1001"
Summer Qin80726782017-04-20 16:28:39 +0100123/* 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"
Juan Castillo740bc522015-12-02 09:48:34 +0000127
128
129/*
130 * Non-Trusted Firmware Key Certificate
131 */
132
133/* NonTrustedFirmwareContentCertPK */
Juan Castillobe801202015-12-03 10:19:21 +0000134#define NON_TRUSTED_FW_CONTENT_CERT_PK_OID "1.3.6.1.4.1.4128.2100.1101"
Juan Castillo740bc522015-12-02 09:48:34 +0000135
136
137/*
138 * Non-Trusted Firmware Content Certificate
139 */
Dan Handley9df48042015-03-19 18:58:55 +0000140
Juan Castillo740bc522015-12-02 09:48:34 +0000141/* NonTrustedWorldBootloaderHash - BL33 */
Juan Castillobe801202015-12-03 10:19:21 +0000142#define NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID "1.3.6.1.4.1.4128.2100.1201"
Dan Handley9df48042015-03-19 18:58:55 +0000143
Masahiro Yamadaa27c1662017-05-22 12:11:24 +0900144#endif /* __TBBR_OID_H__ */