Home
last modified time | relevance | path

Searched refs:net_id (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dbeacon.c123 net_buf_simple_add_mem(buf, keys->net_id, 8); in bt_mesh_beacon_create()
132 BT_DBG("NetID %s Auth %s", bt_hex(keys->net_id, 8), in bt_mesh_beacon_create()
339 uint8_t *data = NULL, *net_id = NULL, *auth = NULL; in secure_beacon_recv() local
362 net_id = net_buf_simple_pull_mem(buf, 8); 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()
Dproxy_client.h32 uint8_t net_id[8]; member
34 } net_id; member
Dproxy_client.c636 static struct bt_mesh_subnet *bt_mesh_is_net_id_exist(const uint8_t net_id[8]) in bt_mesh_is_net_id_exist()
645 if (sub && !memcmp(sub->keys[sub->kr_flag].net_id, net_id, 8)) { in bt_mesh_is_net_id_exist()
669 if (buf->len != sizeof(ctx.net_id.net_id)) { in bt_mesh_proxy_client_gatt_adv_recv()
680 memcpy(ctx.net_id.net_id, buf->data, buf->len); in bt_mesh_proxy_client_gatt_adv_recv()
681 ctx.net_id.net_idx = sub->net_idx; in bt_mesh_proxy_client_gatt_adv_recv()
Dcrypto.h53 uint8_t net_id[1], uint8_t enc_key[16], uint8_t priv_key[16]);
80 const uint8_t net_id[8], uint32_t iv_index,
Dcrypto.c63 uint8_t net_id[1], uint8_t enc_key[16], uint8_t priv_key[16]) in bt_mesh_k2()
99 net_id[0] = out[15] & 0x7f; in bt_mesh_k2()
121 BT_DBG("NID 0x%02x enc_key %s", net_id[0], bt_hex(enc_key, 16)); in bt_mesh_k2()
853 const uint8_t net_id[8], uint32_t iv_index, in bt_mesh_beacon_auth()
860 BT_DBG("NetId %s", bt_hex(net_id, 8)); in bt_mesh_beacon_auth()
864 memcpy(&msg[1], net_id, 8); in bt_mesh_beacon_auth()
Dnet.c184 err = bt_mesh_k3(key, keys->net_id); in bt_mesh_net_keys_create()
190 BT_DBG("NetID %s", bt_hex(keys->net_id, 8)); in bt_mesh_net_keys_create()
438 return bt_mesh_beacon_auth(keys->beacon, flags, keys->net_id, in bt_mesh_net_beacon_update()
1014 const uint8_t net_id[8], uint8_t flags, in auth_match()
1019 if (memcmp(net_id, keys->net_id, 8)) { in auth_match()
1023 bt_mesh_beacon_auth(keys->beacon, flags, keys->net_id, iv_index, in auth_match()
1035 struct bt_mesh_subnet *bt_mesh_subnet_find(const uint8_t net_id[8], uint8_t flags, in bt_mesh_subnet_find()
1051 if (auth_match(&sub->keys[0], net_id, flags, iv_index, auth)) { in bt_mesh_subnet_find()
1060 if (auth_match(&sub->keys[1], net_id, flags, iv_index, auth)) { in bt_mesh_subnet_find()
Dnet.h66 uint8_t net_id[8]; /* Network ID */ member
348 struct bt_mesh_subnet *bt_mesh_subnet_find(const uint8_t net_id[8], uint8_t flags,
Dproxy_server.c1199 bt_hex(sub->keys[sub->kr_flag].net_id, 8)); in net_id_adv()
1201 memcpy(proxy_svc_data + 3, sub->keys[sub->kr_flag].net_id, 8); in net_id_adv()
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_prov.c956 mesh_param.proxy_client_recv_adv_pkt.net_idx = ctx->net_id.net_idx; in btc_ble_mesh_proxy_client_adv_recv_cb()
957 memcpy(mesh_param.proxy_client_recv_adv_pkt.net_id, ctx->net_id.net_id, 8); in btc_ble_mesh_proxy_client_adv_recv_cb()
/hal_espressif-latest/components/bt/esp_ble_mesh/api/
Desp_ble_mesh_defs.h1398 … uint8_t net_id[8]; /*!< Network ID contained in the advertising packet */ member