/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
wpabuf.c | 101 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); 103 wpabuf_put_data(buf, wpabuf_head(src), wpabuf_len(src)); 123 void *tmp = wpabuf_mhead_u8(buf) + wpabuf_len(buf); 150 len += wpabuf_len(a); 152 len += wpabuf_len(b); 189 blen = wpabuf_len(buf); 207 void *tmp = wpabuf_mhead_u8(buf) + wpabuf_len(buf);
|
wpabuf.h | 55 * wpabuf_len - Get the current length of a wpabuf buffer data 59 static inline size_t wpabuf_len(const struct wpabuf *buf) function 142 wpabuf_put_data(dst, wpabuf_head(src), wpabuf_len(src));
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
wps_attr_build.c | 38 wpabuf_put_be16(msg, wpabuf_len(pubkey)); 119 len[0] = wpabuf_len(wps->last_msg); 121 len[1] = wpabuf_len(msg); 219 wpabuf_len(msg), hash); 238 pad_len = block_size - wpabuf_len(plain) % block_size; 242 wpabuf_put_be16(msg, block_size + wpabuf_len(plain)); 250 if (aes_128_cbc_encrypt(wps->keywrapkey, iv, data, wpabuf_len(plain)))
|
wps_common.c | 99 len[0] = wpabuf_len(dh_shared); 174 wpabuf_len(decrypted))) { 182 pos = wpabuf_head_u8(decrypted) + wpabuf_len(decrypted) - 1; 184 if (pad > wpabuf_len(decrypted)) {
|
wps_attr_process.c | 45 len[0] = wpabuf_len(wps->last_msg); 47 len[1] = wpabuf_len(msg) - 4 - WPS_AUTHENTICATOR_LEN; 72 len = wpabuf_len(msg) - 4 - WPS_KWA_LEN;
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
eap_common.c | 46 if (wpabuf_len(msg) < sizeof(*hdr)) { 52 if (len < sizeof(*hdr) + 1 || len > wpabuf_len(msg)) { 150 if (wpabuf_len(msg) < sizeof(*hdr)) 152 hdr->length = host_to_be16(wpabuf_len(msg)); 165 if (wpabuf_len(msg) < sizeof(*eap)) 180 if (wpabuf_len(msg) < sizeof(struct eap_hdr) + 1)
|
eap_sim_common.c | 178 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN || 180 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN) 183 tmp = os_malloc(wpabuf_len(req)); 188 len[0] = wpabuf_len(req); 193 os_memcpy(tmp, wpabuf_head(req), wpabuf_len(req)); 196 tmp, wpabuf_len(req)); 373 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN || 375 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN) 378 tmp = os_malloc(wpabuf_len(req)); 383 len[0] = wpabuf_len(req) [all...] |
ikev2_common.c | 469 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; 474 os_memcpy(pos, wpabuf_head(sign_msg), wpabuf_len(sign_msg)); 475 pos += wpabuf_len(sign_msg); 593 WPA_PUT_BE32(hdr->length, wpabuf_len(msg)); 647 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; 655 wpabuf_len(plain)) < 0) 669 wpabuf_len(msg) - integ_alg->hash_len, icv);
|
eap_ikev2_common.c | 114 wpabuf_len(msg) - icv_len, icv) < 0) {
|
eap_fast_common.c | 45 eap_fast_put_tlv_hdr(buf, type, wpabuf_len(data)); 59 e = wpabuf_alloc(sizeof(struct pac_tlv_hdr) + wpabuf_len(buf));
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
eap_peap.c | 117 e = wpabuf_alloc(sizeof(*tlv) + wpabuf_len(buf)); 127 tlv->length = host_to_be16(wpabuf_len(buf)); 253 req_len = wpabuf_len(buf); 283 buf = eap_msg_alloc(EAP_VENDOR_MICROSOFT, 0x21, wpabuf_len(buf1), 293 req_len = wpabuf_len(buf); 380 len += wpabuf_len(data->soh_response); 454 wpabuf_len(buf)); 921 if (wpabuf_len(in_data) > sizeof(*hdr) && *pos == EAP_TYPE_NAK) { 922 left = wpabuf_len(in_data) - sizeof(*hdr); 1039 in_len = wpabuf_len(in_buf) [all...] |
eap_tls_common.c | 123 send_len = wpabuf_len(data->out_buf) - data->out_used; 144 wpabuf_put_be32(req, wpabuf_len(data->out_buf)); 150 if (data->out_used == wpabuf_len(data->out_buf)) { 161 (unsigned long) wpabuf_len(data->out_buf) - 248 wpabuf_len(data->in_buf), 384 (unsigned long) wpabuf_len(respData), flags);
|
eap_tnc.c | 138 wpabuf_head(req), wpabuf_len(req)); 196 send_len = wpabuf_len(data->out_buf) - data->out_used; 216 wpabuf_put_be32(req, wpabuf_len(data->out_buf)); 222 if (data->out_used == wpabuf_len(data->out_buf)) { 232 (unsigned long) wpabuf_len(data->out_buf) - 326 wpabuf_len(inbuf)); 491 wpabuf_head(data->in_buf), wpabuf_len(data->in_buf));
|
eap_wsc.c | 179 send_len = wpabuf_len(data->out_buf) - data->out_used; 202 wpabuf_put_be16(req, wpabuf_len(data->out_buf)); 208 if (data->out_used == wpabuf_len(data->out_buf)) { 219 (unsigned long) wpabuf_len(data->out_buf) -
|
eap_ikev2.c | 145 send_len = wpabuf_len(data->out_buf) - data->out_used; 180 wpabuf_put_be32(req, wpabuf_len(data->out_buf)); 188 size_t len = wpabuf_len(req); 195 if (data->out_used == wpabuf_len(data->out_buf)) { 205 (unsigned long) wpabuf_len(data->out_buf) -
|
eap_ttls.c | 126 avp = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(resp) + 4); 133 wpabuf_len(resp)); 134 os_memcpy(pos, wpabuf_head(resp), wpabuf_len(resp)); 135 pos += wpabuf_len(resp); 471 req_len = wpabuf_len(buf); 1137 in_len = wpabuf_len(in_buf); 1147 wpabuf_len(data->pending_phase2_eap_resp)); [all...] |
eap_sake.c | 223 wpabuf_head(msg), wpabuf_len(msg), mic, mic)) 372 wpabuf_head(respData), wpabuf_len(respData), 409 wpabuf_head(respData), wpabuf_len(respData),
|
eap_pax.c | 115 wpabuf_mhead(req), wpabuf_len(req) - EAP_PAX_ICV_LEN, 162 wpabuf_mhead(req), wpabuf_len(req) - EAP_PAX_ICV_LEN, 274 wpabuf_len(respData) - EAP_PAX_ICV_LEN, 423 wpabuf_len(respData) - EAP_PAX_ICV_LEN, NULL, 0, NULL, 0,
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
eap_tnc.c | 101 send_len = wpabuf_len(data->out_buf) - data->out_used; 121 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); 130 if (data->out_used == wpabuf_len(data->out_buf)) { 140 (unsigned long) wpabuf_len(data->out_buf) - 316 wpabuf_len(data->in_buf)); 402 wpabuf_head(resp), wpabuf_len(resp));
|
eap_ikev2.c | 149 send_len = wpabuf_len(data->out_buf) - data->out_used; 190 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); 198 size_t len = wpabuf_len(resp); 208 if (data->out_used == wpabuf_len(data->out_buf)) { 244 (unsigned long) wpabuf_len(data->out_buf) -
|
eap_peap.c | 594 e = wpabuf_alloc(sizeof(*tlv) + wpabuf_len(buf)); 604 tlv->length = host_to_be16(wpabuf_len(buf)); 667 wpabuf_len(buf), 769 " Phase 2", (unsigned long) wpabuf_len(in_data)); 782 if (wpabuf_len(in_data) == 0 && sm->workaround && 794 } else if (wpabuf_len(in_data) == 0) { 810 if (wpabuf_len(in_decrypted) == 5 && hdr->code == EAP_CODE_REQUEST && 817 if (wpabuf_len(in_decrypted) >= 5 && hdr->code == EAP_CODE_REQUEST && 825 wpabuf_len(in_decrypted)); 835 wpabuf_len(in_decrypted)) [all...] |
eap_leap.c | 103 challenge_len, (unsigned long) wpabuf_len(reqData)); 226 response_len, (unsigned long) wpabuf_len(reqData)); 292 if (wpabuf_len(reqData) < sizeof(*eap) || 293 be_to_host16(eap->length) > wpabuf_len(reqData)) {
|
eap_wsc.c | 178 send_len = wpabuf_len(data->out_buf) - data->out_used; 198 wpabuf_put_be16(resp, wpabuf_len(data->out_buf)); 207 if (data->out_used == wpabuf_len(data->out_buf)) { 224 (unsigned long) wpabuf_len(data->out_buf) -
|
eap_sake.c | 277 wpabuf_head(resp), wpabuf_len(resp), rpos, 321 wpabuf_head(reqData), wpabuf_len(reqData), 350 wpabuf_head(resp), wpabuf_len(resp), rpos,
|
ikev2.c | 96 pad_len = data->dh->prime_len - wpabuf_len(shared); 111 len[1] = wpabuf_len(shared); 772 (unsigned long) wpabuf_len(buf)); 774 if (wpabuf_len(buf) < sizeof(*hdr)) { 781 end = wpabuf_head_u8(buf) + wpabuf_len(buf); 801 if (length != wpabuf_len(buf)) { 804 (unsigned long) wpabuf_len(buf)); 977 wpabuf_put(msg, data->dh->prime_len - wpabuf_len(pv)); [all...] |