Home
last modified time | relevance | path

Searched refs:auth_challenge (Results 1 – 12 of 12) sorted by relevance

/external/wpa_supplicant_8/src/eap_peer/
Dmschapv2.c39 const u8 *auth_challenge, in mschapv2_derive_response() argument
56 auth_challenge, MSCHAPV2_CHAL_LEN); in mschapv2_derive_response()
66 if (generate_nt_response_pwhash(auth_challenge, peer_challenge, in mschapv2_derive_response()
70 password, peer_challenge, auth_challenge, in mschapv2_derive_response()
77 if (generate_nt_response(auth_challenge, peer_challenge, in mschapv2_derive_response()
83 auth_challenge, in mschapv2_derive_response()
Deap_mschapv2.c90 u8 *auth_challenge; member
121 if (sm->auth_challenge) { in eap_mschapv2_init()
122 data->auth_challenge = os_malloc(MSCHAPV2_CHAL_LEN); in eap_mschapv2_init()
123 if (data->auth_challenge == NULL) { in eap_mschapv2_init()
127 os_memcpy(data->auth_challenge, sm->auth_challenge, in eap_mschapv2_init()
141 os_free(data->auth_challenge); in eap_mschapv2_deinit()
149 u8 mschapv2_id, const u8 *auth_challenge) in eap_mschapv2_challenge_reply() argument
202 if (data->auth_challenge) { in eap_mschapv2_challenge_reply()
205 auth_challenge = data->auth_challenge; in eap_mschapv2_challenge_reply()
208 password_len, pwhash, auth_challenge, in eap_mschapv2_challenge_reply()
Dmschapv2.h21 const u8 *auth_challenge,
Deap_i.h353 u8 *peer_challenge, *auth_challenge; member
Deap_fast.c355 sm->auth_challenge = data->key_block_p->server_challenge; in eap_fast_init_phase2_method()
361 sm->auth_challenge = NULL; in eap_fast_init_phase2_method()
/external/wpa_supplicant_8/src/crypto/
Dms_funcs.c81 int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge, in challenge_hash() argument
90 addr[1] = auth_challenge; in challenge_hash()
168 int generate_nt_response(const u8 *auth_challenge, const u8 *peer_challenge, in generate_nt_response() argument
176 if (challenge_hash(peer_challenge, auth_challenge, username, in generate_nt_response()
195 int generate_nt_response_pwhash(const u8 *auth_challenge, in generate_nt_response_pwhash() argument
203 if (challenge_hash(peer_challenge, auth_challenge, in generate_nt_response_pwhash()
226 const u8 *peer_challenge, const u8 *auth_challenge, in generate_authenticator_response_pwhash() argument
260 challenge_hash(peer_challenge, auth_challenge, username, in generate_authenticator_response_pwhash()
282 const u8 *auth_challenge, in generate_authenticator_response() argument
290 password_hash, peer_challenge, auth_challenge, in generate_authenticator_response()
Dms_funcs.h12 int generate_nt_response(const u8 *auth_challenge, const u8 *peer_challenge,
16 int generate_nt_response_pwhash(const u8 *auth_challenge,
23 const u8 *auth_challenge,
28 const u8 *peer_challenge, const u8 *auth_challenge,
36 int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge,
Dcrypto_module_tests.c1643 u8 auth_challenge[] = { in test_ms_funcs() local
1686 if (generate_nt_response(auth_challenge, peer_challenge, in test_ms_funcs()
1703 peer_challenge, auth_challenge, in test_ms_funcs()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_mschapv2.c47 u8 auth_challenge[CHALLENGE_LEN]; member
67 if (sm->auth_challenge) { in eap_mschapv2_init()
68 os_memcpy(data->auth_challenge, sm->auth_challenge, in eap_mschapv2_init()
106 random_get_bytes(data->auth_challenge, CHALLENGE_LEN)) { in eap_mschapv2_build_challenge()
130 wpabuf_put_data(req, data->auth_challenge, CHALLENGE_LEN); in eap_mschapv2_build_challenge()
134 data->auth_challenge, CHALLENGE_LEN); in eap_mschapv2_build_challenge()
367 if (challenge_hash(peer_challenge, data->auth_challenge, in eap_mschapv2_process_response()
391 res = generate_nt_response_pwhash(data->auth_challenge, in eap_mschapv2_process_response()
397 res = generate_nt_response(data->auth_challenge, in eap_mschapv2_process_response()
431 pw_hash, peer_challenge, data->auth_challenge, in eap_mschapv2_process_response()
Deap_server_ttls.c697 *auth_challenge; in eap_ttls_process_phase2_mschapv2() local
758 auth_challenge = challenge; in eap_ttls_process_phase2_mschapv2()
764 auth_challenge, EAP_TTLS_MSCHAPV2_CHALLENGE_LEN); in eap_ttls_process_phase2_mschapv2()
769 generate_nt_response_pwhash(auth_challenge, peer_challenge, in eap_ttls_process_phase2_mschapv2()
774 generate_nt_response(auth_challenge, peer_challenge, in eap_ttls_process_phase2_mschapv2()
786 if (challenge_hash(peer_challenge, auth_challenge, in eap_ttls_process_phase2_mschapv2()
802 peer_challenge, auth_challenge, in eap_ttls_process_phase2_mschapv2()
808 peer_challenge, auth_challenge, in eap_ttls_process_phase2_mschapv2()
Deap_i.h179 u8 *auth_challenge; member
Deap_server_fast.c961 sm->auth_challenge = data->key_block_p->server_challenge; in eap_fast_phase2_init()
967 sm->auth_challenge = NULL; in eap_fast_phase2_init()