Home
last modified time | relevance | path

Searched refs:nonce_s (Results 1 – 10 of 10) sorted by relevance

/external/wpa_supplicant_8/src/eap_server/
Deap_server_sim.c21 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
149 const u8 *nonce_s) in eap_sim_build_encr() argument
152 if (nonce_s == NULL) { in eap_sim_build_encr()
172 counter == 0 && nonce_s == NULL) in eap_sim_build_encr()
184 if (nonce_s) { in eap_sim_build_encr()
186 eap_sim_msg_add(msg, EAP_SIM_AT_NONCE_S, 0, nonce_s, in eap_sim_build_encr()
255 if (random_get_bytes(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_sim_build_reauth()
258 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_build_reauth()
263 sm->identity_len, data->nonce_s, data->mk, in eap_sim_build_reauth()
269 if (eap_sim_build_encr(sm, data, msg, data->counter, data->nonce_s)) { in eap_sim_build_reauth()
[all …]
Deap_server_aka.c22 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
392 const u8 *nonce_s) in eap_aka_build_encr() argument
395 if (nonce_s == NULL) { in eap_aka_build_encr()
419 counter == 0 && nonce_s == NULL) in eap_aka_build_encr()
431 if (nonce_s) { in eap_aka_build_encr()
433 eap_sim_msg_add(msg, EAP_SIM_AT_NONCE_S, 0, nonce_s, in eap_aka_build_encr()
548 if (random_get_bytes(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_aka_build_reauth()
551 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_build_reauth()
557 data->nonce_s, in eap_aka_build_reauth()
563 sm->identity_len, data->nonce_s, in eap_aka_build_reauth()
[all …]
Deap_server_eke.c31 u8 nonce_s[EAP_EKE_MAX_NONCE_LEN]; member
320 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { in eap_eke_build_confirm()
326 data->nonce_s, data->sess.nonce_len); in eap_eke_build_confirm()
329 os_memcpy(nonces + data->sess.nonce_len, data->nonce_s, in eap_eke_build_confirm()
343 data->nonce_p, data->nonce_s) < 0) { in eap_eke_build_confirm()
625 if (os_memcmp(nonce, data->nonce_s, data->sess.nonce_len) != 0) { in eap_eke_process_confirm()
646 data->nonce_s, data->nonce_p, in eap_eke_process_confirm()
781 os_memcpy(sid + 1 + data->sess.nonce_len, data->nonce_s, in eap_eke_get_session_id()
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.h84 const u8 *nonce_s, const u8 *mk, u8 *msk,
97 const u8 *nonce_s, u8 *msk, u8 *emsk);
119 const u8 *nonce_s, u8 *msk, in eap_aka_prime_derive_keys_reauth() argument
184 const u8 *rand, *autn, *mac, *iv, *encr_data, *version_list, *nonce_s; member
Deap_eke_common.h99 const u8 *nonce_p, const u8 *nonce_s);
103 const u8 *nonce_p, const u8 *nonce_s,
Deap_sim_common.c109 const u8 *nonce_s, const u8 *mk, u8 *msk, in eap_sim_derive_keys_reauth() argument
127 addr[2] = nonce_s; in eap_sim_derive_keys_reauth()
138 wpa_hexdump(MSG_DEBUG, "EAP-SIM: NONCE_S", nonce_s, in eap_sim_derive_keys_reauth()
326 const u8 *nonce_s, u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys_reauth() argument
339 os_memcpy(seed3 + 2, nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_prime_derive_keys_reauth()
716 attr->nonce_s = apos + 2; in eap_sim_parse_attr()
Deap_eke_common.c479 const u8 *nonce_p, const u8 *nonce_s) in eap_eke_derive_ka() argument
507 os_memcpy(pos, nonce_s, sess->nonce_len); in eap_eke_derive_ka()
524 const u8 *nonce_p, const u8 *nonce_s, in eap_eke_derive_msk() argument
552 os_memcpy(pos, nonce_s, sess->nonce_len); in eap_eke_derive_msk()
/external/wpa_supplicant_8/src/eap_peer/
Deap_sim.c28 u8 nonce_mt[EAP_SIM_NONCE_MT_LEN], nonce_s[EAP_SIM_NONCE_S_LEN]; member
567 const u8 *nonce_s) in eap_sim_response_reauth() argument
602 return eap_sim_msg_finish(msg, EAP_TYPE_SIM, data->k_aut, nonce_s, in eap_sim_response_reauth()
989 if (eattr.nonce_s == NULL || eattr.counter < 0) { in eap_sim_process_reauthentication()
991 !eattr.nonce_s ? " AT_NONCE_S" : "", in eap_sim_process_reauthentication()
1015 res = eap_sim_response_reauth(data, id, 1, eattr.nonce_s); in eap_sim_process_reauthentication()
1022 os_memcpy(data->nonce_s, eattr.nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_process_reauthentication()
1024 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_process_reauthentication()
1028 data->nonce_s, data->mk, data->msk, in eap_sim_process_reauthentication()
1050 return eap_sim_response_reauth(data, id, 0, data->nonce_s); in eap_sim_process_reauthentication()
Deap_aka.c25 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
690 const u8 *nonce_s) in eap_aka_response_reauth() argument
726 return eap_sim_msg_finish(msg, data->eap_method, data->k_aut, nonce_s, in eap_aka_response_reauth()
1257 if (eattr.nonce_s == NULL || eattr.counter < 0) { in eap_aka_process_reauthentication()
1259 !eattr.nonce_s ? " AT_NONCE_S" : "", in eap_aka_process_reauthentication()
1283 res = eap_aka_response_reauth(data, id, 1, eattr.nonce_s); in eap_aka_process_reauthentication()
1290 os_memcpy(data->nonce_s, eattr.nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_process_reauthentication()
1292 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_process_reauthentication()
1298 data->nonce_s, in eap_aka_process_reauthentication()
1303 data->nonce_s, data->mk, in eap_aka_process_reauthentication()
[all …]
Deap_eke.c29 u8 nonce_s[EAP_EKE_MAX_NONCE_LEN]; member
552 os_memcpy(data->nonce_s, nonces + data->sess.nonce_len, in eap_eke_process_confirm()
555 data->nonce_s, data->sess.nonce_len); in eap_eke_process_confirm()
559 data->nonce_p, data->nonce_s) < 0) { in eap_eke_process_confirm()
588 if (eap_eke_prot(&data->sess, data->nonce_s, data->sess.nonce_len, in eap_eke_process_confirm()
606 data->nonce_s, data->nonce_p, in eap_eke_process_confirm()
759 os_memcpy(sid + 1 + data->sess.nonce_len, data->nonce_s, in eap_eke_get_session_id()