Searched refs:net_id (Results 1 – 8 of 8) sorted by relevance
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | beacon.c | 108 net_buf_simple_add_mem(buf, keys->net_id, 8); in bt_mesh_beacon_create() 115 BT_DBG("net_idx 0x%04x flags 0x%02x NetID %s", sub->net_idx, flags, bt_hex(keys->net_id, 8)); in bt_mesh_beacon_create() 284 u8_t *data, *net_id, *auth; in secure_beacon_recv() local 305 net_id = net_buf_simple_pull_mem(buf, 8); in secure_beacon_recv() 309 BT_DBG("flags 0x%02x id %s iv_index 0x%08x", flags, bt_hex(net_id, 8), iv_index); in secure_beacon_recv() 311 sub = bt_mesh_subnet_find(net_id, flags, iv_index, auth, &new_key); in secure_beacon_recv()
|
A D | net.c | 210 err = bt_mesh_k3(key, keys->net_id); in bt_mesh_net_keys_create() 216 BT_DBG("NetID %s", bt_hex(keys->net_id, 8)); in bt_mesh_net_keys_create() 453 return bt_mesh_beacon_auth(keys->beacon, flags, keys->net_id, bt_mesh.iv_index, sub->auth); in bt_mesh_net_beacon_update() 950 static bool auth_match(struct bt_mesh_subnet_keys *keys, const u8_t net_id[8], u8_t flags, bt_u32_t… in auth_match() 955 if (memcmp(net_id, keys->net_id, 8)) { in auth_match() 959 bt_mesh_beacon_auth(keys->beacon, flags, keys->net_id, iv_index, net_auth); in auth_match() 969 struct bt_mesh_subnet *bt_mesh_subnet_find(const u8_t net_id[8], u8_t flags, bt_u32_t iv_index, con… in bt_mesh_subnet_find() 981 if (auth_match(&sub->keys[0], net_id, flags, iv_index, auth)) { in bt_mesh_subnet_find() 990 if (auth_match(&sub->keys[1], net_id, flags, iv_index, auth)) { in bt_mesh_subnet_find()
|
A D | crypto.c | 59 u8_t net_id[1], u8_t enc_key[16], u8_t priv_key[16]) in bt_mesh_k2() 95 net_id[0] = out[15] & 0x7f; in bt_mesh_k2() 117 BT_DBG("NID 0x%02x enc_key %s", net_id[0], bt_hex(enc_key, 16)); in bt_mesh_k2() 860 const u8_t net_id[8], bt_u32_t iv_index, in bt_mesh_beacon_auth() 867 BT_DBG("NetId %s", bt_hex(net_id, 8)); in bt_mesh_beacon_auth() 871 memcpy(&msg[1], net_id, 8); in bt_mesh_beacon_auth()
|
A D | proxy.c | 1147 BT_DBG("Advertising with NetId %s", bt_hex(sub->keys[sub->kr_flag].net_id, 8)); in net_id_adv() 1149 memcpy(proxy_svc_data + 3, sub->keys[sub->kr_flag].net_id, 8); in net_id_adv()
|
A D | provisioner_main.c | 348 BT_DBG("network id: %s", bt_hex(sub->keys[0].net_id, 8)); in provisioner_upper_init()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | crypto.h | 42 u8_t net_id[1], u8_t enc_key[16], u8_t priv_key[16]); 69 const u8_t net_id[16], bt_u32_t iv_index,
|
A D | net.h | 76 u8_t net_id[8]; /* Network ID */ member 346 struct bt_mesh_subnet *bt_mesh_subnet_find(const u8_t net_id[8], u8_t flags, bt_u32_t iv_index, con…
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/aos/ |
A D | mesh.c | 520 int ble_stack_mesh_send(uint16_t net_id, in ble_stack_mesh_send() argument 532 .net_idx = net_id, in ble_stack_mesh_send()
|
Completed in 19 milliseconds