/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_provision.c | 92 static const uint8_t dev_key[16] = { 0x01, 0x02, 0x03, 0x04, 0x05 }; variable 522 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in oob_provisioner() 656 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in test_provisioner_pb_adv_no_oob() 717 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in test_provisioner_pb_adv_multi() 735 ASSERT_OK(bt_mesh_provision(test_net_key, 0, flags, 0, 0x0001, dev_key)); in test_provisioner_iv_update_flag_zero() 753 ASSERT_OK(bt_mesh_provision(test_net_key, 0, flags, 0, 0x0001, dev_key)); in test_provisioner_iv_update_flag_one() 778 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in test_provisioner_pb_adv_reprovision() 884 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in provisioner_pb_remote_client_setup() 976 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in test_provisioner_pb_remote_client_parallel() 1087 ASSERT_TRUE(bt_mesh_key_compare(prev_node_dev_key, &node->dev_key)); in reprovision_remote_devkey_client() [all …]
|
D | test_proxy_sol.c | 37 .dev_key = {0x01}, 41 .dev_key = {0x02}, 112 ASSERT_OK_MSG(bt_mesh_provision(test_net_key, 0, 0, 0, tester_cfg.addr, tester_cfg.dev_key), in tester_configure() 131 bt_mesh_provision(test_net_key, 0, 0, 0, iut_cfg.addr, iut_cfg.dev_key), in iut_configure()
|
D | test_scanner.c | 35 .dev_key = { 0x01 }, 39 .dev_key = { 0x02 },
|
D | test_suspend.c | 38 .dev_key = {0x01}, 42 .dev_key = {0x02}, 166 ASSERT_OK(bt_mesh_provision(net_key, 0, 0, 0, cfg.addr, cfg.dev_key)); in provision_and_configure() 356 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, dut_cfg.addr, dut_cfg.dev_key)); in dut_gatt_common()
|
D | test_heartbeat.c | 30 .dev_key = { 0xff }, 39 pub_cfg.dev_key[0] = get_device_nbr(); in test_publish_init()
|
D | test_lcd.c | 97 .dev_key = {0xaa}, 102 .dev_key = {0xab}, 149 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, cfg.addr, cfg.dev_key)); in prov_and_conf() 167 err = bt_mesh_cdb_node_key_import(node, cfg.dev_key); in target_node_alloc()
|
D | test_op_agg.c | 52 static const uint8_t dev_key[16] = {0xaa}; variable 140 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, addr, dev_key)); in op_agg_test_prov_and_conf()
|
D | test_sar.c | 28 static const uint8_t dev_key[16] = {0xaa}; variable 158 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, addr, dev_key)); in prov_and_conf()
|
D | test_replay_cache.c | 23 .dev_key = { 0x01 }, 27 .dev_key = { 0x02 },
|
D | test_iv_index.c | 25 .dev_key = { 0x01 },
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | main.c | 47 const uint8_t dev_key[16]) in bt_mesh_provision() 118 err = bt_mesh_cdb_node_key_import(node, dev_key); in bt_mesh_provision() 129 err = bt_mesh_key_import(BT_MESH_KEY_TYPE_DEV, dev_key, &mesh_dev_key); in bt_mesh_provision() 155 memcpy(&bt_mesh.dev_key, &mesh_dev_key, sizeof(struct bt_mesh_key)); in bt_mesh_provision() 251 bt_mesh_key_destroy(&bt_mesh.dev_key); in bt_mesh_dev_key_cand_activate() 252 memcpy(&bt_mesh.dev_key, &bt_mesh.dev_key_cand, sizeof(struct bt_mesh_key)); in bt_mesh_dev_key_cand_activate() 397 bt_mesh_key_destroy(&bt_mesh.dev_key); in bt_mesh_reset() 398 memset(&bt_mesh.dev_key, 0, sizeof(bt_mesh.dev_key)); in bt_mesh_reset()
|
D | app_keys.h | 56 uint16_t bt_mesh_app_key_find(bool dev_key, uint8_t aid,
|
D | cdb.c | 53 struct bt_mesh_key dev_key; member 267 memcpy(&tmp, &val.dev_key, sizeof(struct bt_mesh_key)); in cdb_node_set() 268 bt_mesh_key_assign(&node->dev_key, &tmp); in cdb_node_set() 455 memcpy(&val.dev_key, &node->dev_key, sizeof(struct bt_mesh_key)); in store_cdb_node() 951 bt_mesh_key_destroy(&node->dev_key); in bt_mesh_cdb_node_del() 952 memset(&node->dev_key, 0, sizeof(node->dev_key)); in bt_mesh_cdb_node_del() 1014 if (!bt_mesh_key_compare(in, &node->dev_key)) { in bt_mesh_cdb_node_key_import() 1018 bt_mesh_key_destroy(&node->dev_key); in bt_mesh_cdb_node_key_import() 1020 return bt_mesh_key_import(BT_MESH_KEY_TYPE_DEV, in, &node->dev_key); in bt_mesh_cdb_node_key_import() 1025 return bt_mesh_key_export(out, &node->dev_key); in bt_mesh_cdb_node_key_export()
|
D | app_keys.c | 503 *app_key = &node->dev_key; in bt_mesh_keys_resolve() 505 *app_key = &bt_mesh.dev_key; in bt_mesh_keys_resolve() 535 uint16_t bt_mesh_app_key_find(bool dev_key, uint8_t aid, in bt_mesh_app_key_find() argument 543 if (dev_key) { in bt_mesh_app_key_find() 553 if (node && !cb(rx, &node->dev_key, cb_data)) { in bt_mesh_app_key_find() 562 err = cb(rx, &bt_mesh.dev_key, cb_data); in bt_mesh_app_key_find()
|
D | net.c | 68 struct bt_mesh_key dev_key; member 1012 bt_mesh_key_destroy(&bt_mesh.dev_key); in net_set() 1013 memset(&bt_mesh.dev_key, 0, sizeof(struct bt_mesh_key)); in net_set() 1026 memcpy(&key, &net.dev_key, sizeof(struct bt_mesh_key)); in net_set() 1028 bt_mesh_key_assign(&bt_mesh.dev_key, &key); in net_set() 1032 LOG_DBG("Recovered DevKey %s", bt_hex(&bt_mesh.dev_key, sizeof(struct bt_mesh_key))); in net_set() 1128 BT_MESH_SETTINGS_DEFINE(dev_key, "DevKeyC", dev_key_cand_set); 1212 bt_hex(&bt_mesh.dev_key, sizeof(struct bt_mesh_key))); in store_pending_net() 1215 memcpy(&net.dev_key, &bt_mesh.dev_key, sizeof(struct bt_mesh_key)); in store_pending_net()
|
D | net.h | 46 struct bt_mesh_key dev_key; member 240 struct bt_mesh_key dev_key; member
|
D | crypto.h | 96 int bt_mesh_dev_key(const uint8_t dhkey[32], const uint8_t prov_salt[16], uint8_t dev_key[16]); 110 bool dev_key; member
|
D | crypto.c | 276 int bt_mesh_dev_key(const uint8_t dhkey[32], const uint8_t prov_salt[16], uint8_t dev_key[16]) in bt_mesh_dev_key() 280 err = bt_mesh_k1(dhkey, 32, prov_salt, "prdk", dev_key); in bt_mesh_dev_key() 283 LOG_DBG("DevKey: %s", bt_hex(dev_key, 16)); in bt_mesh_dev_key() 440 if (ctx->dev_key) { in create_app_nonce() 461 LOG_DBG("dev_key %u src 0x%04x dst 0x%04x", ctx->dev_key, ctx->src, ctx->dst); in bt_mesh_app_encrypt()
|
D | provisionee.c | 514 uint8_t dev_key[16]; in prov_data() local 550 bt_mesh_prov_link.prov_salt, dev_key); in prov_data() 584 bt_mesh_dev_key_cand(dev_key); in prov_data() 595 err = bt_mesh_provision(pdu, net_idx, flags, iv_index, bt_mesh_prov_link.addr, dev_key); in prov_data()
|
/Zephyr-latest/samples/bluetooth/mesh_demo/src/ |
D | main.c | 29 static const uint8_t dev_key[16] = { variable 189 dev_key); in bt_ready()
|
/Zephyr-latest/samples/bluetooth/mesh_provisioner/src/ |
D | main.c | 260 uint8_t net_key[16], dev_key[16]; in bt_ready() local 289 bt_rand(dev_key, 16); in bt_ready() 292 dev_key); in bt_ready()
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | mesh.c | 587 uint8_t dev_key[16]; in provision_and_configure() local 591 err = bt_rand(dev_key, sizeof(dev_key)); in provision_and_configure() 606 err = bt_mesh_provision(net_key, NET_IDX, FLAGS, IV_INDEX, addr, dev_key); in provision_and_configure()
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | shell.c | 1224 uint8_t dev_key[16]; in cdb_print_nodes() local 1239 if (bt_mesh_cdb_node_key_export(node, dev_key)) { in cdb_print_nodes() 1243 bin2hex(dev_key, 16, key_hex_str, sizeof(key_hex_str)); in cdb_print_nodes() 1333 uint8_t uuid[16], dev_key[16]; in cmd_cdb_node_add() local 1351 bt_rand(dev_key, 16); in cmd_cdb_node_add() 1353 len = hex2bin(argv[5], strlen(argv[5]), dev_key, in cmd_cdb_node_add() 1354 sizeof(dev_key)); in cmd_cdb_node_add() 1355 memset(dev_key + len, 0, sizeof(dev_key) - len); in cmd_cdb_node_add() 1364 err = bt_mesh_cdb_node_key_import(node, dev_key); in cmd_cdb_node_add()
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | cdb.h | 40 struct bt_mesh_key dev_key; member
|
/Zephyr-latest/samples/bluetooth/mesh/src/ |
D | main.c | 342 static uint8_t dev_key[16]; in button_pressed() local 354 err = bt_mesh_provision(net_key, 0, 0, 0, addr, dev_key); in button_pressed()
|