Home
last modified time | relevance | path

Searched refs:new_key (Results 1 – 6 of 6) sorted by relevance

/btstack/src/mesh/
H A Dmesh_network.c1322 return subnet->new_key; in mesh_subnet_get_outgoing_network_key()
1339 mesh_network_key_t * new_key = NULL; in mesh_subnet_setup_for_netkey_index() local
1350 if (((int8_t) (network_key->version - new_key->version)) > 0) { in mesh_subnet_setup_for_netkey_index()
1351 new_key = network_key; in mesh_subnet_setup_for_netkey_index()
1353 new_key = old_key; in mesh_subnet_setup_for_netkey_index()
1366 subnet->new_key = new_key; in mesh_subnet_setup_for_netkey_index()
1369 if (new_key == NULL){ in mesh_subnet_setup_for_netkey_index()
H A Dbeacon.c309 … if (item->new_key != NULL && memcmp(item->new_key->network_id, beacon_network_id, 8) == 0 ) { in beacon_handle_secure_beacon()
311 network_key = item->new_key; in beacon_handle_secure_beacon()
H A Dmesh.c839 subnet->old_key = subnet->new_key; in mesh_access_key_refresh_revoke_keys()
840 subnet->new_key = NULL; in mesh_access_key_refresh_revoke_keys()
900 uint8_t new_key = 0; in mesh_access_secure_network_beacon_handler() local
906 … if (item->new_key != NULL && memcmp(item->new_key->network_id, beacon_network_id, 8) == 0 ) { in mesh_access_secure_network_beacon_handler()
908 new_key = 1; in mesh_access_secure_network_beacon_handler()
917 if (new_key){ in mesh_access_secure_network_beacon_handler()
H A Dmesh_upper_transport.c304 mesh_transport_key_t * new_key = NULL; in mesh_upper_transport_get_outgoing_appkey() local
311 new_key = transport_key; in mesh_upper_transport_get_outgoing_appkey()
318 if (old_key == NULL) return new_key; in mesh_upper_transport_get_outgoing_appkey()
321 if ((subnet->key_refresh == MESH_KEY_REFRESH_SECOND_PHASE) && (new_key != NULL)){ in mesh_upper_transport_get_outgoing_appkey()
322 return new_key; in mesh_upper_transport_get_outgoing_appkey()
H A Dmesh_network.h245 mesh_network_key_t * new_key; member
H A Dmesh_configuration_server.c678 mesh_store_network_key(subnet->new_key); in config_netkey_update_derived()
681 mesh_network_key_add(subnet->new_key); in config_netkey_update_derived()
731 subnet->new_key = new_network_key; in config_netkey_update_handler()
769 if (subnet->new_key != NULL){ in config_netkey_delete_handler()
770 mesh_access_netkey_finalize(subnet->new_key); in config_netkey_delete_handler()
771 subnet->new_key = NULL; in config_netkey_delete_handler()