Searched refs:hdr_len (Results 1 – 6 of 6) sorted by relevance
/hostap-latest/src/crypto/ |
D | aes-eax.c | 29 const u8 *hdr, size_t hdr_len, in aes_128_eax_encrypt() argument 42 if (hdr_len > buf_len) in aes_128_eax_encrypt() 43 buf_len = hdr_len; in aes_128_eax_encrypt() 58 os_memcpy(buf + 16, hdr, hdr_len); in aes_128_eax_encrypt() 59 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) in aes_128_eax_encrypt() 93 const u8 *hdr, size_t hdr_len, in aes_128_eax_decrypt() argument 106 if (hdr_len > buf_len) in aes_128_eax_decrypt() 107 buf_len = hdr_len; in aes_128_eax_decrypt() 124 os_memcpy(buf + 16, hdr, hdr_len); in aes_128_eax_decrypt() 125 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) { in aes_128_eax_decrypt()
|
D | aes_wrap.h | 42 const u8 *hdr, size_t hdr_len, 46 const u8 *hdr, size_t hdr_len,
|
/hostap-latest/wlantest/ |
D | test_vectors.c | 599 size_t hdr_len; member 649 .hdr_len = 24, 705 .hdr_len = 26, 734 wpa_hexdump(MSG_INFO, "802.11 Header", vector->frame, vector->hdr_len); in run_gcmp() 736 vector->frame + vector->hdr_len, in run_gcmp() 741 vector->hdr_len + vector->payload_len, in run_gcmp() 742 vector->hdr_len, in run_gcmp() 743 vector->hdr_len == 26 ? in run_gcmp() 744 vector->frame + vector->hdr_len - 2 : NULL, in run_gcmp() 753 if (os_memcmp(vector->encr, enc + vector->hdr_len + 8, in run_gcmp() [all …]
|
/hostap-latest/src/common/ |
D | gas_server.c | 97 size_t hdr_len = 24 + 2 + 5 + 3 + handler->adv_proto_id_len + 2; in gas_server_send_resp() local 111 } else if (hdr_len + wpabuf_len(query_resp) > max_len) { in gas_server_send_resp() 273 size_t hdr_len = 24 + 2 + 6 + 3 + handler->adv_proto_id_len + 2; in gas_server_handle_rx_comeback_req() local 303 if (hdr_len + remaining > max_len) in gas_server_handle_rx_comeback_req() 304 resp_frag_len = max_len - hdr_len; in gas_server_handle_rx_comeback_req()
|
/hostap-latest/src/radius/ |
D | radius.c | 736 size_t hdr_len = sizeof(struct radius_attr_hdr_ext) + 1; in radius_msg_add_attr() local 737 size_t plen = 255 - hdr_len; in radius_msg_add_attr() 744 buf_needed = num * hdr_len + data_len; in radius_msg_add_attr()
|
/hostap-latest/wpa_supplicant/ |
D | wpa_supplicant.c | 3161 size_t rem_len, hdr_len, hlp_len, len, ie_len = 0; in wpas_add_fils_hlp_req() local 3169 hdr_len = 1 + 2 * ETH_ALEN + 6; in wpas_add_fils_hlp_req() 3172 if (rem_len < 2 + hdr_len + hlp_len) { in wpas_add_fils_hlp_req() 3176 (unsigned long) (2 + hdr_len + hlp_len)); in wpas_add_fils_hlp_req() 3180 len = (hdr_len + hlp_len) > 255 ? 255 : hdr_len + hlp_len; in wpas_add_fils_hlp_req() 3197 os_memcpy(buf, pos, len - hdr_len); in wpas_add_fils_hlp_req() 3198 buf += len - hdr_len; in wpas_add_fils_hlp_req() 3199 pos += len - hdr_len; in wpas_add_fils_hlp_req() 3201 hlp_len -= len - hdr_len; in wpas_add_fils_hlp_req()
|