Lines Matching refs:iv_index
60 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()
399 meta->crypto.iv_index = BT_MESH_NET_IVI_TX; in unseg_app_sdu_unpack()
493 uint32_t iv_index; in encrypt_friend_pdu() local
519 iv_index = BT_MESH_NET_IVI_TX; in encrypt_friend_pdu()
523 iv_index = (bt_mesh.iv_index - ((bt_mesh.iv_index & 1) != ivi)); in encrypt_friend_pdu()
526 buf->data[0] = (cred->nid | (iv_index & 1) << 7); in encrypt_friend_pdu()
528 if (bt_mesh_net_encrypt(&cred->enc, &buf->b, iv_index, BT_MESH_NONCE_NETWORK)) { in encrypt_friend_pdu()
533 if (bt_mesh_net_obfuscate(buf->data, iv_index, &cred->privacy)) { in encrypt_friend_pdu()
559 info.iv_index = BT_MESH_NET_IVI_TX; in encode_friend_ctl()
577 upd->iv_index = sys_cpu_to_be32(bt_mesh.iv_index); in encode_update()
1463 info.iv_index = BT_MESH_NET_IVI_RX(rx); in friend_lpn_enqueue_rx()
1499 info.iv_index = BT_MESH_NET_IVI_TX; in friend_lpn_enqueue_tx()