Home
last modified time | relevance | path

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

12

/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/
Daccess.c62 if (!mod->pub) { in bt_mesh_model_pub_period_get()
67 switch (mod->pub->period >> 6) { in bt_mesh_model_pub_period_get()
70 period = K_MSEC((mod->pub->period & BIT_MASK(6)) * 100U); in bt_mesh_model_pub_period_get()
74 period = K_SECONDS(mod->pub->period & BIT_MASK(6)); in bt_mesh_model_pub_period_get()
78 period = K_SECONDS((mod->pub->period & BIT_MASK(6)) * 10U); in bt_mesh_model_pub_period_get()
82 period = K_MINUTES((mod->pub->period & BIT_MASK(6)) * 10U); in bt_mesh_model_pub_period_get()
89 if (mod->pub->fast_period) { in bt_mesh_model_pub_period_get()
90 return period >> mod->pub->period_div; in bt_mesh_model_pub_period_get()
98 struct bt_mesh_model_pub *pub = mod->pub; in next_period() local
101 if (!pub) { in next_period()
[all …]
Dhealth_srv.c281 net_buf_simple_add_u8(&msg, model->pub->period_div); in send_health_period_status()
311 model->pub->period_div = period; in health_set_period()
367 struct bt_mesh_model_pub *pub = model->pub; in health_pub_update() local
372 if (!pub || !pub->msg) { in health_pub_update()
377 count = health_get_current(model, pub->msg); in health_pub_update()
379 pub->fast_period = 1U; in health_pub_update()
381 pub->fast_period = 0U; in health_pub_update()
397 if (!model->pub) { in bt_mesh_fault_update()
450 if (!model->pub) { in health_srv_init()
455 model->pub->update = health_pub_update; in health_srv_init()
[all …]
Dsettings.c685 struct mod_pub_val pub = {0}; in model_set_pub() local
690 if (!model->pub) { in model_set_pub()
697 err = bt_mesh_load_core_settings(name, (uint8_t *)&pub, sizeof(pub), &exist); in model_set_pub()
700 model->pub->addr = BLE_MESH_ADDR_UNASSIGNED; in model_set_pub()
701 model->pub->key = 0U; in model_set_pub()
702 model->pub->cred = 0U; in model_set_pub()
703 model->pub->ttl = 0U; in model_set_pub()
704 model->pub->period = 0U; in model_set_pub()
705 model->pub->retransmit = 0U; in model_set_pub()
706 model->pub->count = 0U; in model_set_pub()
[all …]
Dcfg_cli.c927 struct bt_mesh_cfg_mod_pub *pub) in bt_mesh_cfg_mod_pub_set() argument
931 if (!pub) { in bt_mesh_cfg_mod_pub_set()
938 net_buf_simple_add_le16(&msg, pub->addr); in bt_mesh_cfg_mod_pub_set()
939 net_buf_simple_add_le16(&msg, (pub->app_idx | (pub->cred_flag << 12))); in bt_mesh_cfg_mod_pub_set()
940 net_buf_simple_add_u8(&msg, pub->ttl); in bt_mesh_cfg_mod_pub_set()
941 net_buf_simple_add_u8(&msg, pub->period); in bt_mesh_cfg_mod_pub_set()
942 net_buf_simple_add_u8(&msg, pub->transmit); in bt_mesh_cfg_mod_pub_set()
975 struct bt_mesh_cfg_hb_pub *pub) in bt_mesh_cfg_hb_pub_set() argument
979 if (!pub) { in bt_mesh_cfg_hb_pub_set()
985 net_buf_simple_add_le16(&msg, pub->dst); in bt_mesh_cfg_hb_pub_set()
[all …]
Dmain.c283 if (mod->pub && mod->pub->update) { in model_suspend()
284 mod->pub->count = 0U; in model_suspend()
285 k_delayed_work_cancel(&mod->pub->timer); in model_suspend()
322 if (mod->pub && mod->pub->update) { in model_resume()
326 k_delayed_work_submit(&mod->pub->timer, period_ms); in model_resume()
Dcfg_srv.c219 if (!model->pub) { in _mod_pub_set()
227 if (!model->pub->update && period) { in _mod_pub_set()
232 if (model->pub->addr == BLE_MESH_ADDR_UNASSIGNED) { in _mod_pub_set()
236 model->pub->addr = BLE_MESH_ADDR_UNASSIGNED; in _mod_pub_set()
237 model->pub->key = 0U; in _mod_pub_set()
238 model->pub->cred = 0U; in _mod_pub_set()
239 model->pub->ttl = 0U; in _mod_pub_set()
240 model->pub->period = 0U; in _mod_pub_set()
241 model->pub->retransmit = 0U; in _mod_pub_set()
242 model->pub->count = 0U; in _mod_pub_set()
[all …]
Dprovisioner_main.c1115 if (!model->pub) { in model_pub_clear()
1119 if (model->pub->addr == BLE_MESH_ADDR_UNASSIGNED) { in model_pub_clear()
1123 model->pub->addr = BLE_MESH_ADDR_UNASSIGNED; in model_pub_clear()
1124 model->pub->key = 0U; in model_pub_clear()
1125 model->pub->cred = 0U; in model_pub_clear()
1126 model->pub->ttl = 0U; in model_pub_clear()
1127 model->pub->period = 0U; in model_pub_clear()
1128 model->pub->retransmit = 0U; in model_pub_clear()
1129 model->pub->count = 0U; in model_pub_clear()
1131 if (model->pub->update) { in model_pub_clear()
[all …]
/hal_espressif-3.7.0/components/wpa_supplicant/src/crypto/
Dcrypto_internal-modexp.c48 struct bignum *pub; in crypto_dh_derive_secret() local
56 pub = bignum_init(); in crypto_dh_derive_secret()
57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || in crypto_dh_derive_secret()
58 bignum_cmp_d(pub, 1) <= 0) in crypto_dh_derive_secret()
72 bignum_exptmod(pub, q, p, tmp) < 0 || in crypto_dh_derive_secret()
84 bignum_deinit(pub); in crypto_dh_derive_secret()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_prov.c1470 if (model->pub) { in btc_ble_mesh_model_op_set()
1471 model->pub->update = (esp_ble_mesh_cb_t)btc_ble_mesh_model_publish_update; in btc_ble_mesh_model_op_set()
1477 if (model->pub) { in btc_ble_mesh_model_op_set()
1478 model->pub->update = (esp_ble_mesh_cb_t)btc_ble_mesh_model_publish_update; in btc_ble_mesh_model_op_set()
1484 if (model->pub) { in btc_ble_mesh_model_op_set()
1485 model->pub->update = (esp_ble_mesh_cb_t)btc_ble_mesh_model_publish_update; in btc_ble_mesh_model_op_set()
1491 if (model->pub) { in btc_ble_mesh_model_op_set()
1492 model->pub->update = (esp_ble_mesh_cb_t)btc_ble_mesh_model_publish_update; in btc_ble_mesh_model_op_set()
1498 if (model->pub) { in btc_ble_mesh_model_op_set()
1499 model->pub->update = (esp_ble_mesh_cb_t)btc_ble_mesh_model_publish_update; in btc_ble_mesh_model_op_set()
[all …]
/hal_espressif-3.7.0/components/bt/controller/esp32c2/
Dbt.c140 extern int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv);
176 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv);
357 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv) in esp_ecc_gen_key_pair() argument
361 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair()
1056 uint8_t pub[65] = {0}; in ble_sm_alg_gen_dhkey() local
1058 pub[0] = 0x04; in ble_sm_alg_gen_dhkey()
1059 memcpy(&pub[1], pk, 64); in ble_sm_alg_gen_dhkey()
1074 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey()
1089 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey()
1167 uint8_t pub[65] = {0}; in mbedtls_gen_keypair() local
[all …]
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_models/server/
Dserver_common.c233 if (model->pub == NULL || model->pub->msg == NULL || in bt_mesh_server_get_pub_msg()
234 model->pub->addr == BLE_MESH_ADDR_UNASSIGNED) { in bt_mesh_server_get_pub_msg()
239 buf = model->pub->msg; in bt_mesh_server_get_pub_msg()
Dgeneric_server.c2485 if (model->pub == NULL) { in gen_onoff_srv_init()
2495 if (model->pub == NULL) { in gen_level_srv_init()
2505 if (model->pub == NULL) { in gen_def_trans_time_srv_init()
2515 if (model->pub == NULL) { in gen_power_onoff_srv_init()
2538 if (model->pub == NULL) { in gen_power_level_srv_init()
2561 if (model->pub == NULL) { in gen_battery_srv_init()
2571 if (model->pub == NULL) { in gen_location_srv_init()
2594 if (model->pub == NULL) { in gen_user_prop_srv_init()
2604 if (model->pub == NULL) { in gen_admin_prop_srv_init()
2614 if (model->pub == NULL) { in gen_manu_prop_srv_init()
[all …]
Dtime_scene_server.c266 if (model->pub == NULL || model->pub->msg == NULL || in time_get()
267 model->pub->addr == BLE_MESH_ADDR_UNASSIGNED) { in time_get()
270 prev_ttl = model->pub->ttl; in time_get()
277 model->pub->ttl = 0U; in time_get()
281 model->pub->ttl = prev_ttl; in time_get()
1316 if (model->pub == NULL) { in time_srv_init()
1336 if (model->pub) { in time_setup_srv_init()
1346 if (model->pub == NULL) { in scene_srv_init()
1380 if (model->pub == NULL) { in scheduler_srv_init()
1459 if (model->pub == NULL) { in time_srv_deinit()
[all …]
Dlighting_server.c3165 if (model->pub == NULL) { in light_lightness_srv_init()
3188 if (model->pub == NULL) { in light_ctl_srv_init()
3220 if (model->pub == NULL) { in light_ctl_temp_srv_init()
3230 if (model->pub == NULL) { in light_hsl_srv_init()
3263 if (model->pub == NULL) { in light_hsl_hue_srv_init()
3273 if (model->pub == NULL) { in light_hsl_sat_srv_init()
3283 if (model->pub == NULL) { in light_xyl_srv_init()
3307 if (model->pub == NULL) { in light_lc_srv_init()
3317 if (model->pub == NULL) { in light_lc_setup_srv_init()
3459 if (model->pub == NULL) { in light_lightness_srv_deinit()
[all …]
Dsensor_server.c1100 if (model->pub == NULL) { in sensor_srv_init()
1118 if (model->pub == NULL) { in sensor_setup_srv_init()
1139 if (model->pub == NULL) { in sensor_srv_deinit()
1149 if (model->pub == NULL) { in sensor_setup_srv_deinit()
/hal_espressif-3.7.0/components/bt/controller/esp32c6/
Dbt.c150 extern int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv);
187 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv);
366 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv) in esp_ecc_gen_key_pair() argument
370 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair()
1249 uint8_t pub[65] = {0}; in ble_sm_alg_gen_dhkey() local
1251 pub[0] = 0x04; in ble_sm_alg_gen_dhkey()
1252 memcpy(&pub[1], pk, 64); in ble_sm_alg_gen_dhkey()
1267 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey()
1282 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey()
1339 uint8_t pub[65] = {0}; in mbedtls_gen_keypair() local
[all …]
/hal_espressif-3.7.0/components/bt/controller/esp32h2/
Dbt.c146 extern int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv);
183 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv);
358 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv) in esp_ecc_gen_key_pair() argument
362 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair()
1228 uint8_t pub[65] = {0}; in ble_sm_alg_gen_dhkey() local
1230 pub[0] = 0x04; in ble_sm_alg_gen_dhkey()
1231 memcpy(&pub[1], pk, 64); in ble_sm_alg_gen_dhkey()
1246 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey()
1261 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey()
1318 uint8_t pub[65] = {0}; in mbedtls_gen_keypair() local
[all …]
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/include/
Dhealth_srv.h92 #define BLE_MESH_MODEL_HEALTH_SRV(srv, pub) \ argument
94 bt_mesh_health_srv_op, pub, srv, &bt_mesh_health_srv_cb)
Dmesh_access.h261 .pub = (_pub), \
284 .pub = (_pub), \
477 struct bt_mesh_model_pub *const pub; member
Dcfg_cli.h86 struct bt_mesh_cfg_mod_pub *pub);
133 struct bt_mesh_cfg_hb_pub *pub);
257 struct bt_mesh_cfg_mod_pub *pub);
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/api/models/include/
Desp_ble_mesh_health_model_api.h27 #define ESP_BLE_MESH_MODEL_HEALTH_SRV(srv, pub) \ argument
29 NULL, pub, srv)
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_networking_api.c57 if (op_len + length > model->pub->msg->size) { in ble_mesh_model_send_msg()
58 BT_ERR("Too small publication msg size %d", model->pub->msg->size); in ble_mesh_model_send_msg()
75 bt_mesh_model_msg_init(model->pub->msg, opcode); in ble_mesh_model_send_msg()
76 net_buf_simple_add_mem(model->pub->msg, data, length); in ble_mesh_model_send_msg()
208 if (model == NULL || model->pub == NULL || model->pub->msg == NULL || in esp_ble_mesh_model_publish()
209 model->pub->publish_addr == ESP_BLE_MESH_ADDR_UNASSIGNED) { in esp_ble_mesh_model_publish()
/hal_espressif-3.7.0/components/wpa_supplicant/src/wps/
Dwps_common.c664 struct wpabuf *priv = NULL, *pub = NULL; in wps_nfc_gen_dh() local
667 dh_ctx = dh5_init(&priv, &pub); in wps_nfc_gen_dh()
670 pub = wpabuf_zeropad(pub, 192); in wps_nfc_gen_dh()
671 if (pub == NULL) { in wps_nfc_gen_dh()
676 wpa_hexdump_buf(MSG_DEBUG, "WPS: Generated new DH pubkey", pub); in wps_nfc_gen_dh()
680 *pubkey = pub; in wps_nfc_gen_dh()
/hal_espressif-3.7.0/components/wpa_supplicant/src/rsn_supp/
Dwpa.c2765 struct wpabuf *pub = NULL; in owe_build_assoc_req() local
2784 pub = crypto_ecdh_get_pubkey(sm->owe_ecdh, 0); in owe_build_assoc_req()
2785 pub = wpabuf_zeropad(pub, prime_len); in owe_build_assoc_req()
2787 if (!pub) { in owe_build_assoc_req()
2792 wpa_hexdump_buf(MSG_DEBUG, "Own public key", pub); in owe_build_assoc_req()
2797 sm->owe_ie = wpabuf_alloc(5 + wpabuf_len(pub)); in owe_build_assoc_req()
2806 wpabuf_put_u8(sm->owe_ie, 1 + 2 + wpabuf_len(pub)); in owe_build_assoc_req()
2809 wpabuf_put_buf(sm->owe_ie, pub); in owe_build_assoc_req()
2810 wpabuf_free(pub); in owe_build_assoc_req()
2817 wpabuf_free(pub); in owe_build_assoc_req()
[all …]
/hal_espressif-3.7.0/tools/esptool_py/docs/en/espsecure/
Dindex.rst28 If the public key is not stored in the external HSM, you can specify the ``--pub-key`` argument to …
30 …python espsecure.py sign_data --version 2 --hsm --hsm-config <hsm_config_file> --pub-key <public_k…

12