Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 1554) sorted by relevance

12345678910>>...63

/hal_espressif-3.5.0/components/wpa_supplicant/src/eap_peer/
Deap_peap.c73 eap_peap_parse_phase1(struct eap_peap_data *data, in eap_peap_parse_phase1() argument
80 data->force_peap_version = atoi(pos + 8); in eap_peap_parse_phase1()
81 data->peap_version = data->force_peap_version; in eap_peap_parse_phase1()
83 data->force_peap_version); in eap_peap_parse_phase1()
87 data->force_new_label = 1; in eap_peap_parse_phase1()
93 data->peap_outer_success = 0; in eap_peap_parse_phase1()
97 data->peap_outer_success = 1; in eap_peap_parse_phase1()
101 data->peap_outer_success = 2; in eap_peap_parse_phase1()
107 data->crypto_binding = NO_BINDING; in eap_peap_parse_phase1()
110 data->crypto_binding = OPTIONAL_BINDING; in eap_peap_parse_phase1()
[all …]
Deap_fast.c78 struct eap_fast_data *data = ctx; in eap_fast_session_ticket_cb() local
86 data->session_ticket_used = 0; in eap_fast_session_ticket_cb()
87 if (data->provisioning_allowed) { in eap_fast_session_ticket_cb()
90 data->provisioning = 1; in eap_fast_session_ticket_cb()
91 data->current_pac = NULL; in eap_fast_session_ticket_cb()
98 if (data->current_pac == NULL) { in eap_fast_session_ticket_cb()
101 data->session_ticket_used = 0; in eap_fast_session_ticket_cb()
105 eap_fast_derive_master_secret(data->current_pac->pac_key, in eap_fast_session_ticket_cb()
109 data->session_ticket_used = 1; in eap_fast_session_ticket_cb()
115 static void eap_fast_parse_phase1(struct eap_fast_data *data, in eap_fast_parse_phase1() argument
[all …]
Deap_tls_common.c32 const u8 **data, size_t *data_len) in eap_tls_check_blob() argument
47 *data = blob->data; in eap_tls_check_blob()
90 struct eap_ssl_data *data, in eap_tls_params_from_conf() argument
95 if (sm->workaround && data->eap_type != EAP_TYPE_FAST) { in eap_tls_params_from_conf()
110 if (data->eap_type == EAP_TYPE_FAST) { in eap_tls_params_from_conf()
136 struct eap_ssl_data *data, in eap_tls_init_connection() argument
146 data->conn = tls_connection_init(data->ssl_ctx); in eap_tls_init_connection()
147 if (data->conn == NULL) { in eap_tls_init_connection()
153 res = tls_connection_set_params(data->ssl_ctx, data->conn, params); in eap_tls_init_connection()
171 tls_connection_deinit(data->ssl_ctx, data->conn); in eap_tls_init_connection()
[all …]
Deap_ttls.c72 struct eap_ttls_data *data; in eap_ttls_init() local
75 data = (struct eap_ttls_data *)os_zalloc(sizeof(*data)); in eap_ttls_init()
76 if (data == NULL) in eap_ttls_init()
78 data->ttls_version = EAP_TTLS_VERSION; in eap_ttls_init()
79 data->phase2_type = EAP_TTLS_PHASE2_EAP; in eap_ttls_init()
83 data->phase2_type = EAP_TTLS_PHASE2_EAP; in eap_ttls_init()
85 data->phase2_type = EAP_TTLS_PHASE2_MSCHAPV2; in eap_ttls_init()
87 data->phase2_type = EAP_TTLS_PHASE2_MSCHAP; in eap_ttls_init()
89 data->phase2_type = EAP_TTLS_PHASE2_PAP; in eap_ttls_init()
91 data->phase2_type = EAP_TTLS_PHASE2_CHAP; in eap_ttls_init()
[all …]
Deap_tls.c35 struct eap_tls_data *data; in eap_tls_init() local
43 data = (struct eap_tls_data *)os_zalloc(sizeof(*data)); in eap_tls_init()
44 if (data == NULL) in eap_tls_init()
47 data->ssl_ctx = sm->ssl_ctx; in eap_tls_init()
49 if (eap_peer_tls_ssl_init(sm, &data->ssl, config, EAP_TYPE_TLS)) { in eap_tls_init()
51 eap_tls_deinit(sm, data); in eap_tls_init()
55 data->eap_type = EAP_TYPE_TLS; in eap_tls_init()
57 return data; in eap_tls_init()
63 struct eap_tls_data *data = priv; in eap_tls_deinit() local
64 if (data == NULL) in eap_tls_deinit()
[all …]
Deap_mschapv2.c87 struct eap_mschapv2_data *data = priv; in eap_mschapv2_deinit() local
89 os_free(data->peer_challenge); in eap_mschapv2_deinit()
90 os_free(data->auth_challenge); in eap_mschapv2_deinit()
91 wpabuf_free(data->prev_challenge); in eap_mschapv2_deinit()
92 os_free(data); in eap_mschapv2_deinit()
98 struct eap_mschapv2_data *data; in eap_mschapv2_init() local
104 data = (struct eap_mschapv2_data *)os_zalloc(sizeof(*data)); in eap_mschapv2_init()
105 if (data == NULL) in eap_mschapv2_init()
109 data->peer_challenge = os_memdup(sm->peer_challenge, in eap_mschapv2_init()
111 if (data->peer_challenge == NULL) { in eap_mschapv2_init()
[all …]
/hal_espressif-3.5.0/components/esp_system/
Dubsan.c121 void __ubsan_handle_type_mismatch(struct type_mismatch_data *data, unsigned long ptr);
122 void __ubsan_handle_type_mismatch_v1(struct type_mismatch_data_v1 *data, unsigned long ptr);
123 void __ubsan_handle_add_overflow(struct overflow_data *data, unsigned long lhs, unsigned long rhs);
124 void __ubsan_handle_sub_overflow(struct overflow_data *data, unsigned long lhs, unsigned long rhs);
125 void __ubsan_handle_mul_overflow(struct overflow_data *data, unsigned long lhs, unsigned long rhs);
126 void __ubsan_handle_negate_overflow(struct overflow_data *data, unsigned long old_val);
127 void __ubsan_handle_divrem_overflow(struct overflow_data *data, unsigned long lhs, unsigned long rh…
128 void __ubsan_handle_shift_out_of_bounds(struct shift_out_of_bounds_data *data, unsigned long lhs, u…
129 void __ubsan_handle_out_of_bounds(struct out_of_bounds_data *data, unsigned long idx);
130 void __ubsan_handle_missing_return(struct unreachable_data *data);
[all …]
/hal_espressif-3.5.0/components/app_trace/test/
Dtest_trace.c109 esp_apptrace_test_gen_data_t data; member
117 esp_apptrace_test_gen_data_t data; member
140 uint32_t *ts = (uint32_t *)(tim_arg->data.buf + sizeof(uint32_t)); in esp_apptrace_test_timer_isr()
142 …memset(tim_arg->data.buf + 2 * sizeof(uint32_t), tim_arg->data.wr_cnt & tim_arg->data.mask, tim_ar… in esp_apptrace_test_timer_isr()
143 int res = ESP_APPTRACE_TEST_WRITE_FROM_ISR(tim_arg->data.buf, tim_arg->data.buf_sz); in esp_apptrace_test_timer_isr()
148 …tim_arg->group, tim_arg->id, tim_arg->data.wr_cnt, tim_arg->data.buf_sz, tim_arg->data.wr_cnt & ti… in esp_apptrace_test_timer_isr()
150 tim_arg->data.wr_err = 0; in esp_apptrace_test_timer_isr()
153 tim_arg->data.wr_cnt++; in esp_apptrace_test_timer_isr()
164 if (tim_arg->data.wr_cnt < ESP_APPTRACE_TEST_BLOCKS_BEFORE_CRASH) { in esp_apptrace_test_timer_isr_crash()
165 uint32_t *ts = (uint32_t *)(tim_arg->data.buf + sizeof(uint32_t)); in esp_apptrace_test_timer_isr_crash()
[all …]
/hal_espressif-3.5.0/components/wpa_supplicant/src/utils/
Dext_password.c36 struct ext_password_data *data; in ext_password_init() local
39 data = (struct ext_password_data *)os_zalloc(sizeof(*data)); in ext_password_init()
40 if (data == NULL) in ext_password_init()
45 data->backend = backends[i]; in ext_password_init()
50 if (!data->backend) { in ext_password_init()
51 os_free(data); in ext_password_init()
55 data->priv = data->backend->init(params); in ext_password_init()
56 if (data->priv == NULL) { in ext_password_init()
57 os_free(data); in ext_password_init()
61 return data; in ext_password_init()
[all …]
/hal_espressif-3.5.0/components/bootloader_support/src/
Desp_image_format.c75 static esp_err_t process_segments(esp_image_metadata_t *data, bool silent, bool do_load, bootloader…
104 static esp_err_t process_image_header(esp_image_metadata_t *data, uint32_t part_offset, bootloader_…
105 static esp_err_t process_appended_hash(esp_image_metadata_t *data, uint32_t part_len, bool do_verif…
106 …sha256_handle_t sha_handle, uint32_t checksum_word, esp_image_metadata_t *data, bool silent, bool …
108 …ot_signature(bootloader_sha256_handle_t sha_handle, esp_image_metadata_t *data, uint8_t *image_dig…
109 …__((unused)) verify_simple_hash(bootloader_sha256_handle_t sha_handle, esp_image_metadata_t *data);
111 …image_load(esp_image_load_mode_t mode, const esp_partition_pos_t *part, esp_image_metadata_t *data) in image_load() argument
141 if (data == NULL || part == NULL) { in image_load()
151 …CHECK_ERR(process_image_header(data, part->offset, (verify_sha) ? p_sha_handle : NULL, do_verify, … in image_load()
152 CHECK_ERR(process_segments(data, silent, do_load, sha_handle, checksum)); in image_load()
[all …]
/hal_espressif-3.5.0/components/bt/common/osi/
Dlist.c9 void *data; member
57 bool list_contains(const list_t *list, const void *data) in list_contains() argument
60 assert(data != NULL); in list_contains()
63 if (list_node(node) == data) { in list_contains()
71 list_node_t *list_get_node(const list_t *list, const void *data) in list_get_node() argument
74 assert(data != NULL); in list_get_node()
77 if (list_node(node) == data) { in list_get_node()
97 return list->head->data; in list_front()
104 return list->tail->data; in list_back()
114 bool list_insert_after(list_t *list, list_node_t *prev_node, void *data) { in list_insert_after() argument
[all …]
/hal_espressif-3.5.0/components/wpa_supplicant/src/common/
Dwpa_common.c160 struct wpa_ie_data *data) in wpa_parse_wpa_ie_rsn() argument
167 memset(data, 0, sizeof(*data)); in wpa_parse_wpa_ie_rsn()
168 data->proto = WPA_PROTO_RSN; in wpa_parse_wpa_ie_rsn()
169 data->pairwise_cipher = WPA_CIPHER_CCMP; in wpa_parse_wpa_ie_rsn()
170 data->group_cipher = WPA_CIPHER_CCMP; in wpa_parse_wpa_ie_rsn()
171 data->key_mgmt = WPA_KEY_MGMT_IEEE8021X; in wpa_parse_wpa_ie_rsn()
172 data->capabilities = 0; in wpa_parse_wpa_ie_rsn()
173 data->pmkid = NULL; in wpa_parse_wpa_ie_rsn()
174 data->num_pmkid = 0; in wpa_parse_wpa_ie_rsn()
175 data->mgmt_group_cipher = WPA_CIPHER_AES_128_CMAC; in wpa_parse_wpa_ie_rsn()
[all …]
/hal_espressif-3.5.0/tools/ci/python_packages/tiny_test_fw/
DDUT.py86 def _decode_data(data): argument
88 if isinstance(data, bytes):
92 return data.decode(sys.stdout.encoding, 'backslashreplace')
94 return data.decode(sys.stdout.encoding, 'replace')
95 return data
146 data = self.get(timeout=timeout)
147 self.data_cache += _decode_data(data)
182 def save_log(self, filename, data): argument
187 self.put({'filename': filename, 'data': data})
229 def _line_completion(self, data): argument
[all …]
/hal_espressif-3.5.0/examples/wifi/espnow/
DREADME.md11 * Send and receive ESPNOW data.
15 * In order to get the MAC address of the other device, Device1 firstly send broadcast ESPNOW data w…
16 * When Device2 receiving broadcast ESPNOW data from Device1 with 'state' as 0, adds Device1 into th…
17 Then start sending broadcast ESPNOW data with 'state' set as 1.
18 …en Device1 receiving broadcast ESPNOW data with 'state' as 1, compares the local magic number with…
19 …is bigger than that one, stop sending broadcast ESPNOW data and starts sending unicast ESPNOW data
20 * If Device2 receives unicast ESPNOW data, also stop sending broadcast ESPNOW data.
22 …dress of the other device is known, it's not required to send/receive broadcast ESPNOW data first,
23 just add the device into the peer list and send/receive unicast ESPNOW data.
25 There are a lot of "extras" on top of ESPNOW data, such as type, state, sequence number, CRC and ma…
[all …]
/hal_espressif-3.5.0/examples/mesh/ip_internal_network/main/
Dmesh_netif.c79 mesh_data_t data; in receive_task() local
84 data.data = rx_buf; in receive_task()
85 data.size = RX_SIZE; in receive_task()
86 err = esp_mesh_recv(&from, &data, portMAX_DELAY, &flag, NULL, 0); in receive_task()
91 if (data.proto == MESH_PROTO_BIN && s_mesh_raw_recv_cb) { in receive_task()
92 s_mesh_raw_recv_cb(&from, &data); in receive_task()
95 if (data.proto == MESH_PROTO_AP) { in receive_task()
97 MAC2STR((uint8_t*)data.data) ,MAC2STR((uint8_t*)(data.data+6)), data.size); in receive_task()
100 esp_netif_receive(netif_ap, data.data, data.size, NULL); in receive_task()
102 } else if (data.proto == MESH_PROTO_STA) { in receive_task()
[all …]
/hal_espressif-3.5.0/examples/protocols/http_server/ws_echo_server/
Dws_server_example_test.py42 def write(self, data='', opcode=OPCODE_TEXT): argument
44 return self.ws.send_binary(data.encode())
46 return self.ws.ping(data)
47 return self.ws.send(data)
76 ws.write(data=DATA, opcode=expected_opcode)
77 opcode, data = ws.read()
78 …console_log('Testing opcode {}: Received opcode:{}, data:{}'.format(expected_opcode, opcode, data))
79 data = data.decode()
82 if opcode != OPCODE_PONG or data != DATA:
83 … raise RuntimeError('Failed to receive correct opcode:{} or data:{}'.format(opcode, data))
[all …]
/hal_espressif-3.5.0/components/wpa_supplicant/include/utils/
Dwpabuf.h37 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len);
38 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len);
108 static inline void wpabuf_put_u8(struct wpabuf *buf, u8 data) in wpabuf_put_u8() argument
111 *pos = data; in wpabuf_put_u8()
114 static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data) in wpabuf_put_le16() argument
117 WPA_PUT_LE16(pos, data); in wpabuf_put_le16()
120 static inline void wpabuf_put_le32(struct wpabuf *buf, u32 data) in wpabuf_put_le32() argument
123 WPA_PUT_LE32(pos, data); in wpabuf_put_le32()
126 static inline void wpabuf_put_be16(struct wpabuf *buf, u16 data) in wpabuf_put_be16() argument
129 WPA_PUT_BE16(pos, data); in wpabuf_put_be16()
[all …]
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32s3/
Desp_ds.c23 const esp_ds_data_t *data; member
73 const esp_ds_data_t *data, in esp_ds_sign() argument
84 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
97 const esp_ds_data_t *data, in esp_ds_start_sign() argument
101 if (!message || !data || !esp_ds_ctx) { in esp_ds_start_sign()
109 if (!(data->rsa_length == ESP_DS_RSA_1024 in esp_ds_start_sign()
110 || data->rsa_length == ESP_DS_RSA_2048 in esp_ds_start_sign()
111 || data->rsa_length == ESP_DS_RSA_3072 in esp_ds_start_sign()
112 || data->rsa_length == ESP_DS_RSA_4096)) { in esp_ds_start_sign()
142 size_t rsa_len = (data->rsa_length + 1) * 4; in esp_ds_start_sign()
[all …]
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32c3/
Desp_ds.c23 const esp_ds_data_t *data; member
71 const esp_ds_data_t *data, in esp_ds_sign() argument
82 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
94 const esp_ds_data_t *data, in esp_ds_start_sign() argument
98 if (!message || !data || !esp_ds_ctx) { in esp_ds_start_sign()
106 if (!(data->rsa_length == ESP_DS_RSA_1024 in esp_ds_start_sign()
107 || data->rsa_length == ESP_DS_RSA_2048 in esp_ds_start_sign()
108 || data->rsa_length == ESP_DS_RSA_3072)) { in esp_ds_start_sign()
138 size_t rsa_len = (data->rsa_length + 1) * 4; in esp_ds_start_sign()
139 ds_hal_write_private_key_params(data->c); in esp_ds_start_sign()
[all …]
/hal_espressif-3.5.0/components/esp_hw_support/port/esp32h2/
Desp_ds.c23 const esp_ds_data_t *data; member
71 const esp_ds_data_t *data, in esp_ds_sign() argument
82 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
94 const esp_ds_data_t *data, in esp_ds_start_sign() argument
98 if (!message || !data || !esp_ds_ctx) { in esp_ds_start_sign()
106 if (!(data->rsa_length == ESP_DS_RSA_1024 in esp_ds_start_sign()
107 || data->rsa_length == ESP_DS_RSA_2048 in esp_ds_start_sign()
108 || data->rsa_length == ESP_DS_RSA_3072)) { in esp_ds_start_sign()
138 size_t rsa_len = (data->rsa_length + 1) * 4; in esp_ds_start_sign()
139 ds_hal_write_private_key_params(data->c); in esp_ds_start_sign()
[all …]
/hal_espressif-3.5.0/components/bt/common/btc/profile/esp/blufi/
Dblufi_prf.c104 void btc_blufi_recv_handler(uint8_t *data, int len) in btc_blufi_recv_handler() argument
106 struct blufi_hdr *hdr = (struct blufi_hdr *)data; in btc_blufi_recv_handler()
121 ret = blufi_env.cbs->decrypt_func(hdr->seq, hdr->data, hdr->data_len); in btc_blufi_recv_handler()
133 checksum_pkt = hdr->data[hdr->data_len] | (((uint16_t) hdr->data[hdr->data_len + 1]) << 8); in btc_blufi_recv_handler()
147 blufi_env.total_len = hdr->data[0] | (((uint16_t) hdr->data[1]) << 8); in btc_blufi_recv_handler()
156 memcpy(blufi_env.aggr_buf + blufi_env.offset, hdr->data + 2, hdr->data_len - 2); in btc_blufi_recv_handler()
166 memcpy(blufi_env.aggr_buf + blufi_env.offset, hdr->data, hdr->data_len); in btc_blufi_recv_handler()
173 btc_blufi_protocol_handler(hdr->type, hdr->data, hdr->data_len); in btc_blufi_recv_handler()
178 void btc_blufi_send_encap(uint8_t type, uint8_t *data, int total_data_len) in btc_blufi_send_encap() argument
199 hdr->data[0] = remain_len & 0xff; in btc_blufi_send_encap()
[all …]
Dblufi_protocol.c31 void btc_blufi_protocol_handler(uint8_t type, uint8_t *data, int len) in btc_blufi_protocol_handler() argument
46 blufi_env.sec_mode = data[0]; in btc_blufi_protocol_handler()
52 param.wifi_mode.op_mode = data[0]; in btc_blufi_protocol_handler()
86 uint8_t data[2]; in btc_blufi_protocol_handler() local
88 data[0] = BTC_BLUFI_GREAT_VER; in btc_blufi_protocol_handler()
89 data[1] = BTC_BLUFI_SUB_VER; in btc_blufi_protocol_handler()
90 btc_blufi_send_encap(type, &data[0], sizeof(data)); in btc_blufi_protocol_handler()
114 … blufi_env.cbs->negotiate_data_handler(data, len, &output_data, &output_len, &need_free); in btc_blufi_protocol_handler()
126 memcpy(param.sta_bssid.bssid, &data[0], 6); in btc_blufi_protocol_handler()
134 param.sta_ssid.ssid = &data[0]; in btc_blufi_protocol_handler()
[all …]
/hal_espressif-3.5.0/examples/mesh/internal_communication/main/
Dmesh_main.c70 mesh_data_t data; in esp_mesh_p2p_tx_main() local
71 data.data = tx_buf; in esp_mesh_p2p_tx_main()
72 data.size = sizeof(tx_buf); in esp_mesh_p2p_tx_main()
73 data.proto = MESH_PROTO_BIN; in esp_mesh_p2p_tx_main()
74 data.tos = MESH_TOS_P2P; in esp_mesh_p2p_tx_main()
104 err = esp_mesh_send(&route_table[i], &data, MESH_DATA_P2P, NULL, 0); in esp_mesh_p2p_tx_main()
110 err, data.proto, data.tos); in esp_mesh_p2p_tx_main()
118 err, data.proto, data.tos); in esp_mesh_p2p_tx_main()
135 mesh_data_t data; in esp_mesh_p2p_rx_main() local
137 data.data = rx_buf; in esp_mesh_p2p_rx_main()
[all …]
/hal_espressif-3.5.0/components/driver/test/adc_dma_test/
Dtest_esp32s2.c109 uint8_t *data; member
201 adc_digi_output_data_t *data = (adc_digi_output_data_t *)&temp; in adc_dma_data_check() local
208 … esp_rom_printf("[%d_%d_%04x] ", data->type2.unit, data->type2.channel, data->type2.data); in adc_dma_data_check()
212 TEST_ASSERT_NOT_EQUAL(unit_old, data->type2.unit); in adc_dma_data_check()
213 unit_old = data->type2.unit; in adc_dma_data_check()
214 if (data->type2.channel > ADC_CHANNEL_MAX) { in adc_dma_data_check()
215 printf("Data invalid [%d]\n", data->type2.channel); in adc_dma_data_check()
219 TEST_ASSERT_EQUAL( data->type2.channel, adc_list[cur_ch] ); in adc_dma_data_check()
222 TEST_ASSERT_EQUAL( 0x7FF, data->type2.data ); in adc_dma_data_check()
224 TEST_ASSERT_LESS_THAN( 10, data->type2.data ); in adc_dma_data_check()
[all …]
/hal_espressif-3.5.0/components/wpa_supplicant/src/wps/
Dwps_common.c278 union wps_event_data *data; in wps_fail_event() local
280 data = (union wps_event_data *)os_zalloc(sizeof(union wps_event_data)); in wps_fail_event()
281 if (data == NULL) in wps_fail_event()
285 os_free(data); in wps_fail_event()
289 os_memset(data, 0, sizeof(union wps_event_data)); in wps_fail_event()
290 data->fail.msg = msg; in wps_fail_event()
291 data->fail.config_error = config_error; in wps_fail_event()
292 data->fail.error_indication = error_indication; in wps_fail_event()
293 wps->event_cb(wps->cb_ctx, WPS_EV_FAIL, data); in wps_fail_event()
294 os_free(data); in wps_fail_event()
[all …]

12345678910>>...63