le_secStore_interface.h
Go to the documentation of this file.
24 * etc. All data in the secure storage is in an encrypted format. Each app using this API only has27 * App's items in secure storage have a name and a value. The item name is used to access the item's31 * To create or update an item, use le_secStore_Write() to specify the item's name and value. If the32 * item doesn't exist, it'll be created. Each item can be a maximum of 8192 bytes. If it's larger,35 * Additionally, an app's total secure storage usage is limited by the maxSecureStorageBytes setting38 * Writing to secure storage may also fail if the system-wide secure storage is out of memory. The62 * If corruption in the secure storage is detected, a restore is performed and the target device is114 //--------------------------------------------------------------------------------------------------118 //--------------------------------------------------------------------------------------------------121 //--------------------------------------------------------------------------------------------------124 * Connect the current client thread to the service providing this API. Block until the service is127 * For each thread that wants to use this API, either ConnectService or TryConnectService must be128 * called before any other functions in this API. Normally, ConnectService is automatically called133 //--------------------------------------------------------------------------------------------------139 //--------------------------------------------------------------------------------------------------142 * Try to connect the current client thread to the service providing this API. Return with an error145 * For each thread that wants to use this API, either ConnectService or TryConnectService must be146 * called before any other functions in this API. Normally, ConnectService is automatically called155 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).158 //--------------------------------------------------------------------------------------------------164 //--------------------------------------------------------------------------------------------------168 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants171 //--------------------------------------------------------------------------------------------------178 //--------------------------------------------------------------------------------------------------184 * longer a connection to the service, and the functions in this API can't be used. For details, see189 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------207 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.215 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------229 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.239 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------279 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------301 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------le_result_t le_secStore_EndBatchWrite(void)le_result_t le_secStore_Delete(const char *LE_NONNULL name)le_result_t le_secStore_StartBatchWrite(void)void le_secStore_DisconnectService(void)le_result_t le_secStore_GetMinimumBufferSize(const char *LE_NONNULL path, uint32_t *sizePtr)le_result_t le_secStore_Write(const char *LE_NONNULL name, const uint8_t *bufPtr, size_t bufSize)void(* le_secStore_DisconnectHandler_t)(void *)Definition: le_secStore_interface.h:119void le_secStore_ConnectService(void)LE_FULL_API void le_secStore_SetServerDisconnectHandler(le_secStore_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_secStore_Read(const char *LE_NONNULL name, uint8_t *bufPtr, size_t *bufSizePtr)le_result_t le_secStore_TryConnectService(void)