Home
last modified time | relevance | path

Searched refs:old_key (Results 1 – 8 of 8) sorted by relevance

/btstack/src/mesh/
H A Dmesh_network.c1326 return subnet->old_key; in mesh_subnet_get_outgoing_network_key()
1338 mesh_network_key_t * old_key = NULL; in mesh_subnet_setup_for_netkey_index() local
1345 if (old_key == NULL){ in mesh_subnet_setup_for_netkey_index()
1346 old_key = network_key; in mesh_subnet_setup_for_netkey_index()
1353 new_key = old_key; in mesh_subnet_setup_for_netkey_index()
1354 old_key = network_key; in mesh_subnet_setup_for_netkey_index()
1365 subnet->old_key = old_key; in mesh_subnet_setup_for_netkey_index()
H A Dbeacon.c157 (void)memcpy(&mesh_beacon_data[2], mesh_subnet->old_key->network_id, 8); in mesh_secure_network_beacon_setup()
305 if (memcmp(item->old_key->network_id, beacon_network_id, 8) == 0 ) { in beacon_handle_secure_beacon()
307 network_key = item->old_key; in beacon_handle_secure_beacon()
H A Dmesh_configuration_server.c590 mesh_store_network_key(subnet->old_key); in config_netkey_add_derived()
593 mesh_network_key_add(subnet->old_key); in config_netkey_add_derived()
647 new_subnet->old_key = new_network_key; in config_netkey_add_handler()
660 if (memcmp(existing_subnet->old_key->net_key, new_netkey, 16) == 0){ in config_netkey_add_handler()
727 new_network_key->version = (uint8_t)(subnet->old_key->version + 1); in config_netkey_update_handler()
765 mesh_access_netkey_finalize(subnet->old_key); in config_netkey_delete_handler()
766 subnet->old_key = NULL; in config_netkey_delete_handler()
827 if (transport_key->old_key == 1) continue; in config_appkey_list()
914 app_key->old_key = 0; in config_appkey_add_handler()
990 existing_app_key->old_key = 1; in config_appkey_update_handler()
H A Dmesh_keys.h110 uint8_t old_key; member
H A Dmesh_upper_transport.c303 mesh_transport_key_t * old_key = NULL; in mesh_upper_transport_get_outgoing_appkey() local
310 if (transport_key->old_key == 0) { in mesh_upper_transport_get_outgoing_appkey()
313 old_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()
324 return old_key; in mesh_upper_transport_get_outgoing_appkey()
H A Dmesh.c838 mesh_access_netkey_finalize(subnet->old_key); in mesh_access_key_refresh_revoke_keys()
839 subnet->old_key = subnet->new_key; in mesh_access_key_refresh_revoke_keys()
847 if (transport_key->old_key == 0) continue; in mesh_access_key_refresh_revoke_keys()
903 if (memcmp(item->old_key->network_id, beacon_network_id, 8) == 0 ) { in mesh_access_secure_network_beacon_handler()
H A Dmesh_network.h242 mesh_network_key_t * old_key; member
H A Dmesh_proxy.c221 …btstack_crypto_aes128_encrypt(&mesh_proxy_node_id_crypto_request_aes128, mesh_subnet->old_key->ide… in mesh_proxy_node_id_handle_random()