Home
last modified time | relevance | path

Searched refs:res_len (Results 1 – 20 of 20) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Dmilenage.c175 u8 *ck, u8 *res, size_t *res_len) in milenage_generate() argument
180 if (*res_len < 8) { in milenage_generate()
181 *res_len = 0; in milenage_generate()
186 *res_len = 0; in milenage_generate()
189 *res_len = 8; in milenage_generate()
271 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len, in milenage_check() argument
284 *res_len = 8; in milenage_check()
285 wpa_hexdump_key(MSG_DEBUG, "Milenage: RES", res, *res_len); in milenage_check()
Dmilenage.h14 u8 *ck, u8 *res, size_t *res_len);
20 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len,
Dtls_internal.c342 size_t res_len, ad_len; in tls_connection_handshake2() local
352 &res_len, &ad, &ad_len, need_more_data); in tls_connection_handshake2()
355 out = wpabuf_alloc_ext_data(res, res_len); in tls_connection_handshake2()
385 size_t res_len; in tls_connection_server_handshake() local
395 wpabuf_len(in_data), &res_len); in tls_connection_server_handshake()
400 out = wpabuf_alloc_ext_data(res, res_len); in tls_connection_server_handshake()
/external/wpa_supplicant_8/src/utils/
Dcommon.c583 size_t merge_byte_arrays(u8 *res, size_t res_len, in merge_byte_arrays() argument
589 os_memset(res, 0, res_len); in merge_byte_arrays()
592 if (src1_len >= res_len) { in merge_byte_arrays()
593 os_memcpy(res, src1, res_len); in merge_byte_arrays()
594 return res_len; in merge_byte_arrays()
602 if (len + src2_len >= res_len) { in merge_byte_arrays()
603 os_memcpy(res + len, src2, res_len - len); in merge_byte_arrays()
604 return res_len; in merge_byte_arrays()
Dpcsc_funcs.h30 unsigned char *res, size_t *res_len,
Dpcsc_funcs.c1324 unsigned char *res, size_t *res_len, in scard_umts_auth() argument
1391 *res_len = *pos++; in scard_umts_auth()
1392 os_memcpy(res, pos, *res_len); in scard_umts_auth()
1393 pos += *res_len; in scard_umts_auth()
1394 wpa_hexdump(MSG_DEBUG, "SCARD: RES", res, *res_len); in scard_umts_auth()
Dcommon.h487 size_t merge_byte_arrays(u8 *res, size_t res_len,
/external/wpa_supplicant_8/src/wps/
Dwps_common.c22 const char *label, u8 *res, size_t res_len) in wps_kdf() argument
31 WPA_PUT_BE32(key_bits, res_len * 8); in wps_kdf()
42 iter = (res_len + SHA256_MAC_LEN - 1) / SHA256_MAC_LEN; in wps_kdf()
44 left = res_len; in wps_kdf()
Dwps_i.h130 const char *label, u8 *res, size_t res_len);
/external/wpa_supplicant_8/src/eap_server/
Deap_sim_db.c56 size_t res_len; member
549 entry->u.aka.res_len = (end - start) / 2; in eap_sim_db_aka_resp_auth()
550 if (entry->u.aka.res_len > EAP_AKA_RES_MAX_LEN) { in eap_sim_db_aka_resp_auth()
552 entry->u.aka.res_len = 0; in eap_sim_db_aka_resp_auth()
555 if (hexstr2bin(start, entry->u.aka.res, entry->u.aka.res_len)) in eap_sim_db_aka_resp_auth()
1328 u8 *res, size_t *res_len, void *cb_session_ctx) in eap_sim_db_get_aka_auth() argument
1369 *res_len = entry->u.aka.res_len; in eap_sim_db_get_aka_auth()
Deap_server_aka.c33 size_t res_len; member
791 data->ck, data->res, &data->res_len, sm); in eap_aka_fullauth()
964 if (attr->res == NULL || attr->res_len < data->res_len || in eap_aka_process_challenge()
965 attr->res_len_bits != data->res_len * 8 || in eap_aka_process_challenge()
966 os_memcmp(attr->res, data->res, data->res_len) != 0) { in eap_aka_process_challenge()
970 (unsigned long) attr->res_len, in eap_aka_process_challenge()
972 (unsigned long) data->res_len * 8); in eap_aka_process_challenge()
Deap_sim_db.h87 u8 *res, size_t *res_len, void *cb_session_ctx);
/external/ppp/pppd/plugins/pppoatm/
Dans.c41 static int ans(const char *text,int wanted,void *result,int res_len) in ans() argument
114 res_len) < 0) return FATAL; in ans()
/external/wpa_supplicant_8/hostapd/
Dhlr_auc_gw.c724 size_t res_len; in aka_req_auth() local
733 res_len = EAP_AKA_RES_MAX_LEN; in aka_req_auth()
743 autn, ik, ck, res, &res_len); in aka_req_auth()
753 res_len = EAP_AKA_RES_MAX_LEN; in aka_req_auth()
780 pos += wpa_snprintf_hex(pos, end - pos, res, res_len); in aka_req_auth()
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.c235 u8 *res, size_t res_len) in prf_prime() argument
263 while (res_len) { in prf_prime()
268 hlen = res_len > SHA256_MAC_LEN ? SHA256_MAC_LEN : res_len; in prf_prime()
271 res_len -= hlen; in prf_prime()
805 attr->res_len = alen; in eap_sim_parse_attr()
Dikev2_common.h327 size_t *res_len);
Deap_sim_common.h191 size_t next_pseudonym_len, next_reauth_id_len, identity_len, res_len; member
Dikev2_common.c494 size_t *res_len) in ikev2_decrypt_payload() argument
577 *res_len = decrypted_len; in ikev2_decrypt_payload()
/external/wpa_supplicant_8/wpa_supplicant/
Dconfig.c60 size_t res_len, *dst_len; in wpa_config_parse_str() local
67 res_len = 0; in wpa_config_parse_str()
71 tmp = wpa_config_parse_string(value, &res_len); in wpa_config_parse_str()
81 (u8 *) tmp, res_len); in wpa_config_parse_str()
84 (u8 *) tmp, res_len); in wpa_config_parse_str()
87 if (data->param3 && res_len < (size_t) data->param3) { in wpa_config_parse_str()
90 (unsigned long) res_len, (long) data->param3); in wpa_config_parse_str()
95 if (data->param4 && res_len > (size_t) data->param4) { in wpa_config_parse_str()
98 (unsigned long) res_len, (long) data->param4); in wpa_config_parse_str()
109 *dst_len = res_len; in wpa_config_parse_str()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_aka.c24 size_t res_len; member
156 data->autn, data->res, &data->res_len, in eap_aka_umts_auth()
191 data->res, &data->res_len, data->auts); in eap_aka_umts_auth()
202 data->res_len = EAP_AKA_RES_MAX_LEN; in eap_aka_umts_auth()
539 eap_sim_msg_add(msg, EAP_SIM_AT_RES, data->res_len * 8, in eap_aka_response_challenge()
540 data->res, data->res_len); in eap_aka_response_challenge()