Home
last modified time | relevance | path

Searched refs:encr_len (Results 1 – 8 of 8) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_sim_common.c1139 size_t encr_len; in eap_sim_msg_add_encr_end() local
1144 encr_len = wpabuf_len(msg->buf) - msg->encr - 4; in eap_sim_msg_add_encr_end()
1145 if (encr_len % 16) { in eap_sim_msg_add_encr_end()
1147 int pad_len = 16 - (encr_len % 16); in eap_sim_msg_add_encr_end()
1159 encr_len += pad_len; in eap_sim_msg_add_encr_end()
1162 (unsigned long) encr_len); in eap_sim_msg_add_encr_end()
1163 wpabuf_mhead_u8(msg->buf)[msg->encr + 1] = encr_len / 4 + 1; in eap_sim_msg_add_encr_end()
1166 encr_len); in eap_sim_msg_add_encr_end()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_sim_common.c1139 size_t encr_len; in eap_sim_msg_add_encr_end() local
1144 encr_len = wpabuf_len(msg->buf) - msg->encr - 4; in eap_sim_msg_add_encr_end()
1145 if (encr_len % 16) { in eap_sim_msg_add_encr_end()
1147 int pad_len = 16 - (encr_len % 16); in eap_sim_msg_add_encr_end()
1159 encr_len += pad_len; in eap_sim_msg_add_encr_end()
1162 (unsigned long) encr_len); in eap_sim_msg_add_encr_end()
1163 wpabuf_mhead_u8(msg->buf)[msg->encr + 1] = encr_len / 4 + 1; in eap_sim_msg_add_encr_end()
1166 encr_len); in eap_sim_msg_add_encr_end()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_common.c156 size_t encr_len) in wps_decrypt_encr_settings() argument
165 if (encr == NULL || encr_len < 2 * block_size || encr_len % block_size) in wps_decrypt_encr_settings()
171 decrypted = wpabuf_alloc(encr_len - block_size); in wps_decrypt_encr_settings()
175 wpa_hexdump(MSG_MSGDUMP, "WPS: Encrypted Settings", encr, encr_len); in wps_decrypt_encr_settings()
176 wpabuf_put_data(decrypted, encr + block_size, encr_len - block_size); in wps_decrypt_encr_settings()
Dwps_i.h140 size_t encr_len);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_common.c156 size_t encr_len) in wps_decrypt_encr_settings() argument
165 if (encr == NULL || encr_len < 2 * block_size || encr_len % block_size) in wps_decrypt_encr_settings()
171 decrypted = wpabuf_alloc(encr_len - block_size); in wps_decrypt_encr_settings()
175 wpa_hexdump(MSG_MSGDUMP, "WPS: Encrypted Settings", encr, encr_len); in wps_decrypt_encr_settings()
176 wpabuf_put_data(decrypted, encr + block_size, encr_len - block_size); in wps_decrypt_encr_settings()
Dwps_i.h140 size_t encr_len);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_server_read.c603 u16 encr_len; in tls_process_client_key_exchange_rsa() local
613 encr_len = WPA_GET_BE16(pos); in tls_process_client_key_exchange_rsa()
615 if (pos + encr_len > end) { in tls_process_client_key_exchange_rsa()
617 encr_len, (unsigned int) (end - pos)); in tls_process_client_key_exchange_rsa()
651 pos, encr_len, in tls_process_client_key_exchange_rsa()
655 encr_len, (unsigned long) outlen); in tls_process_client_key_exchange_rsa()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_server_read.c603 u16 encr_len; in tls_process_client_key_exchange_rsa() local
613 encr_len = WPA_GET_BE16(pos); in tls_process_client_key_exchange_rsa()
615 if (pos + encr_len > end) { in tls_process_client_key_exchange_rsa()
617 encr_len, (unsigned int) (end - pos)); in tls_process_client_key_exchange_rsa()
651 pos, encr_len, in tls_process_client_key_exchange_rsa()
655 encr_len, (unsigned long) outlen); in tls_process_client_key_exchange_rsa()