Lines Matching refs:keys
320 bt_mesh_key_assign(&sub->keys[0].net_key, &tmp[0]); in cdb_subnet_set()
321 bt_mesh_key_assign(&sub->keys[1].net_key, &tmp[1]); in cdb_subnet_set()
333 bt_mesh_key_assign(&sub->keys[0].net_key, &tmp[0]); in cdb_subnet_set()
334 bt_mesh_key_assign(&sub->keys[1].net_key, &tmp[1]); in cdb_subnet_set()
391 bt_mesh_key_assign(&app->keys[0].app_key, &tmp[0]); in cdb_app_key_set()
392 bt_mesh_key_assign(&app->keys[1].app_key, &tmp[1]); in cdb_app_key_set()
490 bt_hex(&sub->keys[0].net_key, sizeof(struct bt_mesh_key))); in store_cdb_subnet()
492 memcpy(&key.val[0], &sub->keys[0].net_key, sizeof(struct bt_mesh_key)); in store_cdb_subnet()
493 memcpy(&key.val[1], &sub->keys[1].net_key, sizeof(struct bt_mesh_key)); in store_cdb_subnet()
531 memcpy(&key.val[0], &app->keys[0].app_key, sizeof(struct bt_mesh_key)); in store_cdb_app_key()
532 memcpy(&key.val[1], &app->keys[1].app_key, sizeof(struct bt_mesh_key)); in store_cdb_app_key()
747 err = bt_mesh_key_import(BT_MESH_KEY_TYPE_NET, key, &sub->keys[0].net_key); in bt_mesh_cdb_create()
845 bt_mesh_key_destroy(&sub->keys[0].net_key); in bt_mesh_cdb_subnet_del()
846 bt_mesh_key_destroy(&sub->keys[1].net_key); in bt_mesh_cdb_subnet_del()
847 memset(sub->keys, 0, sizeof(sub->keys)); in bt_mesh_cdb_subnet_del()
888 if (!bt_mesh_key_compare(in, &sub->keys[key_idx].net_key)) { in bt_mesh_cdb_subnet_key_import()
892 bt_mesh_key_destroy(&sub->keys[key_idx].net_key); in bt_mesh_cdb_subnet_key_import()
894 return bt_mesh_key_import(BT_MESH_KEY_TYPE_NET, in, &sub->keys[key_idx].net_key); in bt_mesh_cdb_subnet_key_import()
900 return bt_mesh_key_export(out, &sub->keys[key_idx].net_key); in bt_mesh_cdb_subnet_key_export()
1066 bt_mesh_key_destroy(&key->keys[0].app_key); in bt_mesh_cdb_app_key_del()
1067 bt_mesh_key_destroy(&key->keys[1].app_key); in bt_mesh_cdb_app_key_del()
1068 memset(key->keys, 0, sizeof(key->keys)); in bt_mesh_cdb_app_key_del()
1096 if (!bt_mesh_key_compare(in, &key->keys[key_idx].app_key)) { in bt_mesh_cdb_app_key_import()
1100 bt_mesh_key_destroy(&key->keys[key_idx].app_key); in bt_mesh_cdb_app_key_import()
1102 return bt_mesh_key_import(BT_MESH_KEY_TYPE_APP, in, &key->keys[key_idx].app_key); in bt_mesh_cdb_app_key_import()
1107 return bt_mesh_key_export(out, &key->keys[key_idx].app_key); in bt_mesh_cdb_app_key_export()