BOLOS TEE
|
Shared memory API providing a common zone for applications to keep persistent private data in a session. More...
Go to the source code of this file.
Functions | |
int | bls_sharedmemory_get_size (void) |
Get the size of the shared memory area. More... | |
size_t | bls_sharedmemory_read (const uint8_t *parameters, uint32_t offset, size_t parametersLength) |
Read data from the shared memory area. More... | |
size_t | bls_sharedmemory_write (const uint8_t *parameters, uint32_t offset, size_t parametersLength) |
Write data to the shared memory area. More... | |
Shared memory API providing a common zone for applications to keep persistent private data in a session.
The shared memory API provides a small transient storage area for all applications that isn't shared with the host. It can be used to implement basic anti replay mechanisms when the anti replay API is not available
int bls_sharedmemory_get_size | ( | void | ) |
Get the size of the shared memory area.
size_t bls_sharedmemory_read | ( | const uint8_t * | parameters, |
uint32_t | offset, | ||
size_t | parametersLength | ||
) |
Read data from the shared memory area.
[out] | parameters | buffer to store the data |
[in] | offset | offset to start reading the data from |
[in] | parametersLength | length of data to read |
size_t bls_sharedmemory_write | ( | const uint8_t * | parameters, |
uint32_t | offset, | ||
size_t | parametersLength | ||
) |
Write data to the shared memory area.
[out] | parameters | buffer containing the data |
[in] | offset | offset to start writing the data to |
[in] | parametersLength | length of data to write |