| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmb.h
Go to the documentation of this file.
1
9 #pragma once
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
16 enum {
17 RPMB_TYPE_BLOCK = 0,
18 RPMB_TYPE_BYTE = 1,
19 };
20
21 #include <tee_internal_api.h>
22
33 DSO_EXPORT TEE_Result TEES_RPMBRead(uint32_t partition, uint32_t offset,
34 uint8_t *data, uint32_t size, uint8_t type);
35
46 DSO_EXPORT TEE_Result TEES_RPMBWrite(uint32_t partition, uint32_t offset,
47 const uint8_t *data, uint32_t size, uint8_t type);
48
57 DSO_EXPORT TEE_Result TEES_RPMBCheckEnable(void);
58
59 #ifdef RPMB_TEST
60
66 DSO_LOCAL TEE_Result TEES_RPMBGetDPID(unsigned int *partition_id);
67
74 DSO_LOCAL TEE_Result TEES_RPMBCleanPAC(unsigned int partition_id);
75 #endif /* RPMB_TEST */
76
77 #ifdef __cplusplus
78 }
79 #endif
80
RPMB_TYPE_BLOCK
Definition: rpmb.h:17
RPMB_TYPE_BYTE
Definition: rpmb.h:18
TEES_RPMBWrite
TEE_Result TEES_RPMBWrite(uint32_t partition, uint32_t offset, const uint8_t *data, uint32_t size, uint8_t type)
Write data to RPMB Storage.
TEES_RPMBCheckEnable
TEE_Result TEES_RPMBCheckEnable(void)
Check RPMB availability.
TEES_RPMBRead
TEE_Result TEES_RPMBRead(uint32_t partition, uint32_t offset, uint8_t *data, uint32_t size, uint8_t type)
Read data from RPMB Storage.