Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/eap_server/
Deap_server_sim.c21 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
131 const u8 *nonce_s) in eap_sim_build_encr() argument
147 counter == 0 && nonce_s == NULL) in eap_sim_build_encr()
159 if (nonce_s) { in eap_sim_build_encr()
161 eap_sim_msg_add(msg, EAP_SIM_AT_NONCE_S, 0, nonce_s, in eap_sim_build_encr()
230 if (random_get_bytes(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_sim_build_reauth()
233 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_build_reauth()
238 sm->identity_len, data->nonce_s, data->mk, in eap_sim_build_reauth()
244 if (eap_sim_build_encr(sm, data, msg, data->counter, data->nonce_s)) { in eap_sim_build_reauth()
564 eap_sim_verify_mac(data->k_aut, respData, attr->mac, data->nonce_s, in eap_sim_process_reauth()
Deap_server_aka.c22 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
292 const u8 *nonce_s) in eap_aka_build_encr() argument
308 counter == 0 && nonce_s == NULL) in eap_aka_build_encr()
320 if (nonce_s) { in eap_aka_build_encr()
322 eap_sim_msg_add(msg, EAP_SIM_AT_NONCE_S, 0, nonce_s, in eap_aka_build_encr()
437 if (random_get_bytes(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_aka_build_reauth()
440 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_build_reauth()
446 data->nonce_s, in eap_aka_build_reauth()
452 sm->identity_len, data->nonce_s, in eap_aka_build_reauth()
459 if (eap_aka_build_encr(sm, data, msg, data->counter, data->nonce_s)) { in eap_aka_build_reauth()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/
Deap_sim.c26 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
136 const u8 *nonce_s) in eap_sim_build_encr() argument
152 counter == 0 && nonce_s == NULL) in eap_sim_build_encr()
164 if (nonce_s) { in eap_sim_build_encr()
166 eap_sim_msg_add(msg, EAP_SIM_AT_NONCE_S, 0, nonce_s, in eap_sim_build_encr()
235 if (os_get_random(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_sim_build_reauth()
238 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_build_reauth()
243 sm->identity_len, data->nonce_s, data->mk, in eap_sim_build_reauth()
249 if (eap_sim_build_encr(sm, data, msg, data->counter, data->nonce_s)) { in eap_sim_build_reauth()
569 eap_sim_verify_mac(data->k_aut, respData, attr->mac, data->nonce_s, in eap_sim_process_reauth()
Deap_aka.c28 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
299 const u8 *nonce_s) in eap_aka_build_encr() argument
315 counter == 0 && nonce_s == NULL) in eap_aka_build_encr()
327 if (nonce_s) { in eap_aka_build_encr()
329 eap_sim_msg_add(msg, EAP_SIM_AT_NONCE_S, 0, nonce_s, in eap_aka_build_encr()
444 if (os_get_random(data->nonce_s, EAP_SIM_NONCE_S_LEN)) in eap_aka_build_reauth()
447 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_build_reauth()
453 data->nonce_s, in eap_aka_build_reauth()
459 sm->identity_len, data->nonce_s, in eap_aka_build_reauth()
466 if (eap_aka_build_encr(sm, data, msg, data->counter, data->nonce_s)) { in eap_aka_build_reauth()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Deap_sim_common.h90 const u8 *nonce_s, const u8 *mk, u8 *msk,
103 const u8 *nonce_s, u8 *msk, u8 *emsk);
125 const u8 *nonce_s, u8 *msk, in eap_aka_prime_derive_keys_reauth() argument
190 const u8 *rand, *autn, *mac, *iv, *encr_data, *version_list, *nonce_s; member
Deap_sim_common.c114 const u8 *nonce_s, const u8 *mk, u8 *msk, in eap_sim_derive_keys_reauth() argument
132 addr[2] = nonce_s; in eap_sim_derive_keys_reauth()
143 wpa_hexdump(MSG_DEBUG, "EAP-SIM: NONCE_S", nonce_s, in eap_sim_derive_keys_reauth()
332 const u8 *nonce_s, u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys_reauth() argument
345 os_memcpy(seed3 + 2, nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_prime_derive_keys_reauth()
723 attr->nonce_s = apos + 2; in eap_sim_parse_attr()
/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_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()
327 const u8 *nonce_s, u8 *msk, u8 *emsk) in eap_aka_prime_derive_keys_reauth() argument
340 os_memcpy(seed3 + 2, nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_prime_derive_keys_reauth()
718 attr->nonce_s = apos + 2; in eap_sim_parse_attr()
/external/wpa_supplicant_8/src/eap_peer/
Deap_aka.c25 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
539 const u8 *nonce_s) in eap_aka_response_reauth() argument
575 return eap_sim_msg_finish(msg, data->k_aut, nonce_s, in eap_aka_response_reauth()
1080 if (eattr.nonce_s == NULL || eattr.counter < 0) { in eap_aka_process_reauthentication()
1082 !eattr.nonce_s ? " AT_NONCE_S" : "", in eap_aka_process_reauthentication()
1106 res = eap_aka_response_reauth(data, id, 1, eattr.nonce_s); in eap_aka_process_reauthentication()
1113 os_memcpy(data->nonce_s, eattr.nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_process_reauthentication()
1115 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_process_reauthentication()
1121 data->nonce_s, in eap_aka_process_reauthentication()
1126 data->nonce_s, data->mk, in eap_aka_process_reauthentication()
[all …]
Deap_sim.c28 u8 nonce_mt[EAP_SIM_NONCE_MT_LEN], nonce_s[EAP_SIM_NONCE_S_LEN]; member
470 return eap_sim_msg_finish(msg, data->k_aut, data->nonce_s, in eap_sim_response_reauth()
842 if (eattr.nonce_s == NULL || eattr.counter < 0) { in eap_sim_process_reauthentication()
844 !eattr.nonce_s ? " AT_NONCE_S" : "", in eap_sim_process_reauthentication()
870 os_memcpy(data->nonce_s, eattr.nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_process_reauthentication()
872 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_process_reauthentication()
876 data->nonce_s, data->mk, data->msk, in eap_sim_process_reauthentication()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
Deap_aka.c33 u8 nonce_s[EAP_SIM_NONCE_S_LEN]; member
527 const u8 *nonce_s) in eap_aka_response_reauth() argument
563 return eap_sim_msg_finish(msg, data->k_aut, nonce_s, in eap_aka_response_reauth()
1068 if (eattr.nonce_s == NULL || eattr.counter < 0) { in eap_aka_process_reauthentication()
1070 !eattr.nonce_s ? " AT_NONCE_S" : "", in eap_aka_process_reauthentication()
1094 res = eap_aka_response_reauth(data, id, 1, eattr.nonce_s); in eap_aka_process_reauthentication()
1101 os_memcpy(data->nonce_s, eattr.nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_process_reauthentication()
1103 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_aka_process_reauthentication()
1109 data->nonce_s, in eap_aka_process_reauthentication()
1114 data->nonce_s, data->mk, in eap_aka_process_reauthentication()
[all …]
Deap_sim.c35 u8 nonce_mt[EAP_SIM_NONCE_MT_LEN], nonce_s[EAP_SIM_NONCE_S_LEN]; member
457 return eap_sim_msg_finish(msg, data->k_aut, data->nonce_s, in eap_sim_response_reauth()
829 if (eattr.nonce_s == NULL || eattr.counter < 0) { in eap_sim_process_reauthentication()
831 !eattr.nonce_s ? " AT_NONCE_S" : "", in eap_sim_process_reauthentication()
857 os_memcpy(data->nonce_s, eattr.nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_process_reauthentication()
859 data->nonce_s, EAP_SIM_NONCE_S_LEN); in eap_sim_process_reauthentication()
863 data->nonce_s, data->mk, data->msk, in eap_sim_process_reauthentication()