le_secStore_interface.h
Go to the documentation of this file.
22 * etc. All data in the secure storage is in an encrypted format. Each app using this API only has25 * App's items in secure storage have a name and a value. The item name is used to access the item's29 * To create or update an item, use le_secStore_Write() to specify the item's name and value. If the30 * item doesn't exist, it'll be created. Each item can be a maximum of 8192 bytes. If it's larger,33 * Additionally, an app's total secure storage usage is limited by the maxSecureStorageBytes setting36 * Writing to secure storage may also fail if the system-wide secure storage is out of memory. The56 * If corruption in the secure storage is detected, a restore is performed and the target device is77 //--------------------------------------------------------------------------------------------------80 * Connect the current client thread to the service providing this API. Block until the service is84 * called before any other functions in this API. Normally, ConnectService is automatically called89 //--------------------------------------------------------------------------------------------------95 //--------------------------------------------------------------------------------------------------98 * Try to connect the current client thread to the service providing this API. Return with an error101 * For each thread that wants to use this API, either ConnectService or TryConnectService must be102 * called before any other functions in this API. Normally, ConnectService is automatically called109 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.110 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).113 //--------------------------------------------------------------------------------------------------119 //--------------------------------------------------------------------------------------------------125 * longer a connection to the service, and the functions in this API can't be used. For details, see130 //--------------------------------------------------------------------------------------------------137 //--------------------------------------------------------------------------------------------------141 //--------------------------------------------------------------------------------------------------145 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------151 //--------------------------------------------------------------------------------------------------155 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------217 //--------------------------------------------------------------------------------------------------le_result_t le_secStore_Read(const char *name, uint8_t *bufPtr, size_t *bufNumElementsPtr)le_result_t le_secStore_TryConnectService(void)le_result_t le_secStore_Write(const char *name, const uint8_t *bufPtr, size_t bufNumElements)void le_secStore_ConnectService(void)le_result_t le_secStore_Delete(const char *name)void le_secStore_DisconnectService(void)