This of module is in charge of securely handling the memory allocation/deallocation in NVSRAM.
§ ssbx_memsec_alloc()
Allocates memory in the NVSRAM.
The battery backed NVSRAM holds automatically encrypted/decrypted data. This memory is wiped in case of tamper attack on the system.
This allocator guarantees that data allocated by one box are visible only to this box.
- Parameters
-
[in] | h | pointer to the pointer to the memory handle |
[in] | size | size to allocate |
- Returns
- See error codes
§ ssbx_memsec_free()
Releases allocated secure memory (NVSRAM)
- Parameters
-
h | pointer to the memory handle |
- Returns
- See error codes
§ ssbx_memsec_read()
int ssbx_memsec_read |
( |
MEMSEC_HANDLE * |
h, |
|
|
unsigned int |
offset, |
|
|
unsigned int |
size |
|
) |
| |
Reads from secure memory (NVSRAM)
- Parameters
-
| h | pointer to the memory handle |
[in] | offset | The offset |
[in] | size | size to be read |
- Returns
- See error codes
§ ssbx_memsec_write()
int ssbx_memsec_write |
( |
MEMSEC_HANDLE * |
h, |
|
|
unsigned int |
offset, |
|
|
unsigned int |
size |
|
) |
| |
Writes to secure memory (NVSRAM)
- Parameters
-
| h | pointer to the memory handle |
[in] | offset | The offset |
[in] | size | The size |
- Returns
- See error codes