Searched refs:encr_len (Results 1 – 4 of 4) sorted by relevance
1137 size_t encr_len; in eap_sim_msg_add_encr_end() local1142 encr_len = wpabuf_len(msg->buf) - msg->encr - 4; in eap_sim_msg_add_encr_end()1143 if (encr_len % 16) { in eap_sim_msg_add_encr_end()1145 int pad_len = 16 - (encr_len % 16); in eap_sim_msg_add_encr_end()1157 encr_len += pad_len; in eap_sim_msg_add_encr_end()1160 (unsigned long) encr_len); in eap_sim_msg_add_encr_end()1161 wpabuf_mhead_u8(msg->buf)[msg->encr + 1] = encr_len / 4 + 1; in eap_sim_msg_add_encr_end()1164 encr_len); in eap_sim_msg_add_encr_end()
156 size_t encr_len) in wps_decrypt_encr_settings() argument165 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()
138 size_t encr_len);
575 u16 encr_len; in tls_process_client_key_exchange_rsa() local585 encr_len = WPA_GET_BE16(pos); in tls_process_client_key_exchange_rsa()587 if (pos + encr_len > end) { in tls_process_client_key_exchange_rsa()589 encr_len, (unsigned int) (end - pos)); in tls_process_client_key_exchange_rsa()623 pos, encr_len, in tls_process_client_key_exchange_rsa()627 encr_len, (unsigned long) outlen); in tls_process_client_key_exchange_rsa()