/hal_espressif-latest/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 | crypto.h | 80 const uint8_t net_id[8], 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 | beacon.c | 126 net_buf_simple_add_be32(buf, bt_mesh.iv_index); in bt_mesh_beacon_create() 131 sub->net_idx, bt_mesh.iv_index, flags); in bt_mesh_beacon_create() 341 uint32_t iv_index = 0U; in secure_beacon_recv() local 363 iv_index = net_buf_simple_pull_be32(buf); in secure_beacon_recv() 367 flags, bt_hex(net_id, 8), iv_index); in secure_beacon_recv() 369 sub = bt_mesh_subnet_find(net_id, flags, iv_index, auth, &new_key); in secure_beacon_recv() 400 sub->net_idx, iv_index, bt_mesh.iv_index); in secure_beacon_recv() 415 iv_change = bt_mesh_net_iv_update(iv_index, BLE_MESH_IV_UPDATE(flags)); in secure_beacon_recv()
|
D | net.h | 233 uint32_t iv_index; /* Current IV Index */ member 317 #define BLE_MESH_NET_IVI_TX (bt_mesh.iv_index - \ 320 #define BLE_MESH_NET_IVI_RX(rx) (bt_mesh.iv_index - (rx)->old_iv) 330 uint32_t iv_index); 342 bool bt_mesh_net_iv_update(uint32_t iv_index, bool iv_update); 349 uint32_t iv_index, const uint8_t auth[8],
|
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 | test.h | 25 uint32_t iv_index; member
|
D | friend.c | 47 uint32_t iv_index; member 351 net_buf_add_u8(buf, (info->iv_index & 1) << 7); /* Will be reset in encryption */ in create_friend_pdu() 490 uint32_t iv_index = 0U; in encrypt_friend_pdu() local 526 iv_index = BLE_MESH_NET_IVI_TX; in encrypt_friend_pdu() 530 iv_index = (bt_mesh.iv_index - ((bt_mesh.iv_index & 1) != ivi)); in encrypt_friend_pdu() 533 buf->data[0] = (nid | (iv_index & 1) << 7); in encrypt_friend_pdu() 535 if (bt_mesh_net_encrypt(enc, &buf->b, iv_index, false)) { in encrypt_friend_pdu() 540 if (bt_mesh_net_obfuscate(buf->data, iv_index, priv)) { in encrypt_friend_pdu() 566 info.iv_index = BLE_MESH_NET_IVI_TX; in encode_friend_ctl() 588 upd->iv_index = sys_cpu_to_be32(bt_mesh.iv_index); in encode_update() [all …]
|
D | provisioner_main.h | 33 uint32_t iv_index; /* Node IV Index */ member 59 uint8_t flags, uint32_t iv_index,
|
D | prov.h | 36 uint16_t addr, uint8_t flags, uint32_t iv_index);
|
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() 110 bt_mesh.iv_index = 0U; in bt_mesh_node_reset()
|
D | transport.h | 49 uint32_t iv_index; member
|
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() 1537 iv.iv_index = bt_mesh.iv_index; in store_pending_iv() 2537 val.iv_index = node->iv_index; in bt_mesh_store_node_info()
|
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()
|
D | test.c | 49 err = bt_mesh_provision(info->net_key, info->net_idx, info->flags, info->iv_index, in bt_mesh_device_auto_enter_network()
|
D | prov.c | 1190 uint32_t iv_index = 0U; in prov_data() local 1234 iv_index = sys_get_be32(&pdu[19]); in prov_data() 1238 net_idx, iv_index, addr); in prov_data() 1256 err = bt_mesh_provision(pdu, net_idx, flags, iv_index, addr, dev_key); in prov_data() 1858 uint16_t addr, uint8_t flags, uint32_t iv_index) in bt_mesh_prov_complete() argument 1861 prov->complete(net_idx, net_key, addr, flags, iv_index); in bt_mesh_prov_complete()
|
D | provisioner_prov.c | 132 uint32_t iv_index; /* IV Index */ member 273 uint32_t iv_index; member 1027 prov_ctx.curr_iv_index = info->iv_index; 1076 prov_ctx.curr_iv_index = bt_mesh.iv_index; 1228 void bt_mesh_set_fast_prov_flags_iv_index(uint8_t flags, uint32_t iv_index) argument 1232 prov_ctx.fast_prov.iv_index = iv_index; 2418 sys_put_be32(prov_ctx.fast_prov.iv_index, &pdu[19]); 2535 link[idx].iv_index = prov_ctx.fast_prov.iv_index; 2538 link[idx].iv_index = prov_ctx.curr_iv_index; 2638 link[idx].ki_flags, link[idx].iv_index, device_key, &index);
|
D | provisioner_main.c | 134 bt_mesh.iv_index = prov->iv_index; in bt_mesh_provisioner_net_create() 313 uint8_t flags, uint32_t iv_index, in bt_mesh_provisioner_provision() argument 338 node.iv_index = iv_index; in bt_mesh_provisioner_provision()
|
D | transport.c | 48 #define SEQ_AUTH(iv_index, seq) (((uint64_t)iv_index) << 24 | (uint64_t)seq) argument 305 if (bt_mesh_net_iv_update(bt_mesh.iv_index, false)) { in seg_tx_reset()
|
/hal_espressif-latest/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-latest/components/bt/esp_ble_mesh/api/core/ |
D | esp_ble_mesh_provisioning_api.c | 420 arg.set_prov_data_info.prov_data.iv_index = prov_data_info->iv_index; in esp_ble_mesh_provisioner_set_prov_data_info() 493 arg.set_fast_prov_info.iv_index = fast_prov_info->iv_index; in esp_ble_mesh_set_fast_prov_info()
|
/hal_espressif-latest/components/bt/esp_ble_mesh/api/ |
D | esp_ble_mesh_defs.h | 669 uint32_t iv_index; member 737 uint32_t iv_index; /*!< IV Index */ member 755 uint32_t iv_index; /*!< Node IV Index */ member 770 uint32_t iv_index; /*!< IV Index used for fast provisioning */ member 962 uint32_t iv_index; /*!< IV Index */ member
|
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/include/ |
D | btc_ble_mesh_prov.h | 256 uint32_t iv_index; member
|
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/ |
D | btc_ble_mesh_prov.c | 639 uint16_t addr, uint8_t flags, uint32_t iv_index) in btc_ble_mesh_complete_cb() argument 649 mesh_param.node_prov_complete.iv_index = iv_index; in btc_ble_mesh_complete_cb() 2000 info.iv_index = arg->set_prov_data_info.prov_data.iv_index; in btc_ble_mesh_prov_call_handler() 2183 arg->set_fast_prov_info.iv_index); in btc_ble_mesh_prov_call_handler()
|