Lines Matching refs:network_key

204     if (provisioning_data->network_key){  in mesh_setup_from_provisioning_data()
207 mesh_network_key_add(provisioning_data->network_key); in mesh_setup_from_provisioning_data()
210 mesh_subnet_setup_for_netkey_index(provisioning_data->network_key->netkey_index); in mesh_setup_from_provisioning_data()
213 …provisioned_subnet = mesh_subnet_get_by_netkey_index(provisioning_data->network_key->netkey_index); in mesh_setup_from_provisioning_data()
283 …mesh_proxy_set_advertising_with_node_id(provisioning_data.network_key->netkey_index, MESH_NODE_IDE… in mesh_provisioning_message_handler()
602 void mesh_store_network_key(mesh_network_key_t * network_key){ in mesh_store_network_key() argument
604 …ex 0x%x, NetKey Index 0x%06x, NID %02x: ", network_key->internal_index, network_key->netkey_index,… in mesh_store_network_key()
605 printf_hexdump(network_key->net_key, 16); in mesh_store_network_key()
606 uint32_t tag = mesh_network_key_tag_for_internal_index(network_key->internal_index); in mesh_store_network_key()
607 data.netkey_index = network_key->netkey_index; in mesh_store_network_key()
608 (void)memcpy(data.net_key, network_key->net_key, 16); in mesh_store_network_key()
609 (void)memcpy(data.identity_key, network_key->identity_key, 16); in mesh_store_network_key()
610 (void)memcpy(data.beacon_key, network_key->beacon_key, 16); in mesh_store_network_key()
611 (void)memcpy(data.network_id, network_key->network_id, 8); in mesh_store_network_key()
612 data.nid = network_key->nid; in mesh_store_network_key()
613 data.version = network_key->version; in mesh_store_network_key()
614 (void)memcpy(data.encryption_key, network_key->encryption_key, 16); in mesh_store_network_key()
615 (void)memcpy(data.privacy_key, network_key->privacy_key, 16); in mesh_store_network_key()
634 mesh_network_key_t * network_key = btstack_memory_mesh_network_key_get(); in mesh_load_network_keys() local
635 if (network_key == NULL) return; in mesh_load_network_keys()
637 network_key->internal_index = internal_index; in mesh_load_network_keys()
638 network_key->netkey_index = data.netkey_index; in mesh_load_network_keys()
639 (void)memcpy(network_key->net_key, data.net_key, 16); in mesh_load_network_keys()
640 (void)memcpy(network_key->identity_key, data.identity_key, 16); in mesh_load_network_keys()
641 (void)memcpy(network_key->beacon_key, data.beacon_key, 16); in mesh_load_network_keys()
642 (void)memcpy(network_key->network_id, data.network_id, 8); in mesh_load_network_keys()
643 network_key->nid = data.nid; in mesh_load_network_keys()
644 network_key->version = data.version; in mesh_load_network_keys()
645 (void)memcpy(network_key->encryption_key, data.encryption_key, 16); in mesh_load_network_keys()
646 (void)memcpy(network_key->privacy_key, data.privacy_key, 16); in mesh_load_network_keys()
650network_key->advertisement_with_network_id.adv_length = mesh_proxy_setup_advertising_with_network_… in mesh_load_network_keys()
653 mesh_network_key_add(network_key); in mesh_load_network_keys()
655 mesh_subnet_setup_for_netkey_index(network_key->netkey_index); in mesh_load_network_keys()
657 …ex 0x%x, NetKey Index 0x%06x, NID %02x: ", network_key->internal_index, network_key->netkey_index,… in mesh_load_network_keys()
658 printf_hexdump(network_key->net_key, 16); in mesh_load_network_keys()
661 mesh_log_key("mesh-netkey", network_key->netkey_index, network_key->net_key); in mesh_load_network_keys()
824 void mesh_access_netkey_finalize(mesh_network_key_t * network_key){ in mesh_access_netkey_finalize() argument
825 mesh_network_key_remove(network_key); in mesh_access_netkey_finalize()
826 mesh_delete_network_key(network_key->internal_index); in mesh_access_netkey_finalize()
827 btstack_memory_mesh_network_key_free(network_key); in mesh_access_netkey_finalize()
1038 mesh_store_network_key(provisioning_data->network_key); in mesh_node_store_provisioning_data()
1100 provisioning_data.network_key = NULL; in mesh_node_startup_from_tlv()