Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 26) sorted by relevance

12

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Ddh_groups.c1193 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv) in dh_init() argument
1201 wpabuf_free(*priv); in dh_init()
1202 *priv = wpabuf_alloc(dh->prime_len); in dh_init()
1203 if (*priv == NULL) in dh_init()
1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) in dh_init()
1208 wpabuf_free(*priv); in dh_init()
1209 *priv = NULL; in dh_init()
1213 if (os_memcmp(wpabuf_head(*priv), dh->prime, dh->prime_len) > 0) { in dh_init()
1215 *(wpabuf_mhead_u8(*priv)) = 0; in dh_init()
1217 wpa_hexdump_buf_key(MSG_DEBUG, "DH: private value", *priv); in dh_init()
[all …]
Ddh_group5.c16 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ) in dh5_init() argument
19 *publ = dh_init(dh_groups_get(5), priv); in dh5_init()
26 void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ) in dh5_init_fixed() argument
Ddh_group5.h12 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ);
13 void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ);
Ddh_groups.h24 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap_i.h100 void (*deinit)(struct eap_sm *sm, void *priv);
117 struct wpabuf * (*process)(struct eap_sm *sm, void *priv,
120 bool (*isKeyAvailable)(struct eap_sm *sm, void *priv);
121 u8 * (*getKey)(struct eap_sm *sm, void *priv, size_t *len);
137 int (*get_status)(struct eap_sm *sm, void *priv, char *buf,
150 bool (*has_reauth_data)(struct eap_sm *sm, void *priv);
163 void (*deinit_for_reauth)(struct eap_sm *sm, void *priv);
175 void * (*init_for_reauth)(struct eap_sm *sm, void *priv);
188 const u8 * (*get_identity)(struct eap_sm *sm, void *priv, size_t *len);
246 u8 * (*get_emsk)(struct eap_sm *sm, void *priv, size_t *len);
[all …]
Deap_tls.c20 static void eap_tls_deinit(struct eap_sm *sm, void *priv);
62 static void eap_tls_deinit(struct eap_sm *sm, void *priv) in eap_tls_deinit() argument
64 struct eap_tls_data *data = priv; in eap_tls_deinit()
146 static struct wpabuf * eap_tls_process(struct eap_sm *sm, void *priv, in eap_tls_process() argument
155 struct eap_tls_data *data = priv; in eap_tls_process()
188 static bool eap_tls_isKeyAvailable(struct eap_sm *sm, void *priv) in eap_tls_isKeyAvailable() argument
190 struct eap_tls_data *data = priv; in eap_tls_isKeyAvailable()
194 static u8 * eap_tls_getKey(struct eap_sm *sm, void *priv, size_t *len) in eap_tls_getKey() argument
196 struct eap_tls_data *data = priv; in eap_tls_getKey()
Deap_tls.h18 void eap_tls_deinit(struct eap_sm *sm, void *priv);
19 struct wpabuf * eap_tls_process(struct eap_sm *sm, void *priv,
23 u8 * eap_tls_getKey(struct eap_sm *sm, void *priv, size_t *len);
Deap_peap.c29 static void eap_peap_deinit(struct eap_sm *sm, void *priv);
191 eap_peap_deinit(struct eap_sm *sm, void *priv) in eap_peap_deinit() argument
193 struct eap_peap_data *data = priv; in eap_peap_deinit()
1077 static struct wpabuf * eap_peap_process(struct eap_sm *sm, void *priv, in eap_peap_process() argument
1087 struct eap_peap_data *data = priv; in eap_peap_process()
1232 eap_peap_has_reauth_data(struct eap_sm *sm, void *priv) in eap_peap_has_reauth_data() argument
1234 struct eap_peap_data *data = priv; in eap_peap_has_reauth_data()
1242 eap_peap_deinit_for_reauth(struct eap_sm *sm, void *priv) in eap_peap_deinit_for_reauth() argument
1244 struct eap_peap_data *data = priv; in eap_peap_deinit_for_reauth()
1252 eap_peap_init_for_reauth(struct eap_sm *sm, void *priv) in eap_peap_init_for_reauth() argument
[all …]
Deap_ttls.c28 static void eap_ttls_deinit(struct eap_sm *sm, void *priv);
129 static void eap_ttls_deinit(struct eap_sm *sm, void *priv) in eap_ttls_deinit() argument
131 struct eap_ttls_data *data = priv; in eap_ttls_deinit()
1473 static struct wpabuf * eap_ttls_process(struct eap_sm *sm, void *priv, in eap_ttls_process() argument
1482 struct eap_ttls_data *data = priv; in eap_ttls_process()
1527 static bool eap_ttls_has_reauth_data(struct eap_sm *sm, void *priv) in eap_ttls_has_reauth_data() argument
1529 struct eap_ttls_data *data = priv; in eap_ttls_has_reauth_data()
1535 static void eap_ttls_deinit_for_reauth(struct eap_sm *sm, void *priv) in eap_ttls_deinit_for_reauth() argument
1537 struct eap_ttls_data *data = priv; in eap_ttls_deinit_for_reauth()
1547 static void * eap_ttls_init_for_reauth(struct eap_sm *sm, void *priv) in eap_ttls_init_for_reauth() argument
[all …]
Deap_fast.c29 static void eap_fast_deinit(struct eap_sm *sm, void *priv);
229 static void eap_fast_deinit(struct eap_sm *sm, void *priv) in eap_fast_deinit() argument
231 struct eap_fast_data *data = priv; in eap_fast_deinit()
1512 static struct wpabuf * eap_fast_process(struct eap_sm *sm, void *priv, in eap_fast_process() argument
1522 struct eap_fast_data *data = priv; in eap_fast_process()
1657 static Boolean eap_fast_has_reauth_data(struct eap_sm *sm, void *priv)
1659 struct eap_fast_data *data = priv;
1664 static void eap_fast_deinit_for_reauth(struct eap_sm *sm, void *priv)
1666 struct eap_fast_data *data = priv;
1680 static void * eap_fast_init_for_reauth(struct eap_sm *sm, void *priv)
[all …]
Deap_mschapv2.c83 eap_mschapv2_deinit(struct eap_sm *sm, void *priv) in eap_mschapv2_deinit() argument
85 struct eap_mschapv2_data *data = priv; in eap_mschapv2_deinit()
735 static struct wpabuf * eap_mschapv2_process(struct eap_sm *sm, void *priv, in eap_mschapv2_process() argument
744 struct eap_mschapv2_data *data = priv; in eap_mschapv2_process()
797 static bool eap_mschapv2_isKeyAvailable(struct eap_sm *sm, void *priv) in eap_mschapv2_isKeyAvailable() argument
799 struct eap_mschapv2_data *data = priv; in eap_mschapv2_isKeyAvailable()
804 static u8 * eap_mschapv2_getKey(struct eap_sm *sm, void *priv, size_t *len) in eap_mschapv2_getKey() argument
806 struct eap_mschapv2_data *data = priv; in eap_mschapv2_getKey()
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/
Deap_i.h31 void (*reset)(struct eap_sm *sm, void *priv);
33 struct wpabuf * (*buildReq)(struct eap_sm *sm, void *priv, u8 id);
34 int (*getTimeout)(struct eap_sm *sm, void *priv);
35 bool (*check)(struct eap_sm *sm, void *priv, struct wpabuf *respData);
36 void (*process)(struct eap_sm *sm, void *priv,
38 bool (*isDone)(struct eap_sm *sm, void *priv);
39 u8 * (*getKey)(struct eap_sm *sm, void *priv, size_t *len);
42 bool (*isSuccess)(struct eap_sm *sm, void *priv);
89 u8 * (*get_emsk)(struct eap_sm *sm, void *priv, size_t *len);
102 u8 * (*getSessionId)(struct eap_sm *sm, void *priv, size_t *len);
Deap_server_identity.c45 static void eap_identity_reset(struct eap_sm *sm, void *priv) in eap_identity_reset() argument
47 struct eap_identity_data *data = priv; in eap_identity_reset()
52 static struct wpabuf * eap_identity_buildReq(struct eap_sm *sm, void *priv, in eap_identity_buildReq() argument
55 struct eap_identity_data *data = priv; in eap_identity_buildReq()
82 static bool eap_identity_check(struct eap_sm *sm, void *priv, in eap_identity_check() argument
99 static void eap_identity_process(struct eap_sm *sm, void *priv, in eap_identity_process() argument
102 struct eap_identity_data *data = priv; in eap_identity_process()
143 static bool eap_identity_isDone(struct eap_sm *sm, void *priv) in eap_identity_isDone() argument
145 struct eap_identity_data *data = priv; in eap_identity_isDone()
150 static bool eap_identity_isSuccess(struct eap_sm *sm, void *priv) in eap_identity_isSuccess() argument
[all …]
Deap_server_wsc.c99 static void eap_wsc_reset(struct eap_sm *sm, void *priv) in eap_wsc_reset() argument
101 struct eap_wsc_data *data = priv; in eap_wsc_reset()
193 static struct wpabuf * eap_wsc_buildReq(struct eap_sm *sm, void *priv, u8 id) in eap_wsc_buildReq() argument
195 struct eap_wsc_data *data = priv; in eap_wsc_buildReq()
224 static bool eap_wsc_check(struct eap_sm *sm, void *priv, in eap_wsc_check() argument
299 static void eap_wsc_process(struct eap_sm *sm, void *priv, in eap_wsc_process() argument
302 struct eap_wsc_data *data = priv; in eap_wsc_process()
414 static bool eap_wsc_isDone(struct eap_sm *sm, void *priv) in eap_wsc_isDone() argument
416 struct eap_wsc_data *data = priv; in eap_wsc_isDone()
421 static bool eap_wsc_isSuccess(struct eap_sm *sm, void *priv) in eap_wsc_isSuccess() argument
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/utils/
Dext_password.c29 void *priv; member
55 data->priv = data->backend->init(params); in ext_password_init()
56 if (data->priv == NULL) { in ext_password_init()
67 if (data && data->backend && data->priv) in ext_password_deinit()
68 data->backend->deinit(data->priv); in ext_password_deinit()
78 return data->backend->get(data->priv, name); in ext_password_get()
/hal_espressif-latest/components/bt/controller/esp32c2/
Dbt.c105 int (* _ecc_gen_key_pair)(uint8_t *public, uint8_t *priv);
150 extern int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv);
188 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv);
532 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv) in esp_ecc_gen_key_pair() argument
536 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair()
1301 uint8_t priv[32]; in ble_sm_alg_gen_dhkey() local
1306 swap_buf(priv, our_priv_key, 32); in ble_sm_alg_gen_dhkey()
1350 if (mbedtls_mpi_read_binary(&d, priv, 32) != 0) { in ble_sm_alg_gen_dhkey()
1381 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1442 int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv) in ble_sm_alg_gen_key_pair() argument
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dnet.c366 const uint8_t **enc, const uint8_t **priv) in friend_cred_get() argument
391 if (priv) { in friend_cred_get()
392 *priv = cred->cred[sub->kr_flag].privacy; in friend_cred_get()
402 const uint8_t **enc, const uint8_t **priv) in friend_cred_get() argument
788 const uint8_t *enc = NULL, *priv = NULL; in bt_mesh_net_resend() local
797 priv = sub->keys[new_key].privacy; in bt_mesh_net_resend()
799 err = bt_mesh_net_obfuscate(buf->data, BLE_MESH_NET_IVI_TX, priv); in bt_mesh_net_resend()
824 err = bt_mesh_net_obfuscate(buf->data, BLE_MESH_NET_IVI_TX, priv); in bt_mesh_net_resend()
862 const uint8_t *enc = NULL, *priv = NULL; in bt_mesh_net_encode() local
890 &nid, &enc, &priv)) { in bt_mesh_net_encode()
[all …]
Dnet.h397 const uint8_t **enc, const uint8_t **priv);
Dfriend.c489 const uint8_t *enc = NULL, *priv = NULL; in encrypt_friend_pdu() local
502 priv = sub->keys[sub->kr_flag].privacy; in encrypt_friend_pdu()
505 if (friend_cred_get(sub, frnd->lpn, &nid, &enc, &priv)) { in encrypt_friend_pdu()
540 if (bt_mesh_net_obfuscate(buf->data, iv_index, priv)) { in encrypt_friend_pdu()
/hal_espressif-latest/components/bt/controller/esp32c6/
Dbt.c95 int (* _ecc_gen_key_pair)(uint8_t *public, uint8_t *priv);
142 extern int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv);
172 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv);
479 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv) in esp_ecc_gen_key_pair() argument
483 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair()
1396 uint8_t priv[32]; in ble_sm_alg_gen_dhkey() local
1401 swap_buf(priv, our_priv_key, 32); in ble_sm_alg_gen_dhkey()
1445 if (mbedtls_mpi_read_binary(&d, priv, 32) != 0) { in ble_sm_alg_gen_dhkey()
1476 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1537 int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv) in ble_sm_alg_gen_key_pair() argument
[all …]
/hal_espressif-latest/components/bt/controller/esp32h2/
Dbt.c90 int (* _ecc_gen_key_pair)(uint8_t *public, uint8_t *priv);
139 extern int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv);
169 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv);
476 static int esp_ecc_gen_key_pair(uint8_t *pub, uint8_t *priv) in esp_ecc_gen_key_pair() argument
480 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair()
1373 uint8_t priv[32]; in ble_sm_alg_gen_dhkey() local
1378 swap_buf(priv, our_priv_key, 32); in ble_sm_alg_gen_dhkey()
1422 if (mbedtls_mpi_read_binary(&d, priv, 32) != 0) { in ble_sm_alg_gen_dhkey()
1453 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1514 int ble_sm_alg_gen_key_pair(uint8_t *pub, uint8_t *priv) in ble_sm_alg_gen_key_pair() argument
[all …]
/hal_espressif-latest/components/esp_rom/include/esp32s3/rom/usb/
Dusb_device.h314 typedef void (*usb_transfer_callback)(uint8_t ep, int tsize, void *priv);
347 usb_transfer_callback cb, void *priv);
/hal_espressif-latest/components/esp_rom/include/esp32s2/rom/usb/
Dusb_device.h314 typedef void (*usb_transfer_callback)(uint8_t ep, int tsize, void *priv);
347 usb_transfer_callback cb, void *priv);
/hal_espressif-latest/components/esp_wifi/include/
Desp_now.h73 void *priv; /**< ESPNOW peer private data */ member
/hal_espressif-latest/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()
672 wpabuf_free(priv); in wps_nfc_gen_dh()
682 *privkey = priv; in wps_nfc_gen_dh()

12