Lines Matching refs:net_key
90 static uint8_t net_key[16] = { 1, 2, 3 }; variable
432 static void beacon_create(struct net_buf_simple *buf, const uint8_t net_key[16], uint8_t flags, in beacon_create()
440 err = bt_mesh_k3(net_key, net_id); in beacon_create()
445 err = bt_mesh_beacon_key(net_key, &beacon_key); in beacon_create()
1100 err = bt_mesh_provision(net_key, 0, 0, 0, dev_cfg->addr, dev_cfg->dev_key); in provision()
1241 static void private_beacon_create(struct net_buf_simple *buf, const uint8_t *net_key, uint8_t flags, in private_beacon_create() argument
1250 err = bt_mesh_k3(net_key, net_id); in private_beacon_create()
1255 err = bt_mesh_private_beacon_key(net_key, &priv_beacon_key); in private_beacon_create()
1293 private_beacon_create(&buf, net_key, 0x02, 0x0001); in test_tx_priv_invalid()
1431 err = bt_mesh_private_beacon_key(net_key, &priv_beacon_key); in test_rx_priv_interleave()
1556 uint8_t *net_key; member
1562 static struct netkey_ctx pp_net0 = {.net_key = (uint8_t *)test_net_key, .net_idx = 0};
1563 static struct netkey_ctx pp_net1 = {.net_key = (uint8_t *)test_net_key_2, .net_idx = 1};
1564 static struct netkey_ctx pp_net2 = {.net_key = (uint8_t *)test_net_key_3, .net_idx = 2};
1573 ASSERT_OK_MSG(bt_mesh_identity_key(net->net_key, &net->id_key), in pp_netkey_ctx_init()
1575 ASSERT_OK_MSG(bt_mesh_k3(net->net_key, net->net_id), "Failed to generate Net ID"); in pp_netkey_ctx_init()