OPTIGA™ Trust M
Host Library Documentation
|
This file provides API prototypes of platform abstraction layer for datastore operations. More...
#include "optiga/pal/pal.h"
Go to the source code of this file.
#define | OPTIGA_PLATFORM_BINDING_SHARED_SECRET_ID (0x11) |
Identifier to store and read OPTIGA Platform Binding Shared secret on host platform. More... | |
#define | OPTIGA_SHARED_SECRET_MAX_LENGTH (0x40) |
Maximum shared secret length this value is bind with OPTIGA_PLATFORM_BINDING_SHARED_SECRET_ID. More... | |
#define | OPTIGA_LIB_PAL_DATA_STORE_NOT_CONFIGURED (0x00) |
#define | OPTIGA_COMMS_MANAGE_CONTEXT_ID (0x22) |
#define | OPTIGA_HIBERNATE_CONTEXT_ID (0x33) |
pal_status_t | pal_os_datastore_read (uint16_t datastore_id, uint8_t *p_buffer, uint16_t *p_buffer_length) |
Reads data from the specified location for a given datastore_id. More... | |
pal_status_t | pal_os_datastore_write (uint16_t datastore_id, const uint8_t *p_buffer, uint16_t length) |
Writes data to the specified location for a given datastore_id. More... | |
This file provides API prototypes of platform abstraction layer for datastore operations.
Definition in file pal_os_datastore.h.
#define OPTIGA_COMMS_MANAGE_CONTEXT_ID (0x22) |
Definition at line 61 of file pal_os_datastore.h.
#define OPTIGA_HIBERNATE_CONTEXT_ID (0x33) |
Definition at line 67 of file pal_os_datastore.h.
#define OPTIGA_LIB_PAL_DATA_STORE_NOT_CONFIGURED (0x00) |
Definition at line 55 of file pal_os_datastore.h.
#define OPTIGA_PLATFORM_BINDING_SHARED_SECRET_ID (0x11) |
Identifier to store and read OPTIGA Platform Binding Shared secret on host platform.
Definition at line 49 of file pal_os_datastore.h.
#define OPTIGA_SHARED_SECRET_MAX_LENGTH (0x40) |
Maximum shared secret length this value is bind with OPTIGA_PLATFORM_BINDING_SHARED_SECRET_ID.
Definition at line 52 of file pal_os_datastore.h.
pal_status_t pal_os_datastore_read | ( | uint16_t | datastore_id, |
uint8_t * | p_buffer, | ||
uint16_t * | p_buffer_length | ||
) |
Reads data from the specified location for a given datastore_id.
Reads data from the specified location for a given datastore_id.
[in] | datastore_id | Datastore id from where the data should be read. |
[out] | p_buffer | Valid Pointer to output buffer |
[in,out] | p_buffer_length | Valid Pointer to the data buffer length to store the read data length. The input value gets updated with the actual length read from the data store. |
PAL_STATUS_SUCCESS | On successful execution |
PAL_STATUS_FAILURE | On failure |
pal_status_t pal_os_datastore_write | ( | uint16_t | datastore_id, |
const uint8_t * | p_buffer, | ||
uint16_t | length | ||
) |
Writes data to the specified location for a given datastore_id.
Writes data to the specified location for a given datastore_id.
[in] | datastore_id | Datastore id where the data should be written. |
[in] | p_buffer | Valid pointer to the input buffer |
[in] | length | Length of the data to be written |
PAL_STATUS_SUCCESS | On successful execution |
PAL_STATUS_FAILURE | On failure |