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. The58 * If corruption in the secure storage is detected, a restore is performed and the target device is105 //--------------------------------------------------------------------------------------------------109 //--------------------------------------------------------------------------------------------------112 //--------------------------------------------------------------------------------------------------115 * Connect the current client thread to the service providing this API. Block until the service is118 * For each thread that wants to use this API, either ConnectService or TryConnectService must be119 * called before any other functions in this API. Normally, ConnectService is automatically called124 //--------------------------------------------------------------------------------------------------130 //--------------------------------------------------------------------------------------------------133 * Try to connect the current client thread to the service providing this API. Return with an error136 * For each thread that wants to use this API, either ConnectService or TryConnectService must be137 * called before any other functions in this API. Normally, ConnectService is automatically called146 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).149 //--------------------------------------------------------------------------------------------------155 //--------------------------------------------------------------------------------------------------159 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants162 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------175 * longer a connection to the service, and the functions in this API can't be used. For details, see180 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------191 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------211 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.219 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------233 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.243 //--------------------------------------------------------------------------------------------------254 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------le_result_t le_secStore_Write(const char *LE_NONNULL name, const uint8_t *bufPtr, size_t bufSize)le_result_t le_secStore_TryConnectService(void)void le_secStore_SetServerDisconnectHandler(le_secStore_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_secStore_ConnectService(void)le_result_t le_secStore_Read(const char *LE_NONNULL name, uint8_t *bufPtr, size_t *bufSizePtr)void(* le_secStore_DisconnectHandler_t)(void *)Definition: le_secStore_interface.h:110le_result_t le_secStore_Delete(const char *LE_NONNULL name)void le_secStore_DisconnectService(void)