Home
last modified time | relevance | path

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

12345678910>>...50

/hal_espressif-2.7.6/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_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()
85 struct eap_ssl_data *data, in eap_tls_params_from_conf() argument
90 if (sm->workaround && data->eap_type != EAP_TYPE_FAST) { in eap_tls_params_from_conf()
127 struct eap_ssl_data *data, in eap_tls_init_connection() argument
137 data->conn = tls_connection_init(data->ssl_ctx); in eap_tls_init_connection()
138 if (data->conn == NULL) { in eap_tls_init_connection()
144 res = tls_connection_set_params(data->ssl_ctx, data->conn, params); in eap_tls_init_connection()
162 tls_connection_deinit(data->ssl_ctx, data->conn); in eap_tls_init_connection()
163 data->conn = NULL; in eap_tls_init_connection()
[all …]
Deap_tls.c32 struct eap_tls_data *data = priv; in eap_tls_deinit() local
33 if (data == NULL) in eap_tls_deinit()
35 eap_peer_tls_ssl_deinit(sm, &data->ssl); in eap_tls_deinit()
36 os_free(data->key_data); in eap_tls_deinit()
37 os_free(data->session_id); in eap_tls_deinit()
38 os_free(data); in eap_tls_deinit()
44 struct eap_tls_data *data; in eap_tls_init() local
52 data = (struct eap_tls_data *)os_zalloc(sizeof(*data)); in eap_tls_init()
53 if (data == NULL) in eap_tls_init()
56 data->ssl_ctx = sm->ssl_ctx; in eap_tls_init()
[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_mschapv2.c86 struct eap_mschapv2_data *data = priv; in eap_mschapv2_deinit() local
88 os_free(data->peer_challenge); in eap_mschapv2_deinit()
89 os_free(data->auth_challenge); in eap_mschapv2_deinit()
90 wpabuf_free(data->prev_challenge); in eap_mschapv2_deinit()
91 os_free(data); in eap_mschapv2_deinit()
97 struct eap_mschapv2_data *data; in eap_mschapv2_init() local
103 data = (struct eap_mschapv2_data *)os_zalloc(sizeof(*data)); in eap_mschapv2_init()
104 if (data == NULL) in eap_mschapv2_init()
107 data->phase2 = sm->init_phase2; in eap_mschapv2_init()
109 return data; in eap_mschapv2_init()
[all …]
/hal_espressif-2.7.6/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-2.7.6/components/app_trace/test/
Dtest_trace.c104 esp_apptrace_test_gen_data_t data; member
112 esp_apptrace_test_gen_data_t data; member
135 uint32_t *ts = (uint32_t *)(tim_arg->data.buf + sizeof(uint32_t)); in esp_apptrace_test_timer_isr()
137 …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()
138 int res = ESP_APPTRACE_TEST_WRITE_FROM_ISR(tim_arg->data.buf, tim_arg->data.buf_sz); in esp_apptrace_test_timer_isr()
143 …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()
145 tim_arg->data.wr_err = 0; in esp_apptrace_test_timer_isr()
148 tim_arg->data.wr_cnt++; in esp_apptrace_test_timer_isr()
159 if (tim_arg->data.wr_cnt < ESP_APPTRACE_TEST_BLOCKS_BEFORE_CRASH) { in esp_apptrace_test_timer_isr_crash()
160 uint32_t *ts = (uint32_t *)(tim_arg->data.buf + sizeof(uint32_t)); in esp_apptrace_test_timer_isr_crash()
[all …]
/hal_espressif-2.7.6/components/bootloader_support/src/
Desp_image_format.c101 …hecksum(bootloader_sha256_handle_t sha_handle, uint32_t checksum_word, esp_image_metadata_t *data);
103 …ot_signature(bootloader_sha256_handle_t sha_handle, esp_image_metadata_t *data, uint8_t *image_dig…
104 …__((unused)) verify_simple_hash(bootloader_sha256_handle_t sha_handle, esp_image_metadata_t *data);
106 …image_load(esp_image_load_mode_t mode, const esp_partition_pos_t *part, esp_image_metadata_t *data) argument
127 if (data == NULL || part == NULL) {
136 bzero(data, sizeof(esp_image_metadata_t));
137 data->start_addr = part->offset;
139 ESP_LOGD(TAG, "reading image header @ 0x%x", data->start_addr);
140 err = bootloader_flash_read(data->start_addr, &data->image, sizeof(esp_image_header_t), true);
152 if (data->image.hash_appended) {
[all …]
/hal_espressif-2.7.6/components/wpa_supplicant/src/common/
Dwpa_common.c108 struct wpa_ie_data *data) in wpa_parse_wpa_ie_rsn() argument
116 memset(data, 0, sizeof(*data)); in wpa_parse_wpa_ie_rsn()
117 data->proto = WPA_PROTO_RSN; in wpa_parse_wpa_ie_rsn()
118 data->pairwise_cipher = WPA_CIPHER_CCMP; in wpa_parse_wpa_ie_rsn()
119 data->group_cipher = WPA_CIPHER_CCMP; in wpa_parse_wpa_ie_rsn()
120 data->key_mgmt = WPA_KEY_MGMT_IEEE8021X; in wpa_parse_wpa_ie_rsn()
121 data->capabilities = 0; in wpa_parse_wpa_ie_rsn()
122 data->pmkid = NULL; in wpa_parse_wpa_ie_rsn()
123 data->num_pmkid = 0; in wpa_parse_wpa_ie_rsn()
124 data->mgmt_group_cipher = 0; in wpa_parse_wpa_ie_rsn()
[all …]
/hal_espressif-2.7.6/tools/test_idf_size/
Dexpected_output5 DRAM .data size: 9324 bytes
16 DRAM .data size: 4 bytes
28 DRAM .data size: 9324 bytes
36 Archive File DRAM .data & .bss & other IRAM D/IRAM Flash code & rodata Total
79 DRAM .data size: 9324 bytes
87 Object File DRAM .data & .bss & other IRAM D/IRAM Flash code & rodata Total
373 DRAM .data size: 9324 bytes
386 Symbols from section: .dram0.data
413 DRAM .data size: 9324 bytes 4 +9320
428 DRAM .data size: 9324 bytes 9324
[all …]
/hal_espressif-2.7.6/examples/protocols/http_server/ws_echo_server/
Dws_server_example_test.py48 def write(self, data='', opcode=OPCODE_TEXT): argument
50 return self.ws.send_binary(data.encode())
52 return self.ws.ping(data)
53 return self.ws.send(data)
82 ws.write(data=DATA, opcode=expected_opcode)
83 opcode, data = ws.read()
84 …console_log('Testing opcode {}: Received opcode:{}, data:{}'.format(expected_opcode, opcode, data))
85 data = data.decode()
88 if opcode != OPCODE_PONG or data != DATA:
89 … raise RuntimeError('Failed to receive correct opcode:{} or data:{}'.format(opcode, data))
[all …]
/hal_espressif-2.7.6/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-2.7.6/tools/ci/python_packages/tiny_test_fw/
DDUT.py80 def _decode_data(data): argument
82 if isinstance(data, bytes):
86 return data.decode(sys.stdout.encoding, 'backslashreplace')
88 return data.decode(sys.stdout.encoding, 'replace')
89 return data
140 data = self.get(timeout=timeout)
141 self.data_cache += _decode_data(data)
176 def save_log(self, filename, data): argument
181 self.put({'filename': filename, 'data': data})
223 def _line_completion(self, data): argument
[all …]
/hal_espressif-2.7.6/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-2.7.6/components/wpa_supplicant/include/utils/
Dwpabuf.h34 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len);
35 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-2.7.6/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-2.7.6/components/esp32c3/
Desp_ds.c30 const esp_ds_data_t *data; member
78 const esp_ds_data_t *data, in esp_ds_sign() argument
89 esp_err_t result = esp_ds_start_sign(message, data, key_id, &context); in esp_ds_sign()
101 const esp_ds_data_t *data, in esp_ds_start_sign() argument
105 if (!message || !data || !esp_ds_ctx) { in esp_ds_start_sign()
113 if (!(data->rsa_length == ESP_DS_RSA_1024 in esp_ds_start_sign()
114 || data->rsa_length == ESP_DS_RSA_2048 in esp_ds_start_sign()
115 || data->rsa_length == ESP_DS_RSA_3072)) { in esp_ds_start_sign()
143 size_t rsa_len = (data->rsa_length + 1) * 4; in esp_ds_start_sign()
144 ds_hal_write_private_key_params(data->c); in esp_ds_start_sign()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/
Dble_mesh_register_server_cmd.c24 struct arg_str *data; member
44 uint8_t *data = NULL; in ble_mesh_module_publish_message() local
56 data = malloc(strlen(msg_publish.data->sval[0])); in ble_mesh_module_publish_message()
57 get_value_string((char *)msg_publish.data->sval[0], (char *) data); in ble_mesh_module_publish_message()
77 if (msg_publish.data->count != 0) { in ble_mesh_module_publish_message()
78 length = strlen(msg_publish.data->sval[0]); in ble_mesh_module_publish_message()
79 data = malloc((length + 1) * sizeof(uint8_t)); in ble_mesh_module_publish_message()
80 if (data != NULL) { in ble_mesh_module_publish_message()
81 err = get_value_string((char *)msg_publish.data->sval[0], (char *) data); in ble_mesh_module_publish_message()
85 err = esp_ble_mesh_model_publish(model, msg_publish.opcode->ival[0], length, data, device_role); in ble_mesh_module_publish_message()
[all …]
/hal_espressif-2.7.6/tools/ci/python_packages/idf_http_server_test/
Dadder.py37 data = resp.read()
42 Utility.console_log('Data length : ' + str(len(data)))
43 Utility.console_log('Data content : ' + data)
44 return data
47 def postreq(conn, path, data, verbose=False): argument
48 conn.request('POST', path, data)
50 data = resp.read()
52 Utility.console_log('POST : ' + data)
55 Utility.console_log('Data length : ' + str(len(data)))
56 Utility.console_log('Data content : ' + data)
[all …]
/hal_espressif-2.7.6/examples/protocols/websocket/main/
Dwebsocket_example.c61 esp_websocket_event_data_t *data = (esp_websocket_event_data_t *)event_data; in websocket_event_handler() local
71 ESP_LOGI(TAG, "Received opcode=%d", data->op_code); in websocket_event_handler()
72 if (data->op_code == 0x08 && data->data_len == 2) { in websocket_event_handler()
73 … ESP_LOGW(TAG, "Received closed message with code=%d", 256*data->data_ptr[0] + data->data_ptr[1]); in websocket_event_handler()
75 ESP_LOGW(TAG, "Received=%.*s", data->data_len, (char *)data->data_ptr); in websocket_event_handler()
77 … length=%d, data_len=%d, current payload offset=%d\r\n", data->payload_len, data->data_len, data->… in websocket_event_handler()
116 char data[32]; in websocket_app_start() local
120 int len = sprintf(data, "hello %04d", i++); in websocket_app_start()
121 ESP_LOGI(TAG, "Sending %s", data); in websocket_app_start()
122 esp_websocket_client_send_text(client, data, len, portMAX_DELAY); in websocket_app_start()
/hal_espressif-2.7.6/components/spi_flash/test/
Dtest_out_of_bounds_write.c9 static const char *data = "blah blah blah"; variable
19 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(0x1000, data, strlen(data)));
20 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(0x0FF8, data, strlen(data)));
21 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(0x1400, data, strlen(data)));
29 TEST_ESP_ERR(ESP_ERR_INVALID_ARG, spi_flash_write(p->address + 1024, data, strlen(data)));
/hal_espressif-2.7.6/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-2.7.6/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_ble.c39 if (p_src_data->scan_ble_adv_pkt.data && p_src_data->scan_ble_adv_pkt.length) { in btc_ble_mesh_ble_copy_req_data()
41 p_dst_data->scan_ble_adv_pkt.data = bt_mesh_calloc(p_src_data->scan_ble_adv_pkt.length); in btc_ble_mesh_ble_copy_req_data()
42 if (p_dst_data->scan_ble_adv_pkt.data) { in btc_ble_mesh_ble_copy_req_data()
43 memcpy(p_dst_data->scan_ble_adv_pkt.data, p_src_data->scan_ble_adv_pkt.data, in btc_ble_mesh_ble_copy_req_data()
70 if (arg->scan_ble_adv_pkt.data) { in btc_ble_mesh_ble_free_req_data()
71 bt_mesh_free(arg->scan_ble_adv_pkt.data); in btc_ble_mesh_ble_free_req_data()
99 uint8_t adv_type, uint8_t data[], in bt_mesh_ble_scan_cb_evt_to_btc() argument
111 if (data && length) { in bt_mesh_ble_scan_cb_evt_to_btc()
112 param.scan_ble_adv_pkt.data = data; in bt_mesh_ble_scan_cb_evt_to_btc()
138 struct bt_mesh_ble_adv_data *data = NULL; in btc_ble_mesh_ble_call_handler() local
[all …]
/hal_espressif-2.7.6/components/esp32s2/
Desp_ds.c33 const ets_ds_data_t *data; member
73 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()
92 const esp_ds_data_t *data, in esp_ds_start_sign() argument
96 if (!message || !data || !esp_ds_ctx) return ESP_ERR_INVALID_ARG; in esp_ds_start_sign()
98 if (!(data->rsa_length == ESP_DS_RSA_1024 in esp_ds_start_sign()
99 || data->rsa_length == ESP_DS_RSA_2048 in esp_ds_start_sign()
100 || data->rsa_length == ESP_DS_RSA_3072 in esp_ds_start_sign()
101 || data->rsa_length == ESP_DS_RSA_4096)) { in esp_ds_start_sign()
121 ets_ds_data_t *ds_data = (ets_ds_data_t*) data; in esp_ds_start_sign()
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/esp/blufi/
Dblufi_protocol.c40 void btc_blufi_protocol_handler(uint8_t type, uint8_t *data, int len) in btc_blufi_protocol_handler() argument
55 blufi_env.sec_mode = data[0]; in btc_blufi_protocol_handler()
61 param.wifi_mode.op_mode = data[0]; in btc_blufi_protocol_handler()
95 uint8_t data[2]; in btc_blufi_protocol_handler() local
97 data[0] = BTC_BLUFI_GREAT_VER; in btc_blufi_protocol_handler()
98 data[1] = BTC_BLUFI_SUB_VER; in btc_blufi_protocol_handler()
99 btc_blufi_send_encap(type, &data[0], sizeof(data)); in btc_blufi_protocol_handler()
123 … blufi_env.cbs->negotiate_data_handler(data, len, &output_data, &output_len, &need_free); in btc_blufi_protocol_handler()
135 memcpy(param.sta_bssid.bssid, &data[0], 6); in btc_blufi_protocol_handler()
143 param.sta_ssid.ssid = &data[0]; in btc_blufi_protocol_handler()
[all …]

12345678910>>...50