Home
last modified time | relevance | path

Searched refs:mlen (Results 1 – 11 of 11) sorted by relevance

/hostap-3.7.0/wlantest/
Dccmp.c143 size_t mlen; in ccmp_decrypt() local
153 mlen = data_len - 8 - 8; in ccmp_decrypt()
160 if (aes_ccm_ad(tk, 16, nonce, 8, data + 8, mlen, aad, aad_len, in ccmp_decrypt()
161 data + 8 + mlen, plain) < 0) { in ccmp_decrypt()
172 wpa_hexdump(MSG_EXCESSIVE, "CCMP decrypted", plain, mlen); in ccmp_decrypt()
174 *decrypted_len = mlen; in ccmp_decrypt()
285 size_t mlen; in ccmp_256_decrypt() local
295 mlen = data_len - 8 - 16; in ccmp_256_decrypt()
302 if (aes_ccm_ad(tk, 32, nonce, 16, data + 8, mlen, aad, aad_len, in ccmp_256_decrypt()
303 data + 8 + mlen, plain) < 0) { in ccmp_256_decrypt()
[all …]
Dgcmp.c79 size_t aad_len, mlen; in gcmp_decrypt() local
90 mlen = data_len - 8 - 16; in gcmp_decrypt()
97 if (aes_gcm_ad(tk, tk_len, nonce, sizeof(nonce), m, mlen, aad, aad_len, in gcmp_decrypt()
98 m + mlen, plain) < 0) { in gcmp_decrypt()
110 *decrypted_len = mlen; in gcmp_decrypt()
/hostap-3.7.0/src/l2_packet/
Dl2_packet_pcap.c94 size_t mlen = sizeof(*eth) + len; in l2_packet_send() local
95 eth = os_malloc(mlen); in l2_packet_send()
105 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
107 ret = eth_send(l2->eth, (u8 *) eth, mlen); in l2_packet_send()
Dl2_packet_winpcap.c84 size_t mlen = sizeof(*eth) + len; in l2_packet_send() local
85 eth = os_malloc(mlen); in l2_packet_send()
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
Dl2_packet_ndis.c116 size_t mlen = sizeof(*eth) + len; in l2_packet_send() local
117 eth = os_malloc(mlen); in l2_packet_send()
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, in l2_packet_send()
/hostap-3.7.0/src/eap_peer/
Deap_pax.c342 u16 flen, mlen; in eap_pax_process() local
352 mlen = wpabuf_len(reqData) - EAP_PAX_ICV_LEN; in eap_pax_process()
421 wpabuf_head(reqData), mlen, NULL, 0, NULL, 0, in eap_pax_process()
425 wpabuf_head(reqData), mlen, NULL, 0, NULL, 0, in eap_pax_process()
Deap_gpsk.c632 size_t mlen; in eap_gpsk_send_gpsk_4() local
636 mlen = eap_gpsk_mic_len(data->vendor, data->specifier); in eap_gpsk_send_gpsk_4()
638 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, 1 + 2 + mlen, in eap_gpsk_send_gpsk_4()
649 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
/hostap-3.7.0/src/eap_server/
Deap_server_pax.c204 size_t len, mlen; in eap_pax_check() local
213 mlen = sizeof(struct eap_hdr) + 1 + len; in eap_pax_check()
280 icv = wpabuf_mhead_u8(respData) + mlen - EAP_PAX_ICV_LEN; in eap_pax_check()
Deap_server_peap.c404 size_t mlen; in eap_peap_build_phase2_tlv() local
406 mlen = 6; /* Result TLV */ in eap_peap_build_phase2_tlv()
409 mlen += 60; /* Cryptobinding TLV */ in eap_peap_build_phase2_tlv()
412 mlen += wpabuf_len(data->soh_response); in eap_peap_build_phase2_tlv()
416 buf = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TLV, mlen, in eap_peap_build_phase2_tlv()
/hostap-3.7.0/tests/hwsim/
Dtest_ap_wps.py5731 mlen = "%04x" % (int(msg[4:8], 16) - 12)
5732 msg = msg[0:4] + mlen + msg[8:12] + mlen + msg[16:]
5831 mlen = "%04x" % (int(msg[4:8], 16) - 6)
5832 msg = msg[0:4] + mlen + msg[8:12] + mlen + msg[16:722] + msg[734:]
5857 mlen = "%04x" % (int(msg[4:8], 16) - 20)
5858 msg = msg[0:4] + mlen + msg[8:12] + mlen + msg[16:96] + msg[136:]
5887 mlen = "%04x" % (int(msg[4:8], 16) - 20)
5888 msg = msg[0:4] + mlen + msg[8:12] + mlen + msg[16:56] + msg[96:]
5916 mlen = "%04x" % (int(msg[4:8], 16) - 20)
5917 msg = msg[0:4] + mlen + msg[8:12] + mlen + msg[16:136] + msg[176:]
[all …]
/hostap-3.7.0/src/ap/
Dwpa_auth_glue.c1016 size_t mlen; in hostapd_wpa_auth_send_ft_action() local
1026 mlen = ((u8 *) &m->u - (u8 *) m) + data_len; in hostapd_wpa_auth_send_ft_action()
1034 res = hostapd_drv_send_mlme(hapd, (u8 *) m, mlen, 0, NULL, 0, 0); in hostapd_wpa_auth_send_ft_action()