/hal_espressif-3.5.0/components/bt/esp_ble_mesh/mesh_core/ |
D | crypto.c | 517 uint32_t iv_index) in create_proxy_nonce() argument 539 sys_put_be32(iv_index, &nonce[9]); in create_proxy_nonce() 544 uint32_t iv_index) in create_net_nonce() argument 566 sys_put_be32(iv_index, &nonce[9]); in create_net_nonce() 569 int bt_mesh_net_obfuscate(uint8_t *pdu, uint32_t iv_index, in bt_mesh_net_obfuscate() argument 576 BT_DBG("IVIndex %u, PrivacyKey %s", iv_index, bt_hex(privacy_key, 16)); in bt_mesh_net_obfuscate() 578 sys_put_be32(iv_index, &priv_rand[5]); in bt_mesh_net_obfuscate() 596 uint32_t iv_index, bool proxy) in bt_mesh_net_encrypt() argument 602 BT_DBG("IVIndex %u EncKey %s mic_len %u", iv_index, bt_hex(key, 16), in bt_mesh_net_encrypt() 608 create_proxy_nonce(nonce, buf->data, iv_index); in bt_mesh_net_encrypt() [all …]
|
D | net.c | 436 BT_DBG("flags 0x%02x, IVI 0x%08x", flags, bt_mesh.iv_index); in bt_mesh_net_beacon_update() 439 bt_mesh.iv_index, sub->auth); in bt_mesh_net_beacon_update() 443 uint32_t iv_index) in bt_mesh_net_create() argument 448 BT_DBG("idx %u flags 0x%02x iv_index %u", idx, flags, iv_index); in bt_mesh_net_create() 480 bt_mesh.iv_index = iv_index; in bt_mesh_net_create() 619 bt_mesh_net_iv_update(bt_mesh.iv_index, false); in bt_mesh_iv_update() 621 bt_mesh_net_iv_update(bt_mesh.iv_index + 1, true); in bt_mesh_iv_update() 643 bool bt_mesh_net_iv_update(uint32_t iv_index, bool iv_update) in bt_mesh_net_iv_update() argument 650 if (iv_index != bt_mesh.iv_index) { in bt_mesh_net_iv_update() 652 iv_index, bt_mesh.iv_index); in bt_mesh_net_iv_update() [all …]
|
D | beacon.c | 121 net_buf_simple_add_be32(buf, bt_mesh.iv_index); in bt_mesh_beacon_create() 126 sub->net_idx, bt_mesh.iv_index, flags); in bt_mesh_beacon_create() 336 uint32_t iv_index = 0U; in secure_beacon_recv() local 358 iv_index = net_buf_simple_pull_be32(buf); in secure_beacon_recv() 362 flags, bt_hex(net_id, 8), iv_index); in secure_beacon_recv() 364 sub = bt_mesh_subnet_find(net_id, flags, iv_index, auth, &new_key); in secure_beacon_recv() 385 sub->net_idx, iv_index, bt_mesh.iv_index); in secure_beacon_recv() 393 iv_change = bt_mesh_net_iv_update(iv_index, BLE_MESH_IV_UPDATE(flags)); in secure_beacon_recv()
|
D | crypto.h | 80 const uint8_t net_id[16], uint32_t iv_index, 132 int bt_mesh_net_obfuscate(uint8_t *pdu, uint32_t iv_index, 136 uint32_t iv_index, bool proxy); 139 uint32_t iv_index, bool proxy); 143 uint16_t src, uint16_t dst, uint32_t seq_num, uint32_t iv_index); 148 uint32_t iv_index);
|
D | net.h | 234 uint32_t iv_index; /* Current IV Index */ member 315 #define BLE_MESH_NET_IVI_TX (bt_mesh.iv_index - \ 318 #define BLE_MESH_NET_IVI_RX(rx) (bt_mesh.iv_index - (rx)->old_iv) 328 uint32_t iv_index); 340 bool bt_mesh_net_iv_update(uint32_t iv_index, bool iv_update); 347 uint32_t iv_index, const uint8_t auth[8],
|
D | friend.c | 47 uint32_t iv_index; member 334 net_buf_add_u8(buf, (info->iv_index & 1) << 7); /* Will be reset in encryption */ in create_friend_pdu() 473 uint32_t iv_index = 0U; in encrypt_friend_pdu() local 509 iv_index = BLE_MESH_NET_IVI_TX; in encrypt_friend_pdu() 513 iv_index = (bt_mesh.iv_index - ((bt_mesh.iv_index & 1) != ivi)); in encrypt_friend_pdu() 516 buf->data[0] = (nid | (iv_index & 1) << 7); in encrypt_friend_pdu() 518 if (bt_mesh_net_encrypt(enc, &buf->b, iv_index, false)) { in encrypt_friend_pdu() 523 if (bt_mesh_net_obfuscate(buf->data, iv_index, priv)) { in encrypt_friend_pdu() 549 info.iv_index = BLE_MESH_NET_IVI_TX; in encode_friend_ctl() 571 upd->iv_index = sys_cpu_to_be32(bt_mesh.iv_index); in encode_update() [all …]
|
D | main.c | 39 uint8_t flags, uint32_t iv_index, uint16_t addr, in bt_mesh_provision() argument 47 net_idx, flags, iv_index); in bt_mesh_provision() 64 err = bt_mesh_net_create(net_idx, flags, net_key, iv_index); in bt_mesh_provision() 100 bt_mesh.iv_index = 0U; in bt_mesh_node_reset()
|
D | provisioner_prov.h | 51 uint32_t iv_index; member 417 void bt_mesh_set_fast_prov_flags_iv_index(uint8_t flags, uint32_t iv_index);
|
D | provisioner_main.h | 33 uint32_t iv_index; /* Node IV Index */ member 59 uint8_t flags, uint32_t iv_index,
|
D | settings.c | 103 uint32_t iv_index; member 167 uint32_t iv_index; member 264 bt_mesh.iv_index = 0U; in iv_set() 273 bt_mesh.iv_index = iv.iv_index; in iv_set() 278 iv.iv_index, iv.iv_update, iv.iv_duration); in iv_set() 1105 node.iv_index = info.iv_index; in node_info_set() 1536 iv.iv_index = bt_mesh.iv_index; in store_pending_iv() 2536 val.iv_index = node->iv_index; in bt_mesh_store_node_info()
|
D | test.h | 25 uint32_t iv_index; member
|
D | prov.h | 36 uint16_t addr, uint8_t flags, uint32_t iv_index);
|
D | lpn.c | 960 uint32_t iv_index = 0U; in bt_mesh_lpn_friend_update() local 1015 iv_index = sys_be32_to_cpu(msg->iv_index); in bt_mesh_lpn_friend_update() 1017 BT_INFO("flags 0x%02x iv_index 0x%08x md %u", msg->flags, iv_index, in bt_mesh_lpn_friend_update() 1025 bt_mesh_net_iv_update(iv_index, BLE_MESH_IV_UPDATE(msg->flags)); in bt_mesh_lpn_friend_update()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/common_components/fast_provisioning/ |
D | ble_mesh_fast_prov_server_model.c | 183 … uint32_t iv_index = (ctx_flags & BIT(4)) ? net_buf_simple_pull_le32(buf) : bt_mesh.iv_index; in example_fast_prov_server_recv_msg() local 286 srv->set_info->iv_index = iv_index; in example_fast_prov_server_recv_msg() 297 .iv_index = iv_index, in example_fast_prov_server_recv_msg() 462 srv->iv_index = srv->set_info->iv_index; in example_handle_fast_prov_info_set_comp_evt()
|
D | ble_mesh_fast_prov_server_model.h | 45 uint32_t iv_index; member 73 uint32_t iv_index; /* Iv_index state */ member
|
D | ble_mesh_fast_prov_common.h | 77 uint32_t iv_index; /* IV_index used for provisioning data */ member 102 uint32_t iv_index; member
|
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/mesh_core/include/ |
D | mesh_main.h | 179 …ete)(uint16_t net_idx, const uint8_t net_key[16], uint16_t addr, uint8_t flags, uint32_t iv_index); 272 uint32_t iv_index; member 531 uint8_t flags, uint32_t iv_index, uint16_t addr,
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_server/main/ |
D | main.c | 91 .iv_index = 0x0, 157 .iv_index = 0x00, 174 static void node_prov_complete(uint16_t net_idx, uint16_t addr, uint8_t flags, uint32_t iv_index) in node_prov_complete() argument 177 ESP_LOGI(TAG, "flags: 0x%02x, iv_index: 0x%08x", flags, iv_index); in node_prov_complete() 346 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb() 576 node->iv_index = fast_prov_server.iv_index; in example_ble_mesh_config_client_cb()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_vendor_model/vendor_server/main/ |
D | main.c | 86 static void prov_complete(uint16_t net_idx, uint16_t addr, uint8_t flags, uint32_t iv_index) in prov_complete() argument 89 ESP_LOGI(TAG, "flags 0x%02x, iv_index 0x%08x", flags, iv_index); in prov_complete() 114 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/ |
D | main.c | 103 .iv_index = 0x0, 169 .iv_index = 0x00, 186 static void node_prov_complete(uint16_t net_idx, uint16_t addr, uint8_t flags, uint32_t iv_index) in node_prov_complete() argument 189 ESP_LOGI(TAG, "flags: 0x%02x, iv_index: 0x%08x", flags, iv_index); in node_prov_complete() 358 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb() 588 node->iv_index = fast_prov_server.iv_index; in example_ble_mesh_config_client_cb()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/main/ |
D | main.c | 120 static void prov_complete(uint16_t net_idx, uint16_t addr, uint8_t flags, uint32_t iv_index) in prov_complete() argument 123 ESP_LOGI(TAG, "flags: 0x%02x, iv_index: 0x%08x", flags, iv_index); in prov_complete() 159 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/ |
D | main.c | 111 static void prov_complete(uint16_t net_idx, uint16_t addr, uint8_t flags, uint32_t iv_index) in prov_complete() argument 114 ESP_LOGI(TAG, "flags: 0x%02x, iv_index: 0x%08x", flags, iv_index); in prov_complete() 197 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb()
|
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/api/core/ |
D | esp_ble_mesh_provisioning_api.c | 421 arg.set_prov_data_info.prov_data.iv_index = prov_data_info->iv_index; in esp_ble_mesh_provisioner_set_prov_data_info() 494 arg.set_fast_prov_info.iv_index = fast_prov_info->iv_index; in esp_ble_mesh_set_fast_prov_info()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_fast_provision/fast_prov_client/main/ |
D | main.c | 112 .iv_index = 0x00, 419 node->iv_index = prov.iv_index; in example_config_client_callback()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/ |
D | main.c | 150 static void prov_complete(uint16_t net_idx, uint16_t addr, uint8_t flags, uint32_t iv_index) in prov_complete() argument 153 ESP_LOGI(TAG, "flags 0x%02x, iv_index 0x%08x", flags, iv_index); in prov_complete() 182 param->node_prov_complete.flags, param->node_prov_complete.iv_index); in example_ble_mesh_provisioning_cb()
|