le_secStore_interface.h
Go to the documentation of this file.
21 * etc. All data in the secure storage is in an encrypted format. Each app using this API only has24 * App's items in secure storage have a name and a value. The item name is used to access the item's28 * To create or update an item, use le_secStore_Write() to specify the item's name and value. If the29 * item doesn't exist, it'll be created. Each item can be a maximum of 8192 bytes. If it's larger,32 * Additionally, an app's total secure storage usage is limited by the maxSecureStorageBytes setting35 * Writing to secure storage may also fail if the system-wide secure storage is out of memory. The55 * If corruption in the secure storage is detected, a restore is performed and the target device is76 //--------------------------------------------------------------------------------------------------79 * Connect the current client thread to the service providing this API. Block until the service is83 * called before any other functions in this API. Normally, ConnectService is automatically called88 //--------------------------------------------------------------------------------------------------94 //--------------------------------------------------------------------------------------------------97 * Try to connect the current client thread to the service providing this API. Return with an error100 * For each thread that wants to use this API, either ConnectService or TryConnectService must be101 * called before any other functions in this API. Normally, ConnectService is automatically called108 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.109 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).112 //--------------------------------------------------------------------------------------------------118 //--------------------------------------------------------------------------------------------------124 * longer a connection to the service, and the functions in this API can't be used. For details, see129 //--------------------------------------------------------------------------------------------------136 //--------------------------------------------------------------------------------------------------140 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------154 //--------------------------------------------------------------------------------------------------157 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------216 //--------------------------------------------------------------------------------------------------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)