Home
last modified time | relevance | path

Searched refs:dev_key (Results 1 – 16 of 16) sorted by relevance

/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_core/
Dcrypto.h112 uint8_t dev_key[16]) in bt_mesh_dev_key()
114 return bt_mesh_k1(dhkey, 32, prov_salt, "prdk", dev_key); in bt_mesh_dev_key()
141 int bt_mesh_app_encrypt(const uint8_t key[16], bool dev_key, uint8_t aszmic,
145 int bt_mesh_app_decrypt(const uint8_t key[16], bool dev_key, uint8_t aszmic,
Dmain.c40 const uint8_t dev_key[16]) in bt_mesh_provision()
48 BT_INFO("dev_key %s", bt_hex(dev_key, 16)); in bt_mesh_provision()
79 memcpy(bt_mesh.dev_key, dev_key, 16); in bt_mesh_provision()
124 (void)memset(bt_mesh.dev_key, 0, sizeof(bt_mesh.dev_key)); in bt_mesh_node_reset()
Dprovisioner_main.h42 uint8_t dev_key[16]; /* Node device key */ member
68 const uint8_t dev_key[16], uint16_t *index);
Dtest.h27 uint8_t dev_key[16]; member
Dcrypto.c655 static void create_app_nonce(uint8_t nonce[13], bool dev_key, uint8_t aszmic, in create_app_nonce() argument
659 if (dev_key) { in create_app_nonce()
673 int bt_mesh_app_encrypt(const uint8_t key[16], bool dev_key, uint8_t aszmic, in bt_mesh_app_encrypt() argument
681 BT_DBG("dev_key %u src 0x%04x dst 0x%04x", dev_key, src, dst); in bt_mesh_app_encrypt()
685 create_app_nonce(nonce, dev_key, aszmic, src, dst, seq_num, iv_index); in bt_mesh_app_encrypt()
699 int bt_mesh_app_decrypt(const uint8_t key[16], bool dev_key, uint8_t aszmic, in bt_mesh_app_decrypt() argument
709 create_app_nonce(nonce, dev_key, aszmic, src, dst, seq_num, iv_index); in bt_mesh_app_decrypt()
Dsettings.c72 uint8_t dev_key[16]; member
168 uint8_t dev_key[16]; member
235 memset(bt_mesh.dev_key, 0, sizeof(bt_mesh.dev_key)); in net_set()
244 memcpy(bt_mesh.dev_key, net.dev_key, sizeof(bt_mesh.dev_key)); in net_set()
248 BT_INFO("Restored DevKey %s", bt_hex(bt_mesh.dev_key, 16)); in net_set()
1106 memcpy(node.dev_key, info.dev_key, 16); in node_info_set()
1512 bt_hex(bt_mesh.dev_key, 16)); in store_pending_net()
1515 memcpy(net.dev_key, bt_mesh.dev_key, 16); in store_pending_net()
2537 memcpy(val.dev_key, node->dev_key, 16); in bt_mesh_store_node_info()
Dfast_prov.c41 return bt_mesh.dev_key; in bt_mesh_fast_prov_dev_key_get()
Dprovisioner_main.c322 const uint8_t dev_key[16], uint16_t *index) in bt_mesh_provisioner_provision()
328 if (!addr || !uuid || !dev_key || !index) { in bt_mesh_provisioner_provision()
336 BT_INFO("DevKey %s", bt_hex(dev_key, 16)); in bt_mesh_provisioner_provision()
347 memcpy(node.dev_key, dev_key, 16); in bt_mesh_provisioner_provision()
800 return node->dev_key; in bt_mesh_provisioner_dev_key_get()
Dtest.c50 info->unicast_addr, info->dev_key); in bt_mesh_device_auto_enter_network()
Daccess.c965 key = bt_mesh.dev_key; in bt_mesh_tx_devkey_get()
1076 key = bt_mesh.dev_key; in bt_mesh_rx_devkey_get()
1088 key = bt_mesh.dev_key; in bt_mesh_rx_devkey_get()
Dprov.c1166 uint8_t dev_key[16] = {0}; in prov_data() local
1202 err = bt_mesh_dev_key(link.dhkey, link.prov_salt, dev_key); in prov_data()
1209 BT_DBG("DevKey: %s", bt_hex(dev_key, 16)); in prov_data()
1235 err = bt_mesh_provision(pdu, net_idx, flags, iv_index, addr, dev_key); in prov_data()
Dnet.h258 uint8_t dev_key[16]; member
Dtransport.c768 const uint8_t *dev_key = NULL; in sdu_recv() local
770 dev_key = bt_mesh_rx_devkey_get(i, rx->ctx.addr); in sdu_recv()
771 if (!dev_key) { in sdu_recv()
777 err = bt_mesh_app_decrypt(dev_key, true, aszmic, buf, in sdu_recv()
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/
Dble_mesh_register_cmd.c84 struct arg_str *dev_key; member
130 struct arg_str *dev_key; member
638 err = get_value_string((char *)node_network_info.dev_key->sval[0], (char *)info.dev_key); in ble_mesh_node_enter_network_auto()
758 printf("%02x", node_info->dev_key[i]); in ble_mesh_provisioner_get_node()
787 if (provisioner_add_node.dev_key->count != 0) { in ble_mesh_provisioner_add_node()
788 get_value_string((char *)provisioner_add_node.dev_key->sval[0], (char *)node_info.dev_key); in ble_mesh_provisioner_add_node()
986 provisioner_add_node.dev_key = arg_str0("d", NULL, "<device key>", "device key"); in ble_mesh_register_cmd()
1016 node_network_info.dev_key = arg_str1("d", NULL, "<device key>", "device key"); in ble_mesh_register_cmd()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_core/include/
Dmesh_main.h532 const uint8_t dev_key[16]);
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/api/
Desp_ble_mesh_defs.h745 uint8_t dev_key[16]; /*!< Node device key */ member