Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 172) sorted by relevance

1234567

/hal_espressif-2.7.6/components/wpa_supplicant/src/crypto/
Daes_wrap.h33 int __must_check omac1_aes_128(const u8 *key, const u8 *data, size_t data_len,
35 int __must_check omac1_aes_256(const u8 *key, const u8 *data, size_t data_len,
39 u8 *data, size_t data_len);
41 u8 *data, size_t data_len);
45 u8 *data, size_t data_len, u8 *tag);
49 u8 *data, size_t data_len, const u8 *tag);
51 size_t data_len);
53 size_t data_len);
Daes-cbc.c49 aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len) in aes_128_cbc_encrypt() argument
64 ret = mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, data_len, cbc, data, data); in aes_128_cbc_encrypt()
80 aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len) in aes_128_cbc_decrypt() argument
95 ret = mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, data_len, cbc, data, data); in aes_128_cbc_decrypt()
112 aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len) in aes_128_cbc_encrypt() argument
124 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_encrypt()
146 aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len) in aes_128_cbc_decrypt() argument
158 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_decrypt()
Daes-ctr.c28 u8 *data, size_t data_len) in aes_ctr_encrypt() argument
40 ret = mbedtls_aes_crypt_ctr(&ctx, data_len, &offset, (u8 *)nonce, stream_block, data, data); in aes_ctr_encrypt()
46 size_t j, len, left = data_len; in aes_ctr_encrypt()
86 u8 *data, size_t data_len) in aes_128_ctr_encrypt() argument
88 return aes_ctr_encrypt(key, 16, nonce, data, data_len); in aes_128_ctr_encrypt()
Dsha256-prf.c31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) in sha256_prf() argument
33 return sha256_prf_bits(key, key_len, label, data, data_len, buf, in sha256_prf()
55 const u8 *data, size_t data_len, u8 *buf, in sha256_prf_bits() argument
71 len[2] = data_len; in sha256_prf_bits()
Daes-siv.c72 size_t data_len[1]; in aes_s2v() local
78 data_len[0] = sizeof(tmp); in aes_s2v()
79 return omac1_aes_vector(key, key_len, 1, data, data_len, mac); in aes_s2v()
83 data_len[0] = sizeof(zero); in aes_s2v()
84 ret = omac1_aes_vector(key, key_len, 1, data, data_len, tmp); in aes_s2v()
114 data_len[0] = sizeof(tmp); in aes_s2v()
115 return omac1_aes_vector(key, key_len, 1, data, data_len, mac); in aes_s2v()
Dsha256.h23 size_t data_len, u8 *mac);
25 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
27 const u8 *data, size_t data_len, u8 *buf,
Dsha384.h17 size_t data_len, u8 *mac);
19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
21 const u8 *data, size_t data_len, u8 *buf,
/hal_espressif-2.7.6/components/esp_wifi/include/
Desp_wifi_crypto_types.h73 …8_encrypt_t)(const unsigned char *key, const unsigned char *iv, unsigned char *data, int data_len);
84 …8_decrypt_t)(const unsigned char *key, const unsigned char *iv, unsigned char *data, int data_len);
135 … const unsigned char *data, int data_len, unsigned char *buf, int buf_len);
148 unsigned int data_len, unsigned char *mac);
175 unsigned int data_len, unsigned char *mac);
207 … const unsigned char *data, unsigned int data_len, unsigned char *buf, unsigned int buf_len);
254 unsigned char *data, unsigned int data_len);
327 typedef int (*esp_omac1_aes_128_t)(const uint8_t *key, const uint8_t *data, size_t data_len,
343 const uint8_t *data, size_t data_len,
/hal_espressif-2.7.6/components/espcoredump/src/
Dcore_dump_elf.c162 int data_len = data_sz; in elf_add_segment() local
167 ALIGN(4, data_len); in elf_add_segment()
171 return data_len + sizeof(elf_phdr); in elf_add_segment()
177 seg_hdr.p_filesz = data_len; in elf_add_segment()
178 seg_hdr.p_memsz = data_len; in elf_add_segment()
183 self->elf_next_data_offset += data_len; in elf_add_segment()
187 (uint32_t)data_len, self->elf_next_data_offset); in elf_add_segment()
190 err = self->write_cfg->write(self->write_cfg->priv, data, (uint32_t)data_len); in elf_add_segment()
193 self->elf_next_data_offset += data_len; in elf_add_segment()
194 return data_len; in elf_add_segment()
[all …]
Dcore_dump_binary.c96 uint32_t data_len = 0; in esp_core_dump_write_binary() local
122 data_len += esp_core_dump_get_memory_len(stk_vaddr, stk_vaddr+stk_len); in esp_core_dump_write_binary()
124 data_len += (tcb_sz + sizeof(core_dump_task_header_t)); in esp_core_dump_write_binary()
128 data_len += esp_core_dump_get_memory_len(mem_seg.start, mem_seg.start+mem_seg.size); in esp_core_dump_write_binary()
129 data_len += sizeof(core_dump_mem_seg_header_t); in esp_core_dump_write_binary()
155data_len += sizeof(core_dump_mem_seg_header_t) + esp_core_dump_get_memory_len(start, start + data_… in esp_core_dump_write_binary()
160 data_len += sizeof(core_dump_header_t); in esp_core_dump_write_binary()
163 data_len, hdr.tasks_num, bad_tasks_num); in esp_core_dump_write_binary()
166 err = write_cfg->prepare(write_cfg->priv, &data_len); in esp_core_dump_write_binary()
183 hdr.data_len = data_len; in esp_core_dump_write_binary()
Dcore_dump_uart.c68 static esp_err_t esp_core_dump_uart_write_prepare(core_dump_write_data_t *priv, uint32_t *data_len) in esp_core_dump_uart_write_prepare() argument
70 ESP_COREDUMP_ASSERT(data_len != NULL); in esp_core_dump_uart_write_prepare()
71 *data_len += esp_core_dump_checksum_size(); in esp_core_dump_uart_write_prepare()
96 …p_err_t esp_core_dump_uart_write_data(core_dump_write_data_t *priv, void * data, uint32_t data_len) in esp_core_dump_uart_write_data() argument
101 char *end = addr + data_len; in esp_core_dump_uart_write_data()
118 wr_data->off += data_len; in esp_core_dump_uart_write_data()
119 esp_core_dump_checksum_update(wr_data->checksum_ctx, data, data_len); in esp_core_dump_uart_write_data()
Dcore_dump_checksum.c86 void esp_core_dump_checksum_update(core_dump_checksum_ctx* cks_ctx, void* data, size_t data_len) in esp_core_dump_checksum_update() argument
92 cks_ctx->crc = esp_rom_crc32_le(cks_ctx->crc, data, data_len); in esp_core_dump_checksum_update()
98 (void)mbedtls_sha256_update_ret(&cks_ctx->ctx, data, data_len); in esp_core_dump_checksum_update()
101 cks_ctx->total_bytes_checksum += data_len; in esp_core_dump_checksum_update()
/hal_espressif-2.7.6/components/wpa_supplicant/src/esp_supplicant/
Desp_wpas_glue.c24 const void *data, u16 data_len, in wpa_sm_alloc_eapol() argument
30 *msg_len = sizeof(struct ieee802_1x_hdr) + data_len; in wpa_sm_alloc_eapol()
43 hdr->length = host_to_be16(data_len); in wpa_sm_alloc_eapol()
46 memcpy(hdr + 1, data, data_len); in wpa_sm_alloc_eapol()
48 memset(hdr + 1, 0, data_len); in wpa_sm_alloc_eapol()
/hal_espressif-2.7.6/components/bootloader_support/src/
Desp_image_format.c84 static esp_err_t process_segment_data(intptr_t load_addr, uint32_t data_addr, uint32_t data_len, bo…
190 next_addr += header->data_len;
304 for (size_t j = 0; j < data->segments[i].data_len / sizeof(uint32_t); j++) {
386 next_addr += header->data_len;
573 uint32_t data_len = header->data_len; local
576 ESP_LOGV(TAG, "segment data length 0x%x data starts 0x%x", data_len, data_addr);
583 if (data_len % 4 != 0) {
584 FAIL_LOAD("unaligned segment length 0x%x", data_len);
593 data_len, data_len,
600 if (do_load && data_len > 0) {
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/esp/blufi/
Dblufi_prf.c407 ret = blufi_env.cbs->decrypt_func(hdr->seq, hdr->data, hdr->data_len); in btc_blufi_recv_handler()
408 if (ret != hdr->data_len) { /* enc must be success and enc len must equal to plain len */ in btc_blufi_recv_handler()
418 checksum = blufi_env.cbs->checksum_func(hdr->seq, &hdr->seq, hdr->data_len + 2); in btc_blufi_recv_handler()
419 checksum_pkt = hdr->data[hdr->data_len] | (((uint16_t) hdr->data[hdr->data_len + 1]) << 8); in btc_blufi_recv_handler()
441 if (blufi_env.offset + hdr->data_len - 2 <= blufi_env.total_len){ in btc_blufi_recv_handler()
442 memcpy(blufi_env.aggr_buf + blufi_env.offset, hdr->data + 2, hdr->data_len - 2); in btc_blufi_recv_handler()
443 blufi_env.offset += (hdr->data_len - 2); in btc_blufi_recv_handler()
452 memcpy(blufi_env.aggr_buf + blufi_env.offset, hdr->data, hdr->data_len); in btc_blufi_recv_handler()
459 btc_blufi_protocol_handler(hdr->type, hdr->data, hdr->data_len); in btc_blufi_recv_handler()
484 hdr->data_len = blufi_env.frag_size + 2; in btc_blufi_send_encap()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/hci/ble_adv_scan_combined/main/
Dapp_bt.c190 static esp_err_t get_local_name (uint8_t *data_msg, uint8_t data_len, ble_scan_local_name_t *scanne… in get_local_name() argument
193 while (curr_ptr < data_len) { in get_local_name()
226 …uint8_t *queue_data = NULL, *event_type = NULL, *addr_type = NULL, *addr = NULL, *data_len = NULL,… in hci_evt_process() local
286 data_len = (uint8_t *)malloc(sizeof(uint8_t) * num_responses); in hci_evt_process()
287 if (data_len == NULL) { in hci_evt_process()
292 data_len[i] = queue_data[data_ptr]; in hci_evt_process()
304 for (uint8_t j = 0; j < data_len[i]; j += 1) { in hci_evt_process()
312 if (data_len == NULL) { in hci_evt_process()
323 if (data_len == NULL) { in hci_evt_process()
328 ret = get_local_name(&data_msg[data_msg_ptr], data_len[i], scanned_name); in hci_evt_process()
[all …]
/hal_espressif-2.7.6/components/esp32c3/
Desp_hmac.c36 static void write_and_padd(uint8_t *block, const uint8_t *data, uint16_t data_len) in write_and_padd() argument
38 memcpy(block, data, data_len); in write_and_padd()
40 block[data_len] = 0x80; in write_and_padd()
41 bzero(block + data_len + 1, SHA256_BLOCK_SZ - data_len - 1); in write_and_padd()
/hal_espressif-2.7.6/examples/bluetooth/hci/hci_common_component/
Dbt_hci_common.c86 uint16_t make_cmd_ble_set_adv_data(uint8_t *buf, uint8_t data_len, uint8_t *p_data) in make_cmd_ble_set_adv_data() argument
94 if (p_data != NULL && data_len > 0) { in make_cmd_ble_set_adv_data()
95 if (data_len > HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA) { in make_cmd_ble_set_adv_data()
96 data_len = HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA; in make_cmd_ble_set_adv_data()
99 UINT8_TO_STREAM (buf, data_len); in make_cmd_ble_set_adv_data()
101 ARRAY_TO_STREAM (buf, p_data, data_len); in make_cmd_ble_set_adv_data()
/hal_espressif-2.7.6/components/esp_http_server/src/util/
Dctrl_sock.c53 int cs_send_to_ctrl_sock(int send_fd, int port, void *data, unsigned int data_len) in cs_send_to_ctrl_sock() argument
60 ret = sendto(send_fd, data, data_len, 0, (struct sockaddr *)&to_addr, sizeof(to_addr)); in cs_send_to_ctrl_sock()
68 int cs_recv_from_ctrl_sock(int fd, void *data, unsigned int data_len) in cs_recv_from_ctrl_sock() argument
71 ret = recvfrom(fd, data, data_len, 0, NULL, NULL); in cs_recv_from_ctrl_sock()
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/btm/
Dbtm_ble_batchscan.c176 ble_batchscan_cb.main_rep_q.data_len[ble_batchscan_cb.main_rep_q.next_idx] = 0; in btm_ble_batchscan_enq_rep_q()
196 UINT8 data_len) in btm_ble_batchscan_enq_rep_data() argument
208 index, report_format, num_records, data_len); in btm_ble_batchscan_enq_rep_data()
210 if (index < BTM_BLE_BATCH_REP_MAIN_Q_SIZE && data_len > 0 && num_records > 0) { in btm_ble_batchscan_enq_rep_data()
211 len = ble_batchscan_cb.main_rep_q.data_len[index]; in btm_ble_batchscan_enq_rep_data()
214 p_app_data = osi_malloc(len + data_len); in btm_ble_batchscan_enq_rep_data()
216 memcpy(p_app_data + len, p_data, data_len); in btm_ble_batchscan_enq_rep_data()
220 ble_batchscan_cb.main_rep_q.data_len[index] += data_len; in btm_ble_batchscan_enq_rep_data()
222 p_app_data = osi_malloc(data_len); in btm_ble_batchscan_enq_rep_data()
223 memcpy(p_app_data, p_data, data_len); in btm_ble_batchscan_enq_rep_data()
[all …]
/hal_espressif-2.7.6/components/bootloader_support/src/esp32c3/
Dbootloader_sha.c32 void bootloader_sha256_data(bootloader_sha256_handle_t handle, const void *data, size_t data_len) in bootloader_sha256_data() argument
35 assert(data_len % 4 == 0); in bootloader_sha256_data()
36 ets_sha_update(&ctx, data, data_len, false); in bootloader_sha256_data()
/hal_espressif-2.7.6/components/bootloader_support/src/esp32s2/
Dbootloader_sha.c37 void bootloader_sha256_data(bootloader_sha256_handle_t handle, const void *data, size_t data_len) in bootloader_sha256_data() argument
40 assert(data_len % 4 == 0); in bootloader_sha256_data()
41 ets_sha_update(&ctx, data, data_len, false); in bootloader_sha256_data()
/hal_espressif-2.7.6/components/bootloader_support/src/esp32s3/
Dbootloader_sha.c32 void bootloader_sha256_data(bootloader_sha256_handle_t handle, const void *data, size_t data_len) in bootloader_sha256_data() argument
35 assert(data_len % 4 == 0); in bootloader_sha256_data()
36 ets_sha_update(&ctx, data, data_len, false); in bootloader_sha256_data()
/hal_espressif-2.7.6/components/coap/port/
Dcoap_notls.c111 size_t data_len UNUSED in coap_dtls_send()
135 size_t data_len UNUSED in coap_dtls_receive()
143 size_t data_len UNUSED in coap_dtls_hello()
165 size_t data_len UNUSED in coap_tls_write()
172 size_t data_len UNUSED in coap_tls_read()
/hal_espressif-2.7.6/components/coap/port/include/coap/
Dcoap_dtls.h441 size_t data_len);
500 size_t data_len);
518 size_t data_len);
583 size_t data_len
600 size_t data_len

1234567