/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/ |
D | crypto.h | 48 static inline int bt_mesh_id_resolving_key(const uint8_t net_key[16], in bt_mesh_id_resolving_key() 51 return bt_mesh_k1_str(net_key, 16, "smbt", "smbi", resolving_key); in bt_mesh_id_resolving_key() 54 static inline int bt_mesh_identity_key(const uint8_t net_key[16], in bt_mesh_identity_key() 57 return bt_mesh_id128(net_key, "nkik", identity_key); in bt_mesh_identity_key() 60 static inline int bt_mesh_beacon_key(const uint8_t net_key[16], in bt_mesh_beacon_key() 63 return bt_mesh_id128(net_key, "nkbk", beacon_key); in bt_mesh_beacon_key()
|
D | cdb.c | 290 memcpy(sub->keys[0].net_key, &key.val[0], 16); in cdb_subnet_set() 291 memcpy(sub->keys[1].net_key, &key.val[1], 16); in cdb_subnet_set() 303 memcpy(sub->keys[0].net_key, &key.val[0], 16); in cdb_subnet_set() 304 memcpy(sub->keys[1].net_key, &key.val[1], 16); in cdb_subnet_set() 453 bt_hex(sub->keys[0].net_key, 16)); in store_cdb_subnet() 455 memcpy(&key.val[0], sub->keys[0].net_key, 16); in store_cdb_subnet() 456 memcpy(&key.val[1], sub->keys[1].net_key, 16); in store_cdb_subnet() 694 memcpy(sub->keys[0].net_key, key, 16); in bt_mesh_cdb_create()
|
D | shell.c | 1015 memcpy(key_val, subnet->keys[0].net_key, 16); in cmd_net_key_add() 1024 memcpy(subnet->keys[0].net_key, key_val, 16); in cmd_net_key_add() 1942 const uint8_t *net_key = default_key; in cmd_provision() local 1970 net_key = sub->keys[SUBNET_KEY_TX_IDX(sub)].net_key; in cmd_provision() 1973 err = bt_mesh_provision(net_key, net_idx, 0, iv_index, addr, in cmd_provision() 2339 uint8_t net_key[16]; in cmd_cdb_create() local 2344 bt_rand(net_key, 16); in cmd_cdb_create() 2346 len = hex2bin(argv[1], strlen(argv[1]), net_key, in cmd_cdb_create() 2347 sizeof(net_key)); in cmd_cdb_create() 2348 memset(net_key + len, 0, sizeof(net_key) - len); in cmd_cdb_create() [all …]
|
D | main.c | 42 int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx, in bt_mesh_provision() 108 err = bt_mesh_net_create(net_idx, flags, net_key, iv_index); in bt_mesh_provision()
|
D | provisioner.c | 530 net_buf_simple_add_mem(&pdu, sub->keys[SUBNET_KEY_TX_IDX(sub)].net_key, 16); in send_prov_data()
|
D | cfg_cli.c | 1241 const uint8_t net_key[16], uint8_t *status) in bt_mesh_cfg_net_key_add() 1263 net_buf_simple_add_mem(&msg, net_key, 16); in bt_mesh_cfg_net_key_add() 1281 uint16_t key_net_idx, const uint8_t net_key[16], in bt_mesh_cfg_net_key_update() 1304 net_buf_simple_add_mem(&msg, net_key, 16); in bt_mesh_cfg_net_key_update()
|
/Zephyr-Core-2.7.6/samples/bluetooth/mesh_provisioner/src/ |
D | main.c | 239 uint8_t net_key[16], dev_key[16]; in bt_ready() local 255 bt_rand(net_key, 16); in bt_ready() 257 err = bt_mesh_cdb_create(net_key); in bt_ready() 270 err = bt_mesh_provision(net_key, BT_MESH_NET_PRIMARY, 0, 0, self_addr, in bt_ready()
|
/Zephyr-Core-2.7.6/samples/bluetooth/mesh_demo/src/ |
D | main.c | 25 static const uint8_t net_key[16] = { variable 189 err = bt_mesh_provision(net_key, net_idx, flags, iv_index, addr, in bt_ready()
|
/Zephyr-Core-2.7.6/include/bluetooth/mesh/ |
D | cdb.h | 48 uint8_t net_key[16]; member
|
D | main.h | 410 int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx,
|
D | cfg_cli.h | 277 const uint8_t net_key[16], uint8_t *status); 997 uint16_t key_net_idx, const uint8_t net_key[16],
|
/Zephyr-Core-2.7.6/samples/bluetooth/mesh/src/ |
D | main.c | 342 static uint8_t net_key[16]; in button_pressed() local 355 err = bt_mesh_provision(net_key, 0, 0, 0, addr, dev_key); in button_pressed()
|
/Zephyr-Core-2.7.6/samples/boards/reel_board/mesh_badge/src/ |
D | mesh.c | 499 static const uint8_t net_key[16] = { in provision_and_configure() local 532 err = bt_mesh_provision(net_key, NET_IDX, FLAGS, IV_INDEX, addr, in provision_and_configure()
|
/Zephyr-Core-2.7.6/tests/bluetooth/tester/src/ |
D | mesh.c | 34 static uint8_t net_key[16]; variable 489 memcpy(net_key, cmd->net_key, sizeof(net_key)); in provision_node() 506 err = bt_mesh_cdb_create(net_key); in provision_node() 512 err = bt_mesh_provision(net_key, net_key_idx, flags, iv_index, addr, in provision_node() 558 err = bt_mesh_provision(net_key, net_key_idx, flags, iv_index, in init() 1541 cmd->net_key_idx, cmd->net_key, &status); in config_netkey_add() 1565 cmd->net_key_idx, cmd->net_key, in config_netkey_update()
|
D | bttester.h | 921 uint8_t net_key[16]; member 1087 uint8_t net_key[16]; member 1323 uint8_t net_key[16]; member
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/ |
D | test_persistence.c | 400 memcpy(subnet->keys[0].net_key, test_netkey, 16); in provisioner_setup()
|