Lines Matching full:keys

31 /* Tracking of what storage changes are pending for App Keys. We track this in
34 * and may be reused for other keys.
57 } keys[2]; member
112 memcpy(&key.val[0], &app->keys[0].val, sizeof(struct bt_mesh_key)); in store_app_key()
113 memcpy(&key.val[1], &app->keys[1].val, sizeof(struct bt_mesh_key)); in store_app_key()
216 bt_mesh_key_destroy(&app->keys[0].val); in app_key_del()
217 bt_mesh_key_destroy(&app->keys[1].val); in app_key_del()
218 memset(app->keys, 0, sizeof(app->keys)); in app_key_del()
227 bt_mesh_key_destroy(&app->keys[0].val); in app_key_revoke()
228 memcpy(&app->keys[0], &app->keys[1], sizeof(app->keys[0])); in app_key_revoke()
229 memset(&app->keys[1], 0, sizeof(app->keys[1])); in app_key_revoke()
260 if (bt_mesh_key_compare(key, &app->keys[0].val)) { in bt_mesh_app_key_add()
267 if (bt_mesh_app_id(key, &app->keys[0].id)) { in bt_mesh_app_key_add()
271 LOG_DBG("AppIdx 0x%04x AID 0x%02x", app_idx, app->keys[0].id); in bt_mesh_app_key_add()
276 if (bt_mesh_key_import(BT_MESH_KEY_TYPE_APP, key, &app->keys[0].val)) { in bt_mesh_app_key_add()
323 if (bt_mesh_key_compare(key, &app->keys[1].val)) { in bt_mesh_app_key_update()
330 if (bt_mesh_app_id(key, &app->keys[1].id)) { in bt_mesh_app_key_update()
334 LOG_DBG("app_idx 0x%04x AID 0x%02x", app_idx, app->keys[1].id); in bt_mesh_app_key_update()
337 if (bt_mesh_key_import(BT_MESH_KEY_TYPE_APP, key, &app->keys[1].val)) { in bt_mesh_app_key_update()
389 err = bt_mesh_app_id(raw_key, &app->keys[key_idx].id); in app_id_set()
394 bt_mesh_key_assign(&app->keys[key_idx].val, key); in app_id_set()
413 LOG_DBG("AppIdx 0x%04x AID 0x%02x", app_idx, app->keys[0].id); in bt_mesh_app_key_set()
479 /* With device keys, the application has to decide which subnet in bt_mesh_keys_resolve()
525 *aid = app->keys[1].id; in bt_mesh_keys_resolve()
526 *app_key = &app->keys[1].val; in bt_mesh_keys_resolve()
528 *aid = app->keys[0].id; in bt_mesh_keys_resolve()
529 *app_key = &app->keys[0].val; in bt_mesh_keys_resolve()
599 cred = &app->keys[1]; in bt_mesh_app_key_find()
601 cred = &app->keys[0]; in bt_mesh_app_key_find()