Home
last modified time | relevance | path

Searched refs:elen (Results 1 – 25 of 54) sorted by relevance

123

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dieee802_11_common.c20 static int ieee802_11_parse_vendor_specific(const u8 *pos, size_t elen, in ieee802_11_parse_vendor_specific() argument
29 if (elen < 4) { in ieee802_11_parse_vendor_specific()
33 (unsigned long) elen); in ieee802_11_parse_vendor_specific()
48 elems->wpa_ie_len = elen; in ieee802_11_parse_vendor_specific()
52 if (elen < 5) { in ieee802_11_parse_vendor_specific()
56 (unsigned long) elen); in ieee802_11_parse_vendor_specific()
69 elems->wmm_len = elen; in ieee802_11_parse_vendor_specific()
73 elems->wmm_tspec_len = elen; in ieee802_11_parse_vendor_specific()
79 pos[4], (unsigned long) elen); in ieee802_11_parse_vendor_specific()
86 elems->wps_ie_len = elen; in ieee802_11_parse_vendor_specific()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dieee802_11_common.c20 static int ieee802_11_parse_vendor_specific(const u8 *pos, size_t elen, in ieee802_11_parse_vendor_specific() argument
29 if (elen < 4) { in ieee802_11_parse_vendor_specific()
33 (unsigned long) elen); in ieee802_11_parse_vendor_specific()
48 elems->wpa_ie_len = elen; in ieee802_11_parse_vendor_specific()
52 if (elen < 5) { in ieee802_11_parse_vendor_specific()
56 (unsigned long) elen); in ieee802_11_parse_vendor_specific()
69 elems->wmm_len = elen; in ieee802_11_parse_vendor_specific()
73 elems->wmm_tspec_len = elen; in ieee802_11_parse_vendor_specific()
79 pos[4], (unsigned long) elen); in ieee802_11_parse_vendor_specific()
86 elems->wps_ie_len = elen; in ieee802_11_parse_vendor_specific()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dtaxonomy.c60 u16 id, elen; in get_wps_name() local
63 elen = WPA_GET_BE16(data + 2); in get_wps_name()
67 if (elen > data_len) in get_wps_name()
72 size_t n = (elen < name_len) ? elen : name_len; in get_wps_name()
77 data += elen; in get_wps_name()
78 data_len -= elen; in get_wps_name()
124 u8 id, elen; in ie_to_string() local
128 elen = *ie++; in ie_to_string()
131 if (elen > ie_len) in ie_to_string()
134 if (id == WLAN_EID_VENDOR_SPECIFIC && elen >= 4) { in ie_to_string()
[all …]
Dieee802_11_shared.c633 const int elen = 2 + 1 + 10 + 5 + 1; in hostapd_update_time_adv() local
645 hapd->time_adv = wpabuf_alloc(elen); in hostapd_update_time_adv()
648 pos = wpabuf_put(hapd->time_adv, elen); in hostapd_update_time_adv()
822 size_t elen; in hostapd_eid_owe_trans() local
831 elen = hostapd_eid_owe_trans_len(hapd); in hostapd_eid_owe_trans()
832 if (len < elen) { in hostapd_eid_owe_trans()
839 *pos++ = elen - 2; in hostapd_eid_owe_trans()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dtaxonomy.c60 u16 id, elen; in get_wps_name() local
63 elen = WPA_GET_BE16(data + 2); in get_wps_name()
67 if (elen > data_len) in get_wps_name()
72 size_t n = (elen < name_len) ? elen : name_len; in get_wps_name()
77 data += elen; in get_wps_name()
78 data_len -= elen; in get_wps_name()
124 u8 id, elen; in ie_to_string() local
128 elen = *ie++; in ie_to_string()
131 if (elen > ie_len) in ie_to_string()
134 if (id == WLAN_EID_VENDOR_SPECIFIC && elen >= 4) { in ie_to_string()
[all …]
Dieee802_11_shared.c649 const int elen = 2 + 1 + 10 + 5 + 1; in hostapd_update_time_adv() local
661 hapd->time_adv = wpabuf_alloc(elen); in hostapd_update_time_adv()
664 pos = wpabuf_put(hapd->time_adv, elen); in hostapd_update_time_adv()
838 size_t elen; in hostapd_eid_owe_trans() local
847 elen = hostapd_eid_owe_trans_len(hapd); in hostapd_eid_owe_trans()
848 if (len < elen) { in hostapd_eid_owe_trans()
855 *pos++ = elen - 2; in hostapd_eid_owe_trans()
/third_party/node/deps/cares/src/lib/
Dares_expand_string.c43 } elen; in ares_expand_string() local
48 elen.uns = *encoded; in ares_expand_string()
49 if (encoded+elen.sig+1 > abuf+alen) in ares_expand_string()
54 *s = ares_malloc(elen.uns+1); in ares_expand_string()
58 strncpy((char *)q, (char *)encoded, elen.uns); in ares_expand_string()
59 q[elen.uns] = '\0'; in ares_expand_string()
63 *enclen = (long)(elen.sig+1); in ares_expand_string()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dwifi_display.c390 u16 elen; in wifi_display_subelem_hex() local
402 elen = WPA_GET_BE16(buf + i + 1); in wifi_display_subelem_hex()
403 if (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN + elen > buflen) in wifi_display_subelem_hex()
415 if (elen > 1000) in wifi_display_subelem_hex()
417 subelem = os_zalloc(2 * elen + 1); in wifi_display_subelem_hex()
420 wpa_snprintf_hex(subelem, 2 * elen + 1, in wifi_display_subelem_hex()
423 elen); in wifi_display_subelem_hex()
427 i += elen + WIFI_DISPLAY_SUBELEM_HEADER_LEN; in wifi_display_subelem_hex()
Dmbo.c468 u8 id, elen; in wpas_mbo_ie_trans_req() local
480 elen = *pos++; in wpas_mbo_ie_trans_req()
483 if (elen > len) in wpas_mbo_ie_trans_req()
488 if (elen != 1) in wpas_mbo_ie_trans_req()
499 if (elen != 1) in wpas_mbo_ie_trans_req()
506 if (elen != 2) in wpas_mbo_ie_trans_req()
541 pos += elen; in wpas_mbo_ie_trans_req()
542 len -= elen; in wpas_mbo_ie_trans_req()
560 id, elen, len); in wpas_mbo_ie_trans_req()
Dwnm_sta.c440 u8 id, u8 elen, const u8 *pos) in wnm_parse_neighbor_report_elem() argument
444 if (elen < 2 + 2) { in wnm_parse_neighbor_report_elem()
453 if (elen < 2) { in wnm_parse_neighbor_report_elem()
462 if (elen < 1) { in wnm_parse_neighbor_report_elem()
471 if (elen < 10) { in wnm_parse_neighbor_report_elem()
481 if (elen < 8) { in wnm_parse_neighbor_report_elem()
492 if (elen < 1) { in wnm_parse_neighbor_report_elem()
502 rep->meas_pilot->subelem_len = elen - 1; in wnm_parse_neighbor_report_elem()
503 os_memcpy(rep->meas_pilot->subelems, pos + 1, elen - 1); in wnm_parse_neighbor_report_elem()
506 if (elen < 5) { in wnm_parse_neighbor_report_elem()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dwifi_display.c390 u16 elen; in wifi_display_subelem_hex() local
402 elen = WPA_GET_BE16(buf + i + 1); in wifi_display_subelem_hex()
403 if (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN + elen > buflen) in wifi_display_subelem_hex()
415 if (elen > 1000) in wifi_display_subelem_hex()
417 subelem = os_zalloc(2 * elen + 1); in wifi_display_subelem_hex()
420 wpa_snprintf_hex(subelem, 2 * elen + 1, in wifi_display_subelem_hex()
423 elen); in wifi_display_subelem_hex()
427 i += elen + WIFI_DISPLAY_SUBELEM_HEADER_LEN; in wifi_display_subelem_hex()
Dmbo.c438 u8 id, elen; in wpas_mbo_ie_trans_req() local
450 elen = *pos++; in wpas_mbo_ie_trans_req()
453 if (elen > len) in wpas_mbo_ie_trans_req()
458 if (elen != 1) in wpas_mbo_ie_trans_req()
469 if (elen != 1) in wpas_mbo_ie_trans_req()
476 if (elen != 2) in wpas_mbo_ie_trans_req()
511 pos += elen; in wpas_mbo_ie_trans_req()
512 len -= elen; in wpas_mbo_ie_trans_req()
530 id, elen, len); in wpas_mbo_ie_trans_req()
Dwnm_sta.c423 u8 id, u8 elen, const u8 *pos) in wnm_parse_neighbor_report_elem() argument
427 if (elen < 2 + 2) { in wnm_parse_neighbor_report_elem()
436 if (elen < 2) { in wnm_parse_neighbor_report_elem()
445 if (elen < 1) { in wnm_parse_neighbor_report_elem()
454 if (elen < 10) { in wnm_parse_neighbor_report_elem()
464 if (elen < 8) { in wnm_parse_neighbor_report_elem()
475 if (elen < 1) { in wnm_parse_neighbor_report_elem()
485 rep->meas_pilot->subelem_len = elen - 1; in wnm_parse_neighbor_report_elem()
486 os_memcpy(rep->meas_pilot->subelems, pos + 1, elen - 1); in wnm_parse_neighbor_report_elem()
489 if (elen < 5) { in wnm_parse_neighbor_report_elem()
[all …]
Drrm.c814 u8 elen = ies[1]; in wpas_beacon_rep_add_frame_body() local
816 if (2 + elen > buf + buf_len - pos || in wpas_beacon_rep_add_frame_body()
817 2 + elen > rem_len) in wpas_beacon_rep_add_frame_body()
821 *pos++ = elen; in wpas_beacon_rep_add_frame_body()
822 os_memcpy(pos, ies + 2, elen); in wpas_beacon_rep_add_frame_body()
823 pos += elen; in wpas_beacon_rep_add_frame_body()
824 rem_len -= 2 + elen; in wpas_beacon_rep_add_frame_body()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_leap.c342 size_t elen[5], password_len; in eap_leap_getKey() local
380 elen[0] = 16; in eap_leap_getKey()
382 elen[1] = LEAP_CHALLENGE_LEN; in eap_leap_getKey()
384 elen[2] = LEAP_RESPONSE_LEN; in eap_leap_getKey()
386 elen[3] = LEAP_CHALLENGE_LEN; in eap_leap_getKey()
388 elen[4] = LEAP_RESPONSE_LEN; in eap_leap_getKey()
389 md5_vector(5, addr, elen, key); in eap_leap_getKey()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_leap.c342 size_t elen[5], password_len; in eap_leap_getKey() local
380 elen[0] = 16; in eap_leap_getKey()
382 elen[1] = LEAP_CHALLENGE_LEN; in eap_leap_getKey()
384 elen[2] = LEAP_RESPONSE_LEN; in eap_leap_getKey()
386 elen[3] = LEAP_CHALLENGE_LEN; in eap_leap_getKey()
388 elen[4] = LEAP_RESPONSE_LEN; in eap_leap_getKey()
389 md5_vector(5, addr, elen, key); in eap_leap_getKey()
/third_party/curl/lib/
Drand.c51 size_t elen = strlen(force_entropy); in randit() local
53 size_t min = elen < clen ? elen : clen; in randit()
/third_party/libwebsockets/lib/tls/mbedtls/
Dlws-genrsa.c515 uint8_t *elen; local
518 elen = p;
539 *elen = (uint8_t)m;
541 *elen++ = 0x82;
542 *elen++ = (uint8_t)(m >> 8);
543 *elen = (uint8_t)(m & 0xff);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/
Dradius.c991 size_t elen[3]; in decrypt_ms_key() local
1020 elen[0] = secret_len; in decrypt_ms_key()
1023 elen[1] = MD5_MAC_LEN; in decrypt_ms_key()
1025 elen[2] = 2; /* Salt */ in decrypt_ms_key()
1028 elen[1] = MD5_MAC_LEN; in decrypt_ms_key()
1030 if (md5_vector(first ? 3 : 2, addr, elen, hash) < 0) { in decrypt_ms_key()
1062 u8 *ebuf, size_t *elen) in encrypt_ms_key() argument
1079 *elen = len; in encrypt_ms_key()
1197 size_t elen; in radius_msg_add_mppe_keys() local
1222 secret_len, pos, &elen); in radius_msg_add_mppe_keys()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/
Dradius.c991 size_t elen[3]; in decrypt_ms_key() local
1020 elen[0] = secret_len; in decrypt_ms_key()
1023 elen[1] = MD5_MAC_LEN; in decrypt_ms_key()
1025 elen[2] = 2; /* Salt */ in decrypt_ms_key()
1028 elen[1] = MD5_MAC_LEN; in decrypt_ms_key()
1030 if (md5_vector(first ? 3 : 2, addr, elen, hash) < 0) { in decrypt_ms_key()
1062 u8 *ebuf, size_t *elen) in encrypt_ms_key() argument
1079 *elen = len; in encrypt_ms_key()
1197 size_t elen; in radius_msg_add_mppe_keys() local
1222 secret_len, pos, &elen); in radius_msg_add_mppe_keys()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_attr_parse.c95 u8 id, elen; in wps_parse_vendor_ext_wfa() local
99 elen = *pos++; in wps_parse_vendor_ext_wfa()
100 if (elen > end - pos) in wps_parse_vendor_ext_wfa()
102 if (wps_set_vendor_ext_wfa_subelem(attr, id, elen, pos) < 0) in wps_parse_vendor_ext_wfa()
104 pos += elen; in wps_parse_vendor_ext_wfa()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_attr_parse.c95 u8 id, elen; in wps_parse_vendor_ext_wfa() local
99 elen = *pos++; in wps_parse_vendor_ext_wfa()
100 if (elen > end - pos) in wps_parse_vendor_ext_wfa()
102 if (wps_set_vendor_ext_wfa_subelem(attr, id, elen, pos) < 0) in wps_parse_vendor_ext_wfa()
104 pos += elen; in wps_parse_vendor_ext_wfa()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_fast.c184 u8 id, elen; in eap_fast_session_ticket_cb() local
187 elen = *pos++; in eap_fast_session_ticket_cb()
188 if (elen > end - pos) in eap_fast_session_ticket_cb()
195 if (elen != EAP_FAST_PAC_KEY_LEN) { in eap_fast_session_ticket_cb()
198 elen); in eap_fast_session_ticket_cb()
208 if (elen != 4) { in eap_fast_session_ticket_cb()
211 elen); in eap_fast_session_ticket_cb()
219 identity_len = elen; in eap_fast_session_ticket_cb()
223 pos += elen; in eap_fast_session_ticket_cb()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_fast.c184 u8 id, elen; in eap_fast_session_ticket_cb() local
187 elen = *pos++; in eap_fast_session_ticket_cb()
188 if (elen > end - pos) in eap_fast_session_ticket_cb()
195 if (elen != EAP_FAST_PAC_KEY_LEN) { in eap_fast_session_ticket_cb()
198 elen); in eap_fast_session_ticket_cb()
208 if (elen != 4) { in eap_fast_session_ticket_cb()
211 elen); in eap_fast_session_ticket_cb()
219 identity_len = elen; in eap_fast_session_ticket_cb()
223 pos += elen; in eap_fast_session_ticket_cb()
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpgstpay.c497 guint elen; in gst_rtp_gst_pay_send_event() local
506 elen = strlen (estr); in gst_rtp_gst_pay_send_event()
508 elen++; in gst_rtp_gst_pay_send_event()
509 outbuf = make_data_buffer (rtpgstpay, estr, elen); in gst_rtp_gst_pay_send_event()

123