Lines Matching full:key

90  *  ie one with NetIdx 0, will be added and the provided key will be used as
93 * @param key The NetKey to be used for the primary subnet.
97 int bt_mesh_cdb_create(const uint8_t key[16]);
193 /** @brief Import device key for selected node.
195 * Using security library with PSA implementation access to the key by pointer
196 * will not give a valid value since the key is hidden in the library.
197 * The application has to import the key.
200 * @param in key value.
206 /** @brief Export device key from selected node.
208 * Using security library with PSA implementation access to the key by pointer
209 * will not give a valid value since the key is hidden in the library.
210 * The application has to export the key.
213 * @param out key value.
291 /** @brief Import network key for selected subnetwork.
293 * Using security library with PSA implementation access to the key by pointer
294 * will not give a valid value since the key is hidden in the library.
295 * The application has to import the key.
298 * @param key_idx 0 or 1. If Key Refresh procedure is in progress then two keys are available.
299 * The old key has an index 0 and the new one has an index 1.
300 * Otherwise, the only key with index 0 exists.
301 * @param in key value.
308 /** @brief Export network key from selected subnetwork.
310 * Using security library with PSA implementation access to the key by pointer
311 * will not give a valid value since the key is hidden in the library.
312 * The application has to export the key.
315 * @param key_idx 0 or 1. If Key Refresh procedure is in progress then two keys are available.
316 * The old key has an index 0 and the new one has an index 1.
317 * Otherwise, the only key with index 0 exists.
318 * @param out key value.
325 /** @brief Allocate an application key.
327 * Allocate a new application key in the CDB.
329 * @param net_idx NetIdx of NetKey that the application key is bound to.
330 * @param app_idx AppIdx of the application key.
332 * @return The new application key or NULL if it cannot be allocated due to
333 * lack of resources or the key has been already allocated.
338 /** @brief Delete an application key.
340 * Delete an application key from the CDB.
342 * @param key The application key to be deleted.
343 * @param store If true, the key will be cleared from persistent storage.
345 void bt_mesh_cdb_app_key_del(struct bt_mesh_cdb_app_key *key, bool store);
347 /** @brief Get an application key by AppIdx
349 * Try to find the application key with the specified AppIdx.
351 * @param app_idx AppIdx of the application key to look for.
353 * @return The application key with the specified AppIdx or NULL if no such key
358 /** @brief Store application key to persistent storage.
360 * @param key Application key to be stored.
362 void bt_mesh_cdb_app_key_store(const struct bt_mesh_cdb_app_key *key);
364 /** @brief Import application key.
366 * Using security library with PSA implementation access to the key by pointer
367 * will not give a valid value since the key is hidden in the library.
368 * The application has to import the key.
370 * @param key cdb application key structure.
371 * @param key_idx 0 or 1. If Key Refresh procedure is in progress then two keys are available.
372 * The old key has an index 0 and the new one has an index 1.
373 * Otherwise, the only key with index 0 exists.
374 * @param in key value.
378 int bt_mesh_cdb_app_key_import(struct bt_mesh_cdb_app_key *key, int key_idx, const uint8_t in[16]);
380 /** @brief Export application key.
382 * Using security library with PSA implementation access to the key by pointer
383 * will not give a valid value since the key is hidden in the library.
384 * The application has to export the key.
386 * @param key cdb application key structure.
387 * @param key_idx 0 or 1. If Key Refresh procedure is in progress then two keys are available.
388 * The old key has an index 0 and the new one has an index 1.
389 * Otherwise, the only key with index 0 exists.
390 * @param out key value.
394 int bt_mesh_cdb_app_key_export(const struct bt_mesh_cdb_app_key *key, int key_idx, uint8_t out[16]);