/Zephyr-latest/subsys/bluetooth/mesh/ |
D | proxy_cli.c | 160 static bool proxy_srv_check_and_get(struct bt_mesh_subnet *sub, const uint8_t *net_id, in proxy_srv_check_and_get() argument 182 if (!net_id || !memcmp(sub->keys[0].net_id, net_id, 8) || in proxy_srv_check_and_get() 183 (bt_mesh_subnet_has_new_key(sub) && !memcmp(sub->keys[1].net_id, net_id, 8))) { in proxy_srv_check_and_get() 196 const uint8_t *net_id; member 211 memcpy(&in[0], sub->keys[idx].net_id, 8); in is_hash_equal() 229 uint8_t *net_id = NULL; in has_net_id() local 232 net_id = (uint8_t *)res->data.net_id; in has_net_id() 242 return proxy_srv_check_and_get(sub, net_id, &res->srv); in has_net_id() 259 res.data.net_id = net_buf_simple_pull_mem(buf, 8); in handle_net_id()
|
D | beacon.c | 64 const uint8_t *net_id; member 151 net_buf_simple_add_mem(buf, keys->net_id, 8); in secure_beacon_create() 159 bt_hex(keys->net_id, 8)); in secure_beacon_create() 527 if (memcmp(params->net_id, keys->net_id, 8)) { in auth_match() 531 if (bt_mesh_beacon_auth(&keys->beacon, params->flags, keys->net_id, params->iv_index, in auth_match() 556 memcpy(&beacon_info.net_id, params->net_id, 8); in secure_beacon_authenticate() 695 params.net_id = net_buf_simple_pull_mem(buf, 8); in secure_beacon_recv() 766 bt_mesh_beacon_auth(&keys->beacon, flags, keys->net_id, bt_mesh.iv_index, in bt_mesh_beacon_update()
|
D | crypto.c | 78 uint8_t net_id[1], struct bt_mesh_key *enc_key, struct bt_mesh_key *priv_key) in bt_mesh_k2() 114 net_id[0] = out[15] & 0x7f; in bt_mesh_k2() 142 LOG_DBG("NID 0x%02x enc_key %s", net_id[0], bt_hex(enc_key, sizeof(struct bt_mesh_key))); in bt_mesh_k2() 692 const uint8_t net_id[8], uint32_t iv_index, uint8_t auth[8]) in bt_mesh_beacon_auth() 698 LOG_DBG("NetId %s", bt_hex(net_id, 8)); in bt_mesh_beacon_auth() 702 memcpy(&msg[1], net_id, 8); in bt_mesh_beacon_auth()
|
D | crypto.h | 55 int bt_mesh_k2(const uint8_t n[16], const uint8_t *p, size_t p_len, uint8_t net_id[1], 84 const uint8_t net_id[8], uint32_t iv_index, uint8_t auth[8]);
|
D | subnet.h | 76 uint8_t net_id[8]; /* Network ID */ member
|
D | proxy_srv.c | 600 memcpy(&tmp[0], sub->keys[SUBNET_KEY_TX_IDX(sub)].net_id, 8); in priv_net_id_adv() 618 LOG_DBG("Advertising with NetId %s", bt_hex(sub->keys[SUBNET_KEY_TX_IDX(sub)].net_id, 8)); in net_id_adv() 620 memcpy(proxy_svc_data + 3, sub->keys[SUBNET_KEY_TX_IDX(sub)].net_id, 8); in net_id_adv()
|
D | subnet.c | 330 err = bt_mesh_k3(key, keys->net_id); in net_keys_create() 336 LOG_DBG("NetID %s", bt_hex(keys->net_id, 8)); in net_keys_create()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_beacon.c | 332 uint64_t net_id; member 334 bool (*process_cb)(const uint8_t *net_id, void *ctx); 341 const uint8_t *net_id; in beacon_scan_cb() local 358 net_id = net_buf_simple_pull_mem(buf, 8); in beacon_scan_cb() 374 if (!beacon.process_cb || beacon.process_cb(net_id, beacon.user_ctx)) { in beacon_scan_cb() 381 bool (*process_cb)(const uint8_t *net_id, void *ctx), void *ctx) in wait_for_beacon() argument 436 uint8_t net_id[8]; in beacon_create() local 440 err = bt_mesh_k3(net_key, net_id); in beacon_create() 450 err = bt_mesh_beacon_auth(&beacon_key, flags, net_id, iv_index, auth); in beacon_create() 463 net_buf_simple_add_mem(buf, net_id, 8); in beacon_create() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | main.h | 773 uint64_t net_id; member
|