Home
last modified time | relevance | path

Searched refs:net_key (Results 1 – 25 of 28) sorted by relevance

12

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dcrypto.h61 static inline int bt_mesh_id_resolving_key(const uint8_t net_key[16], in bt_mesh_id_resolving_key()
64 return bt_mesh_k1_str(net_key, 16, "smbt", "smbi", resolving_key); in bt_mesh_id_resolving_key()
67 static inline int bt_mesh_identity_key(const uint8_t net_key[16], in bt_mesh_identity_key()
70 return bt_mesh_id128(net_key, "nkik", identity_key); in bt_mesh_identity_key()
73 static inline int bt_mesh_beacon_key(const uint8_t net_key[16], in bt_mesh_beacon_key()
76 return bt_mesh_id128(net_key, "nkbk", beacon_key); in bt_mesh_beacon_key()
Dlocal_operation.c161 int bt_mesh_node_local_net_key_add(uint16_t net_idx, const uint8_t net_key[16]) in bt_mesh_node_local_net_key_add()
167 if (net_idx > 0xFFF || net_key == NULL) { in bt_mesh_node_local_net_key_add()
186 memcmp(bt_mesh.sub[i].keys[0].net, net_key, 16) == 0) || in bt_mesh_node_local_net_key_add()
188 memcmp(bt_mesh.sub[i].keys[1].net, net_key, 16) == 0)) { in bt_mesh_node_local_net_key_add()
189 BT_WARN("Key value %s already exists", bt_hex(net_key, 16)); in bt_mesh_node_local_net_key_add()
207 err = bt_mesh_net_keys_create(&sub->keys[0], net_key); in bt_mesh_node_local_net_key_add()
Dtest.h22 uint8_t net_key[16]; member
Dfast_prov.h24 uint8_t bt_mesh_fast_prov_net_key_add(const uint8_t net_key[16]);
Dprovisioner_main.h110 int bt_mesh_provisioner_local_net_key_add(const uint8_t net_key[16], uint16_t *net_idx);
112 int bt_mesh_provisioner_local_net_key_update(const uint8_t net_key[16], uint16_t net_idx);
Dfast_prov.c99 uint8_t bt_mesh_fast_prov_net_key_add(const uint8_t net_key[16]) in bt_mesh_fast_prov_net_key_add()
107 err = bt_mesh_provisioner_local_net_key_add(net_key, &net_idx); in bt_mesh_fast_prov_net_key_add()
Dprov.h35 void bt_mesh_prov_complete(uint16_t net_idx, const uint8_t net_key[16],
Dprovisioner_main.c879 static int provisioner_check_net_key(const uint8_t net_key[16], uint16_t *net_idx) in provisioner_check_net_key()
884 if (!net_key) { in provisioner_check_net_key()
891 if (sub && (!memcmp(sub->keys[0].net, net_key, 16) || in provisioner_check_net_key()
892 !memcmp(sub->keys[1].net, net_key, 16))) { in provisioner_check_net_key()
1215 int bt_mesh_provisioner_local_net_key_add(const uint8_t net_key[16], uint16_t *net_idx) in bt_mesh_provisioner_local_net_key_add()
1232 if (provisioner_check_net_key(net_key, net_idx)) { in bt_mesh_provisioner_local_net_key_add()
1249 if (!net_key) { in bt_mesh_provisioner_local_net_key_add()
1255 memcpy(p_key, net_key, 16); in bt_mesh_provisioner_local_net_key_add()
1303 int bt_mesh_provisioner_local_net_key_update(const uint8_t net_key[16], uint16_t net_idx) in bt_mesh_provisioner_local_net_key_update()
1308 if (net_key == NULL) { in bt_mesh_provisioner_local_net_key_update()
[all …]
Dlocal_operation.h29 int bt_mesh_node_local_net_key_add(uint16_t net_idx, const uint8_t net_key[16]);
Dtest.c49 err = bt_mesh_provision(info->net_key, info->net_idx, info->flags, info->iv_index, in bt_mesh_device_auto_enter_network()
Dmain.c38 int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx, in bt_mesh_provision()
64 err = bt_mesh_net_create(net_idx, flags, net_key, iv_index); in bt_mesh_provision()
Dcfg_cli.c775 uint16_t net_idx, const uint8_t net_key[16]) in bt_mesh_cfg_net_key_add()
779 if (!net_key) { in bt_mesh_cfg_net_key_add()
786 net_buf_simple_add_mem(&msg, net_key, 16); in bt_mesh_cfg_net_key_add()
1079 uint16_t net_idx, const uint8_t net_key[16]) in bt_mesh_cfg_net_key_update()
1083 if (!net_key) { in bt_mesh_cfg_net_key_update()
1090 net_buf_simple_add_mem(&msg, net_key, 16); in bt_mesh_cfg_net_key_update()
Dnet.h398 int friend_cred_set(struct friend_cred *cred, uint8_t idx, const uint8_t net_key[16]);
Dnet.c215 int friend_cred_set(struct friend_cred *cred, uint8_t idx, const uint8_t net_key[16]) in friend_cred_set()
244 err = bt_mesh_k2(net_key, p, sizeof(p), &cred->cred[idx].nid, in friend_cred_set()
1600 const uint8_t *net_key = bt_mesh.sub[0].keys[flags].net; in bt_mesh_net_start() local
1605 bt_mesh_prov_complete(net_idx, net_key, addr, flags, iv_index); in bt_mesh_net_start()
/hal_espressif-latest/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_local_data_operation_api.c137 esp_err_t esp_ble_mesh_node_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx) in esp_ble_mesh_node_add_local_net_key()
142 if (net_key == NULL || net_idx > 0xFFF) { in esp_ble_mesh_node_add_local_net_key()
153 memcpy(arg.node_add_local_net_key.net_key, net_key, 16); in esp_ble_mesh_node_add_local_net_key()
Desp_ble_mesh_networking_api.c473 esp_err_t esp_ble_mesh_provisioner_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx) in esp_ble_mesh_provisioner_add_local_net_key()
489 if (net_key) { in esp_ble_mesh_provisioner_add_local_net_key()
490 memcpy(arg.add_local_net_key.net_key, net_key, 16); in esp_ble_mesh_provisioner_add_local_net_key()
492 bzero(arg.add_local_net_key.net_key, 16); in esp_ble_mesh_provisioner_add_local_net_key()
498 esp_err_t esp_ble_mesh_provisioner_update_local_net_key(const uint8_t net_key[16], uint16_t net_idx) in esp_ble_mesh_provisioner_update_local_net_key()
503 if (net_key == NULL) { in esp_ble_mesh_provisioner_update_local_net_key()
513 memcpy(arg.update_local_net_key.net_key, net_key, 16); in esp_ble_mesh_provisioner_update_local_net_key()
/hal_espressif-latest/components/bt/esp_ble_mesh/api/core/include/
Desp_ble_mesh_networking_api.h385 esp_err_t esp_ble_mesh_provisioner_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx);
396 esp_err_t esp_ble_mesh_provisioner_update_local_net_key(const uint8_t net_key[16], uint16_t net_idx…
Desp_ble_mesh_local_data_operation_api.h168 esp_err_t esp_ble_mesh_node_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx);
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/include/
Dcfg_srv.h151 uint8_t net_key[16]; member
155 uint8_t net_key[16]; member
Dmesh_main.h179 …void (*complete)(uint16_t net_idx, const uint8_t net_key[16], uint16_t addr, uint8_t flags,…
530 int bt_mesh_provision(const uint8_t net_key[16], uint16_t net_idx,
Dcfg_cli.h62 uint16_t net_idx, const uint8_t net_key[16]);
269 uint16_t net_idx, const uint8_t net_key[16]);
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/include/
Dbtc_ble_mesh_prov.h117 uint8_t net_key[16]; member
202 uint8_t net_key[16]; member
206 uint8_t net_key[16]; member
/hal_espressif-latest/components/bt/esp_ble_mesh/api/models/include/
Desp_ble_mesh_config_model_api.h170 uint8_t net_key[16]; /*!< The network key value */ member
272 uint8_t net_key[16]; /*!< The network key value */ member
644 uint8_t net_key[16]; /*!< NetKey */ member
650 uint8_t net_key[16]; /*!< NetKey */ member
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_prov.c638 static void btc_ble_mesh_complete_cb(uint16_t net_idx, const uint8_t net_key[16], in btc_ble_mesh_complete_cb()
646 memcpy(mesh_param.node_prov_complete.net_key, net_key, 16); in btc_ble_mesh_complete_cb()
1875 arg->node_add_local_net_key.net_key); in btc_ble_mesh_prov_call_handler()
2059 const uint8_t *net_key = NULL; in btc_ble_mesh_prov_call_handler() local
2061 if (memcmp(arg->add_local_net_key.net_key, zero, 16)) { in btc_ble_mesh_prov_call_handler()
2062 net_key = arg->add_local_net_key.net_key; in btc_ble_mesh_prov_call_handler()
2066 bt_mesh_provisioner_local_net_key_add(net_key, &arg->add_local_net_key.net_idx); in btc_ble_mesh_prov_call_handler()
2074 bt_mesh_provisioner_local_net_key_update(arg->update_local_net_key.net_key, in btc_ble_mesh_prov_call_handler()
Dbtc_ble_mesh_config_model.c507 &set->net_key_add.net_key[0]); in btc_ble_mesh_config_client_set_state()
585 set->net_key_update.net_key); in btc_ble_mesh_config_client_set_state()

12