Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 44) sorted by relevance

12

/hal_espressif-latest/components/mbedtls/port/sha/dma/
Dsha.c186 const uint8_t *buf, uint32_t buf_len, bool is_first_block) in esp_sha_block_mode() argument
196 if (buf_len != 0) { in esp_sha_block_mode()
210 const void *buf, uint32_t buf_len, bool is_first_block);
216 const void *buf, uint32_t buf_len, bool is_first_block) in esp_sha_dma() argument
221 if (buf_len > block_length(sha_type)) { in esp_sha_dma()
228 esp_sha_block_mode(sha_type, input, ilen, buf, buf_len, is_first_block); in esp_sha_dma()
237 Cache_WriteBack_Addr((uint32_t)buf, buf_len); in esp_sha_dma()
242 if (!s_check_dma_capable(buf) && (buf_len != 0)) { in esp_sha_dma()
243 …dma_cap_buf = heap_caps_malloc(sizeof(unsigned char) * buf_len, MALLOC_CAP_8BIT|MALLOC_CAP_DMA|MAL… in esp_sha_dma()
249 memcpy(dma_cap_buf, buf, buf_len); in esp_sha_dma()
[all …]
Desp_sha1.c104 uint8_t *buf, size_t buf_len) in esp_internal_sha1_dma_process() argument
106 return esp_sha_dma(SHA1, data, len, buf, buf_len, ctx->first_block); in esp_internal_sha1_dma_process()
Desp_sha512.c147 uint8_t *buf, size_t buf_len) in esp_internal_sha512_dma_process() argument
151 return esp_sha_dma(ctx->mode, data, len, buf, buf_len, ctx->first_block); in esp_internal_sha512_dma_process()
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dsha1-tprf.c30 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) in sha1_t_prf() argument
51 output_len[0] = (buf_len >> 8) & 0xff; in sha1_t_prf()
52 output_len[1] = buf_len & 0xff; in sha1_t_prf()
54 while (pos < buf_len) { in sha1_t_prf()
56 plen = buf_len - pos; in sha1_t_prf()
Dsha256-prf.c31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) in sha256_prf() argument
34 buf_len * 8); in sha256_prf()
64 size_t buf_len = (buf_len_bits + 7) / 8; in sha256_prf_bits() local
77 while (pos < buf_len) { in sha256_prf_bits()
78 plen = buf_len - pos; in sha256_prf_bits()
Dsha384-prf.c31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) in sha384_prf() argument
34 buf_len * 8); in sha384_prf()
64 size_t buf_len = (buf_len_bits + 7) / 8; in sha384_prf_bits() local
77 while (pos < buf_len) { in sha384_prf_bits()
78 plen = buf_len - pos; in sha384_prf_bits()
Dsha1-prf.c31 const u8 *data, size_t data_len, u8 *buf, size_t buf_len) in sha1_prf() argument
48 while (pos < buf_len) { in sha1_prf()
49 plen = buf_len - pos; in sha1_prf()
Dsha1.h19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
21 const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len);
Dsha256.h19 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
Dsha384.h20 const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap_fast_pac.c186 size_t buf_len; member
195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line()
206 if (len >= rc->buf_len) in eap_fast_read_line()
207 len = rc->buf_len - 1; in eap_fast_read_line()
213 rc->buf[rc->buf_len - 1] = '\0'; in eap_fast_read_line()
259 rc->buf_len = 2048; in eap_fast_init_pac_data()
260 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data()
480 static void eap_fast_write(char **buf, char **pos, size_t *buf_len, in eap_fast_write() argument
496 if (*pos - *buf + need > *buf_len) { in eap_fast_write()
497 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write()
[all …]
Deap_peap_common.c20 u8 *buf, size_t buf_len) in peap_prfplus() argument
63 extra[0] = buf_len & 0xff; in peap_prfplus()
72 while (pos < buf_len) { in peap_prfplus()
74 plen = buf_len - pos; in peap_prfplus()
Dmschapv2.c110 const u8 *buf, size_t buf_len) in mschapv2_verify_auth_response() argument
113 if (buf_len < 2 + 2 * MSCHAPV2_AUTH_RESPONSE_LEN || in mschapv2_verify_auth_response()
Deap_peap_common.h14 u8 *buf, size_t buf_len);
Dmschapv2.h23 const u8 *buf, size_t buf_len);
/hal_espressif-latest/components/bt/porting/transport/driver/vhci/
Dhci_driver_standard.c25 uint16_t buf_len = 0; in hci_driver_vhci_controller_tx() local
31 buf_len = length + 1; in hci_driver_vhci_controller_tx()
32 buf = malloc(buf_len); in hci_driver_vhci_controller_tx()
39 buf_len = length + 1; in hci_driver_vhci_controller_tx()
40 buf = malloc(buf_len); in hci_driver_vhci_controller_tx()
48 rc = s_hci_driver_vhci_env.forward_cb(data_type, buf, buf_len, HCI_DRIVER_DIR_C2H); in hci_driver_vhci_controller_tx()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/storage/
Dsettings_nvs.c296 uint8_t *buf, size_t buf_len, bool *exist) in settings_load() argument
305 err = nvs_get_blob(handle, key, buf, &buf_len); in settings_load()
322 uint8_t *buf, size_t buf_len, bool *exist) in bt_mesh_load_settings() argument
326 err = settings_load(handle, key, buf, buf_len, exist); in bt_mesh_load_settings()
331 int bt_mesh_load_core_settings(const char *key, uint8_t *buf, size_t buf_len, bool *exist) in bt_mesh_load_core_settings() argument
334 return bt_mesh_load_settings(handle, key, buf, buf_len, exist); in bt_mesh_load_core_settings()
338 int bt_mesh_load_uid_settings(const char *key, uint8_t *buf, size_t buf_len, bool *exist) in bt_mesh_load_uid_settings() argument
341 return bt_mesh_load_settings(handle, key, buf, buf_len, exist); in bt_mesh_load_uid_settings()
529 size_t buf_len = 0U; in settings_remove_item() local
556 buf_len = buf->len; in settings_remove_item()
[all …]
Dsettings_nvs.h44 uint8_t *buf, size_t buf_len, bool *exist);
45 int bt_mesh_load_core_settings(const char *key, uint8_t *buf, size_t buf_len, bool *exist);
46 int bt_mesh_load_uid_settings(const char *key, uint8_t *buf, size_t buf_len, bool *exist);
/hal_espressif-latest/components/wpa_supplicant/src/utils/
Djson.c68 size_t max_len, buf_len; in json_parse_string() local
74 buf_len = max_len > 10 ? 10 : max_len; in json_parse_string()
75 str = os_malloc(buf_len); in json_parse_string()
79 s_end = str + buf_len; in json_parse_string()
82 if (buf_len < max_len && s_end - spos < 3) { in json_parse_string()
87 buf_len *= 2; in json_parse_string()
88 if (buf_len > max_len) in json_parse_string()
89 buf_len = max_len; in json_parse_string()
90 tmp = os_realloc(str, buf_len); in json_parse_string()
95 s_end = str + buf_len; in json_parse_string()
/hal_espressif-latest/components/bt/host/bluedroid/stack/avrc/
Davrc_pars_tg.c43 UINT8 *p_buf, UINT16 buf_len) in avrc_pars_vendor_cmd() argument
134 for (xx = 0; ((xx < p_result->set_app_val.num_val) && (buf_len > size_needed)); xx++) { in avrc_pars_vendor_cmd()
280 tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len) in AVRC_ParsCommand() argument
288 status = avrc_pars_vendor_cmd(&p_msg->vendor, p_result, p_buf, buf_len); in AVRC_ParsCommand()
/hal_espressif-latest/components/mbedtls/port/include/sha/
Dsha_dma.h96 const void *buf, uint32_t buf_len, bool is_first_block);
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/
Dgatt_sr.c51 UINT16 buf_len; in gatt_send_packet() local
58 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatt_send_packet()
59 if ((p_msg = (BT_HDR *)osi_malloc(buf_len)) == NULL) { in gatt_send_packet()
63 memset(p_msg, 0, buf_len); in gatt_send_packet()
986 UINT16 s_hdl = 0, e_hdl = 0, buf_len; in gatts_process_find_info() local
995 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info()
997 if ((p_msg = (BT_HDR *)osi_calloc(buf_len)) == NULL) { in gatts_process_find_info()
1006 buf_len = p_tcb->payload_size - 2; in gatts_process_find_info()
1016 reason = gatt_build_find_info_rsp(p_rcb, p_msg, &buf_len, s_hdl, e_hdl); in gatts_process_find_info()
1118 buf_len, in gatts_process_read_by_type_req() local
[all …]
/hal_espressif-latest/components/esp_wifi/include/
Desp_wifi_crypto_types.h130 … const unsigned char *data, int data_len, unsigned char *buf, int buf_len);
202 … const unsigned char *data, unsigned int data_len, unsigned char *buf, unsigned int buf_len);
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_client/include/
Dbta_hf_client_at.h77 UINT16 buf_len; member
/hal_espressif-latest/components/wpa_supplicant/src/rsn_supp/
Dwpa_ft.c160 size_t buf_len; in wpa_ft_gen_req_ies() local
170 buf_len = 2 + sizeof(struct rsn_mdie) + 2 + sizeof(struct rsn_ftie) + in wpa_ft_gen_req_ies()
172 buf = os_zalloc(buf_len); in wpa_ft_gen_req_ies()
258 mdie_len = wpa_ft_add_mdie(sm, pos, buf_len - (pos - buf), ap_mdie); in wpa_ft_gen_req_ies()
383 int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *buf, size_t buf_len, in wpa_ft_add_mdie() argument
389 if (buf_len < 2 + sizeof(*mdie)) { in wpa_ft_add_mdie()
392 buf_len); in wpa_ft_add_mdie()

12