Home
last modified time | relevance | path

Searched refs:hdrlen (Results 1 – 13 of 13) sorted by relevance

/hostap-3.7.0/wlantest/
Dccmp.c190 u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos, in ccmp_encrypt() argument
198 if (len < hdrlen || hdrlen < 24) in ccmp_encrypt()
200 plen = len - hdrlen; in ccmp_encrypt()
202 crypt = os_malloc(hdrlen + 8 + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt()
206 os_memcpy(crypt, frame, hdrlen); in ccmp_encrypt()
209 pos = crypt + hdrlen; in ccmp_encrypt()
220 ccmp_aad_nonce(hdr, crypt + hdrlen, aad, &aad_len, nonce); in ccmp_encrypt()
224 if (aes_ccm_ae(tk, 16, nonce, 8, frame + hdrlen, plen, aad, aad_len, in ccmp_encrypt()
230 wpa_hexdump(MSG_EXCESSIVE, "CCMP encrypted", crypt + hdrlen + 8, plen); in ccmp_encrypt()
232 *encrypted_len = hdrlen + 8 + plen + 8; in ccmp_encrypt()
[all …]
Dgcmp.c116 size_t hdrlen, const u8 *qos, in gcmp_encrypt() argument
123 if (len < hdrlen || hdrlen < 24) in gcmp_encrypt()
125 plen = len - hdrlen; in gcmp_encrypt()
127 crypt = os_malloc(hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in gcmp_encrypt()
131 os_memcpy(crypt, frame, hdrlen); in gcmp_encrypt()
133 pos = crypt + hdrlen; in gcmp_encrypt()
144 gcmp_aad_nonce(hdr, crypt + hdrlen, aad, &aad_len, nonce); in gcmp_encrypt()
148 if (aes_gcm_ae(tk, tk_len, nonce, sizeof(nonce), frame + hdrlen, plen, in gcmp_encrypt()
157 *encrypted_len = hdrlen + 8 + plen + 16; in gcmp_encrypt()
Dinject.c122 int hdrlen; in wlantest_inject_prot_bc() local
125 hdrlen = 24; in wlantest_inject_prot_bc()
133 hdrlen += ETH_ALEN; in wlantest_inject_prot_bc()
141 frame, len, hdrlen, NULL, pn, in wlantest_inject_prot_bc()
146 frame, len, hdrlen, NULL, pn, in wlantest_inject_prot_bc()
172 int hdrlen; in wlantest_inject_prot() local
177 hdrlen = 24; in wlantest_inject_prot()
228 hdrlen += ETH_ALEN; in wlantest_inject_prot()
230 qos = frame + hdrlen; in wlantest_inject_prot()
231 hdrlen += 2; in wlantest_inject_prot()
[all …]
Dtkip.c258 int hdrlen = 24; in michael_mic_hdr() local
273 hdrlen += ETH_ALEN; in michael_mic_hdr()
283 const u8 *qos = ((const u8 *) hdr11) + hdrlen; in michael_mic_hdr()
438 u8 * tkip_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos, in tkip_encrypt() argument
452 if (len < sizeof(*hdr) || len < hdrlen) in tkip_encrypt()
459 michael_mic(mic_key, michael_hdr, frame + hdrlen, len - hdrlen, mic); in tkip_encrypt()
472 os_memcpy(crypt, frame, hdrlen); in tkip_encrypt()
473 pos = crypt + hdrlen; in tkip_encrypt()
482 os_memcpy(pos, frame + hdrlen, len - hdrlen); in tkip_encrypt()
483 os_memcpy(pos + len - hdrlen, mic, sizeof(mic)); in tkip_encrypt()
[all …]
Drx_data.c238 size_t hdrlen, in rx_data_bss_prot_group() argument
362 write_pcap_decrypted(wt, (const u8 *) hdr, hdrlen, in rx_data_bss_prot_group()
396 const struct ieee80211_hdr *hdr, size_t hdrlen, in rx_data_bss_prot() argument
417 rx_data_bss_prot_group(wt, hdr, hdrlen, qos, dst, src, in rx_data_bss_prot()
679 write_pcap_decrypted(wt, (const u8 *) hdr, hdrlen, in rx_data_bss_prot()
718 size_t hdrlen, const u8 *qos, const u8 *dst, in rx_data_bss() argument
742 rx_data_bss_prot(wt, hdr, hdrlen, qos, dst, src, data, len); in rx_data_bss()
854 size_t hdrlen; in rx_data() local
863 hdrlen = 24; in rx_data()
866 hdrlen += ETH_ALEN; in rx_data()
[all …]
Dwlantest.h245 size_t notes_len(struct wlantest *wt, size_t hdrlen);
305 u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos,
309 size_t hdrlen, const u8 *pn, int keyid,
314 u8 * ccmp_256_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen,
325 u8 * tkip_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos,
340 size_t hdrlen, const u8 *qos,
Dprocess.c358 u32 hdrlen; in wlantest_process_prism() local
364 hdrlen = WPA_GET_LE32(data + 4); in wlantest_process_prism()
366 if (len < hdrlen) { in wlantest_process_prism()
372 frame = data + hdrlen; in wlantest_process_prism()
373 frame_len = len - hdrlen; in wlantest_process_prism()
Dwlantest.c323 size_t notes_len(struct wlantest *wt, size_t hdrlen) in notes_len() argument
326 size_t len = wt->num_notes * hdrlen; in notes_len()
/hostap-3.7.0/src/eap_server/
Deap_server_ttls.c112 size_t hdrlen; in eap_ttls_avp_hdr() local
118 hdrlen = sizeof(*avp); in eap_ttls_avp_hdr()
121 hdrlen = sizeof(struct ttls_avp); in eap_ttls_avp_hdr()
126 ((u32) (hdrlen + len))); in eap_ttls_avp_hdr()
128 return avphdr + hdrlen; in eap_ttls_avp_hdr()
/hostap-3.7.0/src/eap_peer/
Deap_ttls.c210 size_t hdrlen; in eap_ttls_avp_hdr() local
216 hdrlen = sizeof(*avp); in eap_ttls_avp_hdr()
219 hdrlen = sizeof(struct ttls_avp); in eap_ttls_avp_hdr()
224 (u32) (hdrlen + len)); in eap_ttls_avp_hdr()
226 return avphdr + hdrlen; in eap_ttls_avp_hdr()
/hostap-3.7.0/src/rsn_supp/
Dwpa.c183 size_t mic_len, hdrlen, rlen; in wpa_sm_key_request() local
213 hdrlen = sizeof(*reply) + mic_len + 2; in wpa_sm_key_request()
215 hdrlen, &rlen, (void *) &reply); in wpa_sm_key_request()
489 size_t mic_len, hdrlen, rlen; in wpa_supplicant_send_2_of_4() local
542 hdrlen = sizeof(*reply) + mic_len + 2; in wpa_supplicant_send_2_of_4()
544 NULL, hdrlen + wpa_ie_len, in wpa_supplicant_send_2_of_4()
1620 size_t mic_len, hdrlen, rlen; in wpa_supplicant_send_4_of_4() local
1625 hdrlen = sizeof(*reply) + mic_len + 2; in wpa_supplicant_send_4_of_4()
1627 hdrlen, &rlen, (void *) &reply); in wpa_supplicant_send_4_of_4()
2021 size_t mic_len, hdrlen, rlen; in wpa_supplicant_send_2_of_2() local
[all …]
/hostap-3.7.0/src/drivers/
Ddriver_ndis.c459 size_t hdrlen; in ndis_get_oid() local
476 hdrlen = sizeof(NDISUIO_QUERY_OID) - sizeof(o->Data); in ndis_get_oid()
477 if (written < hdrlen) { in ndis_get_oid()
483 written -= hdrlen; in ndis_get_oid()
/hostap-3.7.0/src/ap/
Dwpa_auth_ft.c815 size_t hdrlen = use_sha384 ? sizeof(struct rsn_ftie_sha384) : in wpa_write_ftie() local
818 if (len < 2 + hdrlen + 2 + FT_R1KH_ID_LEN + 2 + r0kh_id_len + in wpa_write_ftie()