Home
last modified time | relevance | path

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

/hal_espressif-latest/components/wpa_supplicant/include/utils/
Dwpabuf.h42 void * wpabuf_put(struct wpabuf *buf, size_t len);
110 u8 *pos = wpabuf_put(buf, 1); in wpabuf_put_u8()
116 u8 *pos = wpabuf_put(buf, 2); in wpabuf_put_le16()
122 u8 *pos = wpabuf_put(buf, 4); in wpabuf_put_le32()
128 u8 *pos = wpabuf_put(buf, 2); in wpabuf_put_be16()
134 u8 *pos = wpabuf_put(buf, 3); in wpabuf_put_be24()
140 u8 *pos = wpabuf_put(buf, 4); in wpabuf_put_be32()
148 os_memcpy(wpabuf_put(buf, len), data, len); in wpabuf_put_data()
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Ddh_groups.c1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) in dh_init()
1235 wpabuf_put(pv, pv_len); in dh_init()
1272 wpabuf_put(shared, shared_len); in dh_derive_shared()
Dtls_internal.c580 wpabuf_put(buf, res); in tls_connection_encrypt()
599 wpabuf_put(buf, res); in tls_connection_encrypt()
645 wpabuf_put(buf, res); in tls_connection_decrypt2()
/hal_espressif-latest/components/wpa_supplicant/src/wps/
Dwps_attr_build.c230 len = wpabuf_put(msg, 2); /* to be filled */ in wps_build_wfa_ext()
265 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext()
410 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings()
415 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings()
419 data = wpabuf_put(msg, 0); in wps_build_encr_settings()
Dwps_common.c699 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN), in wps_nfc_token_gen()
740 len = wpabuf_put(msg, 2); in wps_build_nfc_handover_req()
821 len = wpabuf_put(msg, 2); in wps_build_nfc_handover_sel()
Dwps.c505 len = wpabuf_put(ie, 1); in wps_build_assoc_req_ie()
539 len = wpabuf_put(ie, 1); in wps_build_assoc_resp_ie()
Dwps_enrollee.c58 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash()
74 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_e_hash()
368 start = wpabuf_put(plain, 0); in wps_build_ap_settings()
374 end = wpabuf_put(plain, 0); in wps_build_ap_settings()
Dwps_registrar.c1492 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash()
1508 hash = wpabuf_put(msg, SHA256_MAC_LEN); in wps_build_r_hash()
/hal_espressif-latest/components/wpa_supplicant/src/common/
Dsae_pk.c497 pos = wpabuf_put(sig_data, 2 * tmp->prime_len); in sae_pk_hash_sig_data()
503 pos = wpabuf_put(sig_data, 2 * tmp->prime_len); in sae_pk_hash_sig_data()
511 wpabuf_put(sig_data, tmp->prime_len), in sae_pk_hash_sig_data()
515 wpabuf_put(sig_data, tmp->prime_len), in sae_pk_hash_sig_data()
Dmbo.c488 len = wpabuf_put(ie, 1); in wpas_mbo_scan_ie()
505 *len = (u8 *) wpabuf_put(ie, 0) - len - 1; in wpas_mbo_scan_ie()
Dsae.c1623 pos = wpabuf_put(buf, sae->tmp->prime_len); in sae_write_commit()
1632 pos = wpabuf_put(buf, 2 * sae->tmp->prime_len); in sae_write_commit()
1644 pos = wpabuf_put(buf, sae->tmp->prime_len); in sae_write_commit()
2231 sc = wpabuf_put(buf, 0); in sae_write_confirm()
2241 wpabuf_put(buf, hash_len))) { in sae_write_confirm()
2250 wpabuf_put(buf, hash_len))) { in sae_write_confirm()
Dwnm_sta.c1093 wpabuf_put(buf, 0), in wnm_send_bss_transition_mgmt_query()
1100 wpabuf_put(buf, ret); in wnm_send_bss_transition_mgmt_query()
Ddpp.c193 pos = wpabuf_put(buf, len); in dpp_get_pubkey_point()
1011 attr_start = wpabuf_put(msg, 0); in dpp_auth_build_req()
1095 attr_end = wpabuf_put(msg, 0); in dpp_auth_build_req()
1171 attr_start = wpabuf_put(msg, 0); in dpp_auth_build_resp()
1190 attr_end = wpabuf_put(msg, 0); in dpp_auth_build_resp()
1728 wrapped = wpabuf_put(msg, wpabuf_len(clear) + AES_BLOCK_SIZE); in dpp_build_conf_req_attr()
2701 attr_start = wpabuf_put(msg, 0); in dpp_auth_build_conf()
2763 attr_end = wpabuf_put(msg, 0); in dpp_auth_build_conf()
2779 wrapped_i_auth = wpabuf_put(msg, i_auth_len + AES_BLOCK_SIZE); in dpp_auth_build_conf()
2810 wrapped_r_nonce = wpabuf_put(msg, r_nonce_len + AES_BLOCK_SIZE); in dpp_auth_build_conf()
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/utils/
Dwpabuf.c219 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put() function
293 memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap_mschapv2.c156 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_challenge_reply()
172 r = wpabuf_put(resp, sizeof(*r)); in eap_mschapv2_challenge_reply()
503 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_change_password()
507 cp = wpabuf_put(resp, sizeof(*cp)); in eap_mschapv2_change_password()
Deap_common.c141 hdr = wpabuf_put(buf, sizeof(*hdr)); in eap_msg_alloc()
Deap_peap.c333 addr[0] = wpabuf_put(buf, 0); in eap_tlv_add_cryptobinding()
349 mac = wpabuf_put(buf, 20); /* Compound_MAC */ in eap_tlv_add_cryptobinding()
643 tlv = wpabuf_put(e, sizeof(*tlv)); in eap_peapv2_tlv_eap_payload()
878 nhdr = wpabuf_put(nmsg, sizeof(*nhdr)); in eap_peap_decrypt()
1001 rhdr = wpabuf_put(resp, sizeof(*rhdr)); in eap_peap_decrypt()
1026 rhdr = wpabuf_put(resp, sizeof(*rhdr)); in eap_peap_decrypt()
Deap_fast.c504 nak = wpabuf_put(buf, sizeof(*nak)); in eap_fast_tlv_nak()
522 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_tlv_result()
544 ack = wpabuf_put(buf, sizeof(*ack)); in eap_fast_tlv_pac_ack()
822 pos = wpabuf_put(resp, sizeof(struct eap_tlv_crypto_binding_tlv)); in eap_fast_process_crypto_binding()
1155 pos = wpabuf_put(tmp, 0); in eap_fast_pac_request()
1157 wpabuf_put(tmp, pos2 - pos); in eap_fast_pac_request()
Deap_ttls.c200 wpabuf_put(msg, pos - avp); in eap_ttls_avp_encapsulate()
493 wpabuf_put(msg, pos - buf); in eap_ttls_phase2_request_mschapv2()
590 wpabuf_put(msg, pos - buf); in eap_ttls_phase2_request_mschap()
645 wpabuf_put(msg, pos - buf); in eap_ttls_phase2_request_pap()
725 wpabuf_put(msg, pos - buf); in eap_ttls_phase2_request_chap()
Deap_tls_common.c548 flags = wpabuf_put(*out_data, 1); in eap_tls_process_output()
Deap.c474 wpabuf_put(resp, 0); in eap_sm_build_nak()
/hal_espressif-latest/components/wpa_supplicant/src/ap/
Dcomeback_token.c127 token = wpabuf_put(buf, SHA256_MAC_LEN); in auth_build_token_req()
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dasn1.c555 len = wpabuf_put(buf, 1); in asn1_put_oid()
576 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in asn1_put_oid()
Dtlsv1_client.c364 out_pos = wpabuf_put(buf, 0); in tlsv1_client_decrypt()
418 wpabuf_put(buf, olen); in tlsv1_client_decrypt()
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/
Deap_server.c1581 resp = wpabuf_put(msg, sizeof(*resp)); in eap_sm_buildSuccess()
1599 resp = wpabuf_put(msg, sizeof(*resp)); in eap_sm_buildFailure()