Home
last modified time | relevance | path

Searched refs:attr_len (Results 1 – 22 of 22) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Ddpp_reconfig.c47 size_t attr_len; in dpp_build_reconfig_announcement() local
92 attr_len = 4 + SHA256_MAC_LEN; in dpp_build_reconfig_announcement()
93 attr_len += 4 + 2; in dpp_build_reconfig_announcement()
94 attr_len += 4 + wpabuf_len(a_nonce); in dpp_build_reconfig_announcement()
95 attr_len += 4 + wpabuf_len(e_id); in dpp_build_reconfig_announcement()
96 msg = dpp_alloc_msg(DPP_PA_RECONFIG_ANNOUNCEMENT, attr_len); in dpp_build_reconfig_announcement()
133 size_t attr_len; in dpp_reconfig_build_req() local
136 attr_len = 4 + 1 + 4 + 1 + 4 + os_strlen(auth->conf->connector) + in dpp_reconfig_build_req()
138 msg = dpp_alloc_msg(DPP_PA_RECONFIG_AUTH_REQ, attr_len); in dpp_reconfig_build_req()
318 size_t clear_len, attr_len, len[2]; in dpp_reconfig_build_resp() local
[all …]
Ddpp_auth.c71 size_t len[2], siv_len, attr_len; in dpp_auth_build_req() local
75 attr_len = 2 * (4 + SHA256_MAC_LEN) + 4 + (pi ? wpabuf_len(pi) : 0) + in dpp_auth_build_req()
78 attr_len += 4 + 2; in dpp_auth_build_req()
80 attr_len += 5; in dpp_auth_build_req()
84 attr_len += 5; in dpp_auth_build_req()
86 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_REQ, attr_len); in dpp_auth_build_req()
250 size_t len[2], siv_len, attr_len; in dpp_auth_build_resp() local
258 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_resp()
261 attr_len += 5; in dpp_auth_build_resp()
265 attr_len += 5; in dpp_auth_build_resp()
[all …]
Ddpp_pkex.c37 size_t attr_len; in dpp_pkex_build_exchange_req() local
80 attr_len = 4 + 2; in dpp_pkex_build_exchange_req()
83 attr_len += 4 + 1; in dpp_pkex_build_exchange_req()
86 attr_len += 4 + os_strlen(pkex->identifier); in dpp_pkex_build_exchange_req()
87 attr_len += 4 + 2 * curve->prime_len; in dpp_pkex_build_exchange_req()
89 DPP_PA_PKEX_V1_EXCHANGE_REQ, attr_len); in dpp_pkex_build_exchange_req()
218 size_t attr_len; in dpp_pkex_build_exchange_resp() local
223 attr_len = 4 + 1; in dpp_pkex_build_exchange_resp()
226 attr_len += 4 + 1; in dpp_pkex_build_exchange_resp()
229 attr_len += 4 + os_strlen(pkex->identifier); in dpp_pkex_build_exchange_resp()
[all …]
Ddpp.h538 size_t attr_len);
541 const u8 *attr_start, size_t attr_len);
549 const u8 *attr_start, size_t attr_len);
568 size_t attr_len);
573 const u8 *attr_start, size_t attr_len);
579 size_t attr_len,
728 const u8 *attr_start, size_t attr_len);
731 const u8 *attr_start, size_t attr_len);
733 const u8 *attr_start, size_t attr_len);
Ddpp.c664 size_t attr_len; in dpp_build_conf_req_attr() local
680 attr_len = 4 + clear_len + AES_BLOCK_SIZE; in dpp_build_conf_req_attr()
683 attr_len += 5; in dpp_build_conf_req_attr()
685 msg = wpabuf_alloc(attr_len); in dpp_build_conf_req_attr()
1699 size_t clear_len, attr_len; in dpp_build_conf_resp() local
1750 attr_len = 4 + 1 + 4 + clear_len + AES_BLOCK_SIZE; in dpp_build_conf_resp()
1753 attr_len += 5; in dpp_build_conf_resp()
1755 msg = wpabuf_alloc(attr_len); in dpp_build_conf_resp()
1887 size_t attr_len) in dpp_conf_req_rx() argument
1906 if (dpp_check_attrs(attr_start, attr_len) < 0) { in dpp_conf_req_rx()
[all …]
Dieee802_11_common.c2032 size_t mbo_add_ie(u8 *buf, size_t len, const u8 *attr, size_t attr_len) in mbo_add_ie() argument
2038 if (len < 6 + attr_len) { in mbo_add_ie()
2041 len, attr_len); in mbo_add_ie()
2046 *buf++ = attr_len + 4; in mbo_add_ie()
2050 os_memcpy(buf, attr, attr_len); in mbo_add_ie()
2052 return 6 + attr_len; in mbo_add_ie()
Dieee802_11_common.h251 size_t mbo_add_ie(u8 *buf, size_t len, const u8 *attr, size_t attr_len);
Ddpp_crypto.c2128 size_t attr_len; in dpp_validate_csr() local
2144 &attr_len, &attr_type); in dpp_validate_csr()
2161 cp = base64_decode((const char *) attr, attr_len, &cp_len); in dpp_validate_csr()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Ddpp.c1681 size_t len[2], siv_len, attr_len; in dpp_auth_build_req() local
1685 attr_len = 2 * (4 + SHA256_MAC_LEN) + 4 + (pi ? wpabuf_len(pi) : 0) + in dpp_auth_build_req()
1688 attr_len += 4 + 2; in dpp_auth_build_req()
1690 attr_len += 5; in dpp_auth_build_req()
1694 attr_len += 5; in dpp_auth_build_req()
1696 msg = dpp_alloc_msg(DPP_PA_AUTHENTICATION_REQ, attr_len); in dpp_auth_build_req()
1858 size_t len[2], siv_len, attr_len; in dpp_auth_build_resp() local
1865 attr_len = 4 + 1 + 2 * (4 + SHA256_MAC_LEN) + in dpp_auth_build_resp()
1868 attr_len += 5; in dpp_auth_build_resp()
1872 attr_len += 5; in dpp_auth_build_resp()
[all …]
Ddpp.h410 size_t attr_len);
413 const u8 *attr_start, size_t attr_len);
417 const u8 *attr_start, size_t attr_len);
434 size_t attr_len);
439 const u8 *attr_start, size_t attr_len);
Dieee802_11_common.c1697 size_t mbo_add_ie(u8 *buf, size_t len, const u8 *attr, size_t attr_len) in mbo_add_ie() argument
1703 if (len < 6 + attr_len) { in mbo_add_ie()
1706 len, attr_len); in mbo_add_ie()
1711 *buf++ = attr_len + 4; in mbo_add_ie()
1715 os_memcpy(buf, attr, attr_len); in mbo_add_ie()
1717 return 6 + attr_len; in mbo_add_ie()
Dieee802_11_common.h210 size_t mbo_add_ie(u8 *buf, size_t len, const u8 *attr, size_t attr_len);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_sim_common.c1055 int attr_len = 2 + len; in eap_sim_msg_add_full() local
1062 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full()
1063 attr_len += pad_len; in eap_sim_msg_add_full()
1064 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add_full()
1068 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add_full()
1079 int attr_len = 4 + len; in eap_sim_msg_add() local
1086 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add()
1087 attr_len += pad_len; in eap_sim_msg_add()
1088 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add()
1092 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_sim_common.c1055 int attr_len = 2 + len; in eap_sim_msg_add_full() local
1062 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full()
1063 attr_len += pad_len; in eap_sim_msg_add_full()
1064 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add_full()
1068 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add_full()
1079 int attr_len = 4 + len; in eap_sim_msg_add() local
1086 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add()
1087 attr_len += pad_len; in eap_sim_msg_add()
1088 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add()
1092 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Drobust_av.c1172 u8 attr_len, const u8 *attr_data) in wpas_fill_dscp_policy() argument
1176 if (attr_len < 4) { in wpas_fill_dscp_policy()
1179 attr_len); in wpas_fill_dscp_policy()
1187 if (attr_len < 3) { in wpas_fill_dscp_policy()
1190 attr_len); in wpas_fill_dscp_policy()
1199 if (attr_len < 1) { in wpas_fill_dscp_policy()
1202 attr_len); in wpas_fill_dscp_policy()
1206 policy->frame_classifier_len = attr_len; in wpas_fill_dscp_policy()
1209 if (attr_len < 1) { in wpas_fill_dscp_policy()
1212 attr_len); in wpas_fill_dscp_policy()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/
Dp2p_parse.c428 u16 attr_len; in p2p_parse_p2p_ie() local
436 attr_len = WPA_GET_LE16(pos); in p2p_parse_p2p_ie()
439 id, attr_len); in p2p_parse_p2p_ie()
440 if (attr_len > end - pos) { in p2p_parse_p2p_ie()
443 attr_len, (int) (end - pos)); in p2p_parse_p2p_ie()
447 if (p2p_parse_attribute(id, pos, attr_len, msg)) in p2p_parse_p2p_ie()
449 pos += attr_len; in p2p_parse_p2p_ie()
Dp2p_build.c479 size_t *total_len, u8 *attr_len) in p2p_buf_add_service_info() argument
589 WPA_PUT_LE16(attr_len, (u16) *total_len); in p2p_buf_add_service_info()
602 u8 *pos, *attr_len, *ie_len = NULL; in p2p_buf_add_service_instance() local
626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance()
627 WPA_PUT_LE16(attr_len, (u16) total_len); in p2p_buf_add_service_instance()
634 &ie_len, &pos, &total_len, attr_len); in p2p_buf_add_service_instance()
652 attr_len)) in p2p_buf_add_service_instance()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/
Dp2p_build.c479 size_t *total_len, u8 *attr_len) in p2p_buf_add_service_info() argument
589 WPA_PUT_LE16(attr_len, (u16) *total_len); in p2p_buf_add_service_info()
602 u8 *pos, *attr_len, *ie_len = NULL; in p2p_buf_add_service_instance() local
626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance()
627 WPA_PUT_LE16(attr_len, (u16) total_len); in p2p_buf_add_service_instance()
634 &ie_len, &pos, &total_len, attr_len); in p2p_buf_add_service_instance()
652 attr_len)) in p2p_buf_add_service_instance()
Dp2p_parse.c428 u16 attr_len; in p2p_parse_p2p_ie() local
436 attr_len = WPA_GET_LE16(pos); in p2p_parse_p2p_ie()
439 id, attr_len); in p2p_parse_p2p_ie()
440 if (attr_len > end - pos) { in p2p_parse_p2p_ie()
443 attr_len, (int) (end - pos)); in p2p_parse_p2p_ie()
447 if (p2p_parse_attribute(id, pos, attr_len, msg)) in p2p_parse_p2p_ie()
449 pos += attr_len; in p2p_parse_p2p_ie()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dwps_hostapd.c300 size_t attr_len) in hapd_new_ap_event() argument
302 size_t blen = attr_len * 2 + 1; in hapd_new_ap_event()
305 wpa_snprintf_hex(buf, blen, attr, attr_len); in hapd_new_ap_event()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dwps_hostapd.c340 size_t attr_len) in hapd_new_ap_event() argument
342 size_t blen = attr_len * 2 + 1; in hapd_new_ap_event()
345 wpa_snprintf_hex(buf, blen, attr, attr_len); in hapd_new_ap_event()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_nl80211.c295 size_t ack_len, attr_len; in ack_handler_cookie() local
306 attr_len = nlmsg_hdr(msg)->nlmsg_len - ack_len; in ack_handler_cookie()
311 nla_parse(tb, NLMSGERR_ATTR_MAX, attrs, attr_len, NULL); in ack_handler_cookie()