Searched refs:SUBNET_KEY_TX_IDX (Results 1 – 11 of 11) sorted by relevance
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/mesh/src/ |
D | test_proxy_sol.c | 161 net_buf_simple_add_u8(pdu, sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.nid); in sol_fixed_pdu_create() 167 ASSERT_OK(bt_mesh_net_encrypt(&sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.enc, pdu, 0, in sol_fixed_pdu_create() 171 &sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.privacy)); in sol_fixed_pdu_create()
|
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/ |
D | solicitation.c | 302 net_buf_simple_add_u8(pdu, sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.nid); in sol_pdu_create() 310 err = bt_mesh_net_encrypt(&sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.enc, in sol_pdu_create() 319 &sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.privacy); in sol_pdu_create()
|
D | subnet.h | 25 #define SUBNET_KEY_TX_IDX(sub) ((sub)->kr_phase == BT_MESH_KR_PHASE_2) macro
|
D | beacon.c | 146 keys = &sub->keys[SUBNET_KEY_TX_IDX(sub)]; in secure_beacon_create() 199 struct bt_mesh_subnet_keys *keys = &sub->keys[SUBNET_KEY_TX_IDX(sub)]; in private_beacon_update() 754 keys = &sub->keys[SUBNET_KEY_TX_IDX(sub)]; in bt_mesh_beacon_update() 757 SUBNET_KEY_TX_IDX(sub) ? "new" : "current"); in bt_mesh_beacon_update()
|
D | proxy_srv.c | 515 err = bt_mesh_encrypt(&sub->keys[SUBNET_KEY_TX_IDX(sub)].identity, hash, hash); in enc_id_adv() 597 memcpy(&tmp[0], sub->keys[SUBNET_KEY_TX_IDX(sub)].net_id, 8); in priv_net_id_adv() 614 LOG_DBG("Advertising with NetId %s", bt_hex(sub->keys[SUBNET_KEY_TX_IDX(sub)].net_id, 8)); in net_id_adv() 616 memcpy(proxy_svc_data + 3, sub->keys[SUBNET_KEY_TX_IDX(sub)].net_id, 8); in net_id_adv()
|
D | net.c | 413 .new_key = SUBNET_KEY_TX_IDX(buf->sub), in bt_mesh_net_local() 431 return &bt_mesh.lpn.cred[SUBNET_KEY_TX_IDX(tx->sub)]; in net_tx_cred_get() 436 return &tx->sub->keys[SUBNET_KEY_TX_IDX(tx->sub)].msg; in net_tx_cred_get() 721 cred = &rx->sub->keys[SUBNET_KEY_TX_IDX(rx->sub)].msg; in bt_mesh_net_relay()
|
D | friend.c | 498 cred = &frnd->subnet->keys[SUBNET_KEY_TX_IDX(frnd->subnet)] in encrypt_friend_pdu() 501 cred = &frnd->cred[SUBNET_KEY_TX_IDX(frnd->subnet)]; in encrypt_friend_pdu() 1053 err = friend_cred_create(frnd, SUBNET_KEY_TX_IDX(frnd->subnet)); in bt_mesh_friend_req()
|
D | provisionee.c | 490 if (!sub || bt_mesh_key_compare(netkey, &sub->keys[SUBNET_KEY_TX_IDX(sub)].net)) { in refresh_is_valid()
|
D | provisioner.c | 534 err = bt_mesh_key_export(net_key, &sub->keys[SUBNET_KEY_TX_IDX(sub)].net_key); in send_prov_data()
|
D | cdb.c | 874 if (sub && SUBNET_KEY_TX_IDX(sub)) { in bt_mesh_cdb_subnet_flags()
|
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/shell/ |
D | shell.c | 979 if (bt_mesh_cdb_subnet_key_export(sub, SUBNET_KEY_TX_IDX(sub), net_key)) { in cmd_provision_local()
|