TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
attest_eat_defines.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __ATTEST_EAT_DEFINES_H__
9 #define __ATTEST_EAT_DEFINES_H__
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #define EAT_CBOR_ARM_RANGE_BASE (-75000)
16 #define EAT_CBOR_ARM_LABEL_PROFILE_DEFINITION (EAT_CBOR_ARM_RANGE_BASE - 0)
17 #define EAT_CBOR_ARM_LABEL_CLIENT_ID (EAT_CBOR_ARM_RANGE_BASE - 1)
18 #define EAT_CBOR_ARM_LABEL_SECURITY_LIFECYCLE (EAT_CBOR_ARM_RANGE_BASE - 2)
19 #define EAT_CBOR_ARM_LABEL_IMPLEMENTATION_ID (EAT_CBOR_ARM_RANGE_BASE - 3)
20 #define EAT_CBOR_ARM_LABEL_BOOT_SEED (EAT_CBOR_ARM_RANGE_BASE - 4)
21 #define EAT_CBOR_ARM_LABEL_HW_VERSION (EAT_CBOR_ARM_RANGE_BASE - 5)
22 #define EAT_CBOR_ARM_LABEL_SW_COMPONENTS (EAT_CBOR_ARM_RANGE_BASE - 6)
23 #define EAT_CBOR_ARM_LABEL_NO_SW_COMPONENTS (EAT_CBOR_ARM_RANGE_BASE - 7)
24 #define EAT_CBOR_ARM_LABEL_CHALLENGE (EAT_CBOR_ARM_RANGE_BASE - 8)
25 #define EAT_CBOR_ARM_LABEL_UEID (EAT_CBOR_ARM_RANGE_BASE - 9)
26 #define EAT_CBOR_ARM_LABEL_ORIGINATION (EAT_CBOR_ARM_RANGE_BASE - 10)
27 
28 #define EAT_CBOR_SW_COMPONENT_MEASUREMENT_TYPE (1)
29 #define EAT_CBOR_SW_COMPONENT_MEASUREMENT_VALUE (2)
30 /* Reserved (3) */
31 #define EAT_CBOR_SW_COMPONENT_VERSION (4)
32 #define EAT_CBOR_SW_COMPONENT_SIGNER_ID (5)
33 #define EAT_CBOR_SW_COMPONENT_MEASUREMENT_DESC (6)
34 
35 /* Indicates that the boot status intentionally (i.e. boot loader does not
36  * capable to produce it) does not contain any SW components' measurement.
37  * Required integer value for claim labeled EAT_CBOR_ARM_LABEL_NO_SW_COMPONENTS.
38  */
39 #define NO_SW_COMPONENT_FIXED_VALUE 1
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* __ATTEST_EAT_DEFINES_H__ */