Samsung Internal API reference  2.0
tees_rot.h
Go to the documentation of this file.
1 
9 #ifndef _TEES_ROT_H
10 #define _TEES_ROT_H
11 
12 #include <core/crypto_info.h>
13 #include <tee_internal_api.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
22 #define SHA256_DIGEST_LEN 32
23 
27 typedef struct rot_t {
28  uint32_t verified_boot_state;
29  uint32_t device_locked;
30  uint32_t os_version;
31  uint32_t patch_month_year;
32  uint8_t verified_boot_key[SHA256_DIGEST_LEN];
33  uint64_t reserved[4];
34 #ifdef CONFIG_GPCP
35  /* Fields to pass client identity through GPCP */
36  UUID client_uuid;
37  AUTHORITY client_authority;
38 #endif /* CONFIG_GPCP */
40 
55 DSO_EXPORT TEE_Result TEES_GetRoT(ROOT_OF_TRUST *rot);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* !__TEES_ROT__ */
struct rot_t ROOT_OF_TRUST
Structure to handle Root of Trust information.
Structure to handle Root of Trust information.
Definition: tees_rot.h:27
#define SHA256_DIGEST_LEN
SHA256_DIGEST_LEN is defined to set size for verified_boot_key of ROOT_OF_TRUST.
Definition: tees_rot.h:22
TEE_Result TEES_GetRoT(ROOT_OF_TRUST *rot)
Get RoT information.