Home
last modified time | relevance | path

Searched defs:len (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/hostap-3.7.0/src/utils/
Dwpa_debug_zephyr.c28 int len; in wpa_printf_impl() local
67 static void _wpa_hexdump(int level, const char *title, const u8 *buf, size_t len, int show) in _wpa_hexdump()
97 void wpa_hexdump_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_impl()
102 void wpa_hexdump_key_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_key_impl()
107 static void _wpa_hexdump_ascii(int level, const char *title, const void *buf, size_t len, int show) in _wpa_hexdump_ascii()
149 void wpa_hexdump_ascii_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_ascii_impl()
154 void wpa_hexdump_ascii_key_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_ascii_key_impl()
182 int len; in wpa_msg_impl() local
219 int len; in wpa_msg_ctrl_impl() local
245 int len; in wpa_msg_global_impl() local
[all …]
Dwpabuf.c30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow()
113 struct wpabuf * wpabuf_alloc(size_t len) in wpabuf_alloc()
135 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len) in wpabuf_alloc_ext_data()
160 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len) in wpabuf_alloc_copy()
217 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put()
240 size_t len = 0; in wpabuf_concat() local
275 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len) in wpabuf_zeropad()
322 size_t len; in wpabuf_parse_bin() local
Dbase64.c26 static char * base64_gen_encode(const unsigned char *src, size_t len, in base64_gen_encode()
89 static unsigned char * base64_gen_decode(const char *src, size_t len, in base64_gen_decode()
170 char * base64_encode(const void *src, size_t len, size_t *out_len) in base64_encode()
177 char * base64_encode_no_lf(const void *src, size_t len, size_t *out_len) in base64_encode_no_lf()
183 char * base64_url_encode(const void *src, size_t len, size_t *out_len) in base64_url_encode()
199 unsigned char * base64_decode(const char *src, size_t len, size_t *out_len) in base64_decode()
205 unsigned char * base64_url_decode(const char *src, size_t len, size_t *out_len) in base64_url_decode()
Dcommon.c171 int hexstr2bin(const char *hex, u8 *buf, size_t len) in hexstr2bin()
189 int hwaddr_mask_txt(char *buf, size_t len, const u8 *addr, const u8 *mask) in hwaddr_mask_txt()
222 void inc_byte_array(u8 *counter, size_t len) in inc_byte_array()
234 void buf_shift_right(u8 *buf, size_t len, size_t bits) in buf_shift_right()
293 int wpa_snprintf_hex_sep(char *buf, size_t buf_size, const u8 *data, size_t len, in wpa_snprintf_hex_sep()
318 size_t len, int uppercase) in _wpa_snprintf_hex()
346 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) in wpa_snprintf_hex()
361 size_t len) in wpa_snprintf_hex_uppercase()
477 void printf_encode(char *txt, size_t maxlen, const u8 *data, size_t len) in printf_encode()
529 size_t len = 0; in printf_decode() local
[all …]
Dwpa_debug.c259 size_t len, int show, int only_syslog) in _wpa_hexdump()
385 void wpa_hexdump(int level, const char *title, const void *buf, size_t len) in wpa_hexdump()
391 void wpa_hexdump_key(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_key()
398 size_t len, int show) in _wpa_hexdump_ascii()
511 size_t len) in wpa_hexdump_ascii()
518 size_t len) in wpa_hexdump_ascii_key()
644 int len; in wpa_msg() local
682 int len; in wpa_msg_ctrl() local
710 int len; in wpa_msg_global() local
737 int len; in wpa_msg_global_ctrl() local
[all …]
/hostap-3.7.0/src/tls/
Dx509v3.c181 int x509_parse_algorithm_identifier(const u8 *buf, size_t len, in x509_parse_algorithm_identifier()
216 static int x509_parse_public_key(const u8 *buf, size_t len, in x509_parse_public_key()
285 int x509_parse_name(const u8 *buf, size_t len, struct x509_name *name, in x509_parse_name()
492 void x509_name_string(struct x509_name *name, char *buf, size_t len) in x509_name_string()
535 static int parse_uint2(const char *pos, size_t len) in parse_uint2()
551 static int parse_uint4(const char *pos, size_t len) in parse_uint4()
569 int x509_parse_time(const u8 *buf, size_t len, u8 asn1_tag, os_time_t *val) in x509_parse_time()
686 static int x509_parse_validity(const u8 *buf, size_t len, in x509_parse_validity()
766 const u8 *pos, size_t len) in x509_parse_ext_key_usage()
799 const u8 *pos, size_t len) in x509_parse_ext_basic_constraints()
[all …]
Dtlsv1_cred.c46 const u8 *buf, size_t len) in tlsv1_add_cert_der()
90 static const u8 * search_tag(const char *tag, const u8 *buf, size_t len) in search_tag()
108 const u8 *buf, size_t len) in tlsv1_add_cert()
166 size_t len; in tlsv1_set_cert_chain() local
266 static struct crypto_private_key * tlsv1_set_key_pem(const u8 *key, size_t len) in tlsv1_set_key_pem()
306 size_t len, in tlsv1_set_key_enc_pem()
416 const u8 *buf, size_t len) in pkcs12_keybag()
424 const u8 *buf, size_t len, in pkcs12_pkcs8_keybag()
444 const u8 *buf, size_t len) in pkcs12_certbag()
565 static int pkcs12_parse_attr(const u8 *pos, size_t len) in pkcs12_parse_attr()
[all …]
Dasn1.c171 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr) in asn1_get_next()
290 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) in asn1_parse_oid()
334 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, in asn1_get_oid()
351 void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len) in asn1_oid_to_str()
391 unsigned long asn1_bit_string_to_long(const u8 *buf, size_t len) in asn1_bit_string_to_long()
433 int asn1_get_integer(const u8 *buf, size_t len, int *integer, const u8 **next) in asn1_get_integer()
466 int asn1_get_sequence(const u8 *buf, size_t len, struct asn1_hdr *hdr, in asn1_get_sequence()
480 int asn1_get_alg_id(const u8 *buf, size_t len, struct asn1_oid *oid, in asn1_get_alg_id()
519 static void asn1_put_len(struct wpabuf *buf, size_t len) in asn1_put_len()
549 u8 *len; in asn1_put_oid() local
[all …]
Dtlsv1_client_read.c42 const u8 *pos, size_t len) in tls_process_server_hello_extensions()
82 size_t left, len, i; in tls_process_server_hello() local
301 size_t len[1]; in tls_peer_cert_event() local
358 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
640 static unsigned int count_bits(const u8 *val, size_t len) in count_bits()
665 const u8 *buf, size_t len, in tlsv1_process_diffie_hellman()
800 const u8 *pos, size_t len) in tls_process_certificate_status_ocsp_response()
827 size_t left, len; in tls_process_certificate_status() local
1025 size_t left, len; in tls_process_server_key_exchange() local
1122 size_t left, len; in tls_process_certificate_request() local
[all …]
/hostap-3.7.0/src/drivers/
Dpriv_netlink.h49 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) argument
51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) argument
52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) argument
54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \ argument
60 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
63 #define RTA_ALIGN(len) (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1)) argument
64 #define RTA_OK(rta,len) \ argument
70 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) argument
71 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len)) argument
/hostap-3.7.0/src/crypto/
Dcrypto_gnutls.c21 const u8 *addr[], const size_t *len, u8 *mac) in gnutls_digest_vector()
42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector()
71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector()
77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector()
83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector()
89 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha384_vector()
95 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha512_vector()
103 const size_t *len, u8 *mac) in gnutls_hmac_vector()
129 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector()
144 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha1_vector()
[all …]
Dcrypto_nettle.c52 const u8 *addr[], const size_t *len, u8 *mac) in nettle_digest_vector()
72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector()
78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector()
84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector()
90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector()
96 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha384_vector()
102 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha512_vector()
109 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector()
134 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha1_vector()
161 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha256_vector()
[all …]
Dcrypto_linux.c59 const u8 *addr[], const size_t *len, in linux_af_alg_hash_vector()
125 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector()
132 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector()
139 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha1_vector()
147 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector()
155 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha384_vector()
163 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha512_vector()
172 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector()
187 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha1_vector()
202 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha256_vector()
[all …]
Dcrypto_mbedtls.c40 const size_t *len, u8 *mac) in digest_vector()
82 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector()
87 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha384_vector()
92 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector()
97 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector()
103 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector()
157 void crypto_hash_update(struct crypto_hash *ctx, const u8 *data, size_t len) in crypto_hash_update()
165 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) in crypto_hash_finish()
185 const u8 *addr[], const size_t *len, u8 *mac) in hmac_vector()
219 const size_t *len, u8 *mac) in hmac_sha384_vector()
[all …]
Dcrypto_libtomcrypt.c25 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector()
60 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector()
73 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector()
86 void * aes_encrypt_init(const u8 *key, size_t len) in aes_encrypt_init()
115 void * aes_decrypt_init(const u8 *key, size_t len) in aes_decrypt_init()
195 void crypto_hash_update(struct crypto_hash *ctx, const u8 *data, size_t len) in crypto_hash_update()
215 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) in crypto_hash_finish()
355 u8 *crypt, size_t len) in crypto_cipher_encrypt()
379 u8 *plain, size_t len) in crypto_cipher_decrypt()
420 struct crypto_public_key * crypto_public_key_import(const u8 *key, size_t len) in crypto_public_key_import()
[all …]
/hostap-3.7.0/src/ap/
Drrm.c36 const u8 *pos, size_t len) in hostapd_handle_lci_report()
60 const u8 *pos, size_t len) in hostapd_handle_range_report()
76 const u8 *pos, size_t len) in hostapd_handle_beacon_report()
96 const u8 *buf, size_t len) in hostapd_handle_radio_msmt_report()
139 static u16 hostapd_parse_location_lci_req_age(const u8 *buf, size_t len) in hostapd_parse_location_lci_req_age()
187 size_t len = 2 + wpabuf_len(nr->nr); in hostapd_neighbor_report_len() local
224 size_t len; in hostapd_send_nei_report_resp() local
279 const u8 *buf, size_t len) in hostapd_handle_nei_report_req()
338 const u8 *buf, size_t len) in hostapd_handle_radio_measurement()
446 u8 *len; in hostapd_send_range_req() local
[all …]
Dieee802_11_shared.c229 size_t len) in ieee802_11_sa_query_action()
454 u8 len = EXT_CAPA_MAX_LEN, i; in hostapd_eid_ext_capab() local
489 u8 len = hapd->conf->qos_map_set_len; in hostapd_eid_qos_map_set() local
507 u8 *len; in hostapd_eid_interworking() local
566 u8 *len; in hostapd_eid_roaming_consortium() local
631 size_t len; in hostapd_eid_time_zone() local
731 size_t len, int delta) in hostapd_eid_mbo_rssi_assoc_rej()
746 u8 * hostapd_eid_mbo(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_mbo()
788 u8 len; in hostapd_mbo_ie_len() local
834 size_t len) in hostapd_eid_owe_trans()
[all …]
Dieee802_1x.c56 size_t len; in ieee802_1x_send() local
152 size_t len, ekey_len; in ieee802_1x_tx_key_one() local
336 const u8 *eap, size_t len) in ieee802_1x_learn_identity()
536 int len; in add_common_radius_attr() local
680 const u8 *eap, size_t len) in ieee802_1x_encapsulate_radius()
854 size_t len) in handle_eap_response()
887 size_t len) in handle_eap_initiate()
942 u8 *buf, size_t len) in handle_eap()
1001 size_t len) in ieee802_1x_save_eapol()
1033 size_t len) in ieee802_1x_receive()
[all …]
Dgas_serv.c164 u8 *len; in anqp_add_hs_capab_list() local
245 u8 *len; in anqp_add_capab_list() local
318 u8 *len; in anqp_add_venue_name() local
341 u8 *len; in anqp_add_venue_url() local
377 u8 *len; in anqp_add_roaming_consortium() local
548 u8 *len; in anqp_add_nai_realm() local
643 u8 *len; in anqp_add_operator_friendly_name() local
667 u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); in anqp_add_wan_metrics() local
682 u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); in anqp_add_connection_capability() local
698 u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); in anqp_add_operating_class() local
[all …]
/hostap-3.7.0/wlantest/
Dprocess.c22 size_t len, int *to_ap) in rx_get_sta()
91 size_t len, struct wlantest_sta *sta, int to_ap) in rx_update_ps()
143 size_t len, struct wlantest_sta *sta, int to_ap) in rx_duplicate()
200 static void rx_frame(struct wlantest *wt, const u8 *data, size_t len) in rx_frame()
258 static void tx_status(struct wlantest *wt, const u8 *data, size_t len, int ack) in tx_status()
273 void wlantest_process(struct wlantest *wt, const u8 *data, size_t len) in wlantest_process()
353 void wlantest_process_prism(struct wlantest *wt, const u8 *data, size_t len) in wlantest_process_prism()
391 void wlantest_process_80211(struct wlantest *wt, const u8 *data, size_t len) in wlantest_process_80211()
Drx_mgmt.c61 static void rx_mgmt_beacon(struct wlantest *wt, const u8 *data, size_t len) in rx_mgmt_beacon()
151 static void rx_mgmt_probe_resp(struct wlantest *wt, const u8 *data, size_t len) in rx_mgmt_probe_resp()
184 const struct ieee80211_mgmt *mgmt, size_t len) in process_fils_auth()
233 const struct ieee80211_mgmt *mgmt, size_t len) in process_ft_auth()
306 static void rx_mgmt_auth(struct wlantest *wt, const u8 *data, size_t len) in rx_mgmt_auth()
387 static void rx_mgmt_deauth(struct wlantest *wt, const u8 *data, size_t len, in rx_mgmt_deauth()
581 static void rx_mgmt_assoc_req(struct wlantest *wt, const u8 *data, size_t len) in rx_mgmt_assoc_req()
709 static void rx_mgmt_assoc_resp(struct wlantest *wt, const u8 *data, size_t len) in rx_mgmt_assoc_resp()
815 size_t len) in rx_mgmt_reassoc_req()
1283 size_t len) in rx_mgmt_reassoc_resp()
[all …]
Drx_eapol.c23 static int is_zero(const u8 *buf, size_t len) in is_zero()
35 const u8 *data, size_t len) in check_mic()
65 const u8 *src, const u8 *data, size_t len) in rx_data_eapol_key_1_of_4()
97 const u8 *data, size_t len, in try_pmk()
170 const u8 *data, size_t len) in derive_ptk()
241 const u8 *src, const u8 *data, size_t len) in rx_data_eapol_key_2_of_4()
354 size_t *len) in decrypt_eapol_key_data_rc4()
378 size_t *len) in decrypt_eapol_key_data_aes()
407 size_t *len) in decrypt_eapol_key_data()
444 const u8 *buf, size_t len, const u8 *rsc) in learn_kde_keys()
[all …]
Drx_tdls.c78 size_t len[2]; in tdls_derive_tpk() local
138 int len; in tdls_verify_mic() local
202 const u8 *data, size_t len) in rx_data_tdls_setup_request()
287 const u8 *data, size_t len) in rx_data_tdls_setup_response()
397 const u8 *data, size_t len) in rx_data_tdls_setup_confirm()
486 int len; in tdls_verify_mic_teardown() local
541 const u8 *data, size_t len) in rx_data_tdls_teardown()
575 const u8 *data, size_t len) in rx_data_tdls()
611 const u8 *data, size_t len) in rx_data_80211_encap()
Dinject.c18 static int inject_frame(int s, const void *data, size_t len) in inject_frame()
58 static int is_robust_mgmt(u8 *frame, size_t len) in is_robust_mgmt()
83 u8 *frame, size_t len, int incorrect_key) in wlantest_inject_bip()
113 u8 *frame, size_t len, int incorrect_key) in wlantest_inject_prot_bc()
161 size_t len, int incorrect_key) in wlantest_inject_prot()
275 struct wlantest_sta *sta, u8 *frame, size_t len, in wlantest_inject()
/hostap-3.7.0/src/wps/
Dwps_attr_parse.c21 u8 id, u8 len, const u8 *pos) in wps_set_vendor_ext_wfa_subelem()
92 u16 len) in wps_parse_vendor_ext_wfa()
112 u16 len) in wps_parse_vendor_ext()
153 const u8 *pos, u16 len) in wps_set_attr()
599 u16 type, len; in wps_parse_msg() local

12345678910>>...17