/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto.h | 67 static inline int bt_mesh_identity_key(const uint8_t net_key[16], struct bt_mesh_key *identity_key) in bt_mesh_identity_key() 69 return bt_mesh_id128(net_key, "nkik", BT_MESH_KEY_TYPE_ECB, identity_key); in bt_mesh_identity_key() 72 static inline int bt_mesh_beacon_key(const uint8_t net_key[16], struct bt_mesh_key *beacon_key) in bt_mesh_beacon_key() 74 return bt_mesh_id128(net_key, "nkbk", BT_MESH_KEY_TYPE_CMAC, beacon_key); in bt_mesh_beacon_key() 77 static inline int bt_mesh_private_beacon_key(const uint8_t net_key[16], in bt_mesh_private_beacon_key() 80 return bt_mesh_id128(net_key, "nkpk", BT_MESH_KEY_TYPE_ECB, private_beacon_key); in bt_mesh_private_beacon_key()
|
D | cdb.c | 320 bt_mesh_key_assign(&sub->keys[0].net_key, &tmp[0]); in cdb_subnet_set() 321 bt_mesh_key_assign(&sub->keys[1].net_key, &tmp[1]); in cdb_subnet_set() 333 bt_mesh_key_assign(&sub->keys[0].net_key, &tmp[0]); in cdb_subnet_set() 334 bt_mesh_key_assign(&sub->keys[1].net_key, &tmp[1]); in cdb_subnet_set() 490 bt_hex(&sub->keys[0].net_key, sizeof(struct bt_mesh_key))); in store_cdb_subnet() 492 memcpy(&key.val[0], &sub->keys[0].net_key, sizeof(struct bt_mesh_key)); in store_cdb_subnet() 493 memcpy(&key.val[1], &sub->keys[1].net_key, sizeof(struct bt_mesh_key)); in store_cdb_subnet() 747 err = bt_mesh_key_import(BT_MESH_KEY_TYPE_NET, key, &sub->keys[0].net_key); in bt_mesh_cdb_create() 845 bt_mesh_key_destroy(&sub->keys[0].net_key); in bt_mesh_cdb_subnet_del() 846 bt_mesh_key_destroy(&sub->keys[1].net_key); in bt_mesh_cdb_subnet_del() [all …]
|
D | main.c | 45 int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx, in bt_mesh_provision() 108 net_key); in bt_mesh_provision() 136 err = bt_mesh_key_import(BT_MESH_KEY_TYPE_NET, net_key, &mesh_net_key); in bt_mesh_provision()
|
D | provisioner.c | 496 uint8_t net_key[16]; in send_prov_data() local 534 err = bt_mesh_key_export(net_key, &sub->keys[SUBNET_KEY_TX_IDX(sub)].net_key); in send_prov_data() 542 net_buf_simple_add_mem(&pdu, net_key, sizeof(net_key)); in send_prov_data()
|
D | cfg_cli.c | 1320 const uint8_t net_key[16], uint8_t *status) in bt_mesh_cfg_cli_net_key_add() 1337 net_buf_simple_add_mem(&msg, net_key, 16); in bt_mesh_cfg_cli_net_key_add() 1343 const uint8_t net_key[16], uint8_t *status) in bt_mesh_cfg_cli_net_key_update() 1360 net_buf_simple_add_mem(&msg, net_key, 16); in bt_mesh_cfg_cli_net_key_update()
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | shell.c | 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() [all …]
|
/Zephyr-latest/samples/bluetooth/mesh_provisioner/src/ |
D | main.c | 260 uint8_t net_key[16], dev_key[16]; in bt_ready() local 276 bt_rand(net_key, 16); in bt_ready() 278 err = bt_mesh_cdb_create(net_key); in bt_ready() 291 err = bt_mesh_provision(net_key, BT_MESH_NET_PRIMARY, 0, 0, self_addr, in bt_ready()
|
/Zephyr-latest/samples/bluetooth/mesh_demo/src/ |
D | main.c | 25 static const uint8_t net_key[16] = { variable 188 err = bt_mesh_provision(net_key, net_idx, flags, iv_index, addr, in bt_ready()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_beacon.c | 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() [all …]
|
D | test_cdp1.c | 49 static uint8_t net_key[16] = {0xcc}; variable 296 err = bt_mesh_provision(net_key, 0, 0, 0, cfg.addr, cfg.dev_key); in provision_and_configure()
|
D | test_suspend.c | 34 static uint8_t net_key[16] = {0xcc}; variable 166 ASSERT_OK(bt_mesh_provision(net_key, 0, 0, 0, cfg.addr, cfg.dev_key)); in provision_and_configure()
|
D | test_persistence.c | 489 uint8_t net_key[16]; in test_provisioning_data_load() local 509 ASSERT_OK(bt_mesh_key_export(net_key, &tx.sub->keys[0].net)); in test_provisioning_data_load() 510 LOG_HEXDUMP_INF(net_key, sizeof(net_key), "Exported network key:"); in test_provisioning_data_load() 512 if (memcmp(net_key, test_netkey, sizeof(test_netkey))) { in test_provisioning_data_load()
|
D | test_access.c | 54 static uint8_t net_key[16] = { 0xcc }; variable 313 err = bt_mesh_provision(net_key, 0, 0, 0, addr, dev_key); in provision()
|
D | test_blob.c | 130 static uint8_t net_key[16] = { 0xcc }; variable 295 err = bt_mesh_provision(net_key, 0, 0, 0, addr, dev_key); in provision()
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | cdb.h | 51 struct bt_mesh_key net_key; member
|
D | main.h | 454 int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx,
|
D | cfg_cli.h | 791 const uint8_t net_key[16], uint8_t *status); 1511 const uint8_t net_key[16], uint8_t *status);
|
/Zephyr-latest/samples/bluetooth/mesh/src/ |
D | main.c | 341 static uint8_t net_key[16]; in button_pressed() local 354 err = bt_mesh_provision(net_key, 0, 0, 0, addr, dev_key); in button_pressed()
|
/Zephyr-latest/tests/bluetooth/tester/src/btp/ |
D | btp_mesh.h | 60 uint8_t net_key[16]; member 69 uint8_t net_key[16]; member 312 uint8_t net_key[16]; member 569 uint8_t net_key[16]; member 732 uint8_t net_key[16]; member
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | mesh.c | 579 static const uint8_t net_key[16] = { in provision_and_configure() local 606 err = bt_mesh_provision(net_key, NET_IDX, FLAGS, IV_INDEX, addr, dev_key); in provision_and_configure()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 41 static uint8_t net_key[16]; variable 1442 memcpy(net_key, cp->net_key, sizeof(net_key)); in provision_node() 1459 err = bt_mesh_cdb_create(net_key); in provision_node() 1465 err = bt_mesh_provision(net_key, net_key_idx, flags, iv_index, addr, in provision_node() 1528 err = bt_mesh_provision(net_key, net_key_idx, flags, iv_index, in start() 2976 cp->net_key, &status); in config_netkey_add() 3002 cp->net_key, in config_netkey_update()
|