Lines Matching refs:net_key
949 uint8_t net_key[16]; in cmd_provision_local() local
968 memcpy(net_key, bt_mesh_shell_default_key, sizeof(net_key)); in cmd_provision_local()
979 if (bt_mesh_cdb_subnet_key_export(sub, SUBNET_KEY_TX_IDX(sub), net_key)) { in cmd_provision_local()
985 err = bt_mesh_provision(net_key, net_idx, 0, iv_index, addr, bt_mesh_shell_default_key); in cmd_provision_local()
1188 uint8_t net_key[16]; in cmd_cdb_create() local
1193 bt_rand(net_key, 16); in cmd_cdb_create()
1195 len = hex2bin(argv[1], strlen(argv[1]), net_key, in cmd_cdb_create()
1196 sizeof(net_key)); in cmd_cdb_create()
1197 memset(net_key + len, 0, sizeof(net_key) - len); in cmd_cdb_create()
1200 err = bt_mesh_cdb_create(net_key); in cmd_cdb_create()
1257 uint8_t net_key[16]; in cdb_print_subnets() local
1267 if (bt_mesh_cdb_subnet_key_export(subnet, 0, net_key)) { in cdb_print_subnets()
1274 bin2hex(net_key, 16, key_hex_str, sizeof(key_hex_str)); in cdb_print_subnets()
1409 uint8_t net_key[16]; in cmd_cdb_subnet_add() local
1421 bt_rand(net_key, 16); in cmd_cdb_subnet_add()
1423 len = hex2bin(argv[2], strlen(argv[2]), net_key, in cmd_cdb_subnet_add()
1424 sizeof(net_key)); in cmd_cdb_subnet_add()
1425 memset(net_key + len, 0, sizeof(net_key) - len); in cmd_cdb_subnet_add()
1434 if (bt_mesh_cdb_subnet_key_import(sub, 0, net_key)) { in cmd_cdb_subnet_add()