Searched refs:EAP_GPSK_RAND_LEN (Results 1 – 4 of 4) sorted by relevance
/hostap-3.6.0/src/eap_server/ |
D | eap_server_gpsk.c | 19 u8 rand_server[EAP_GPSK_RAND_LEN]; 20 u8 rand_peer[EAP_GPSK_RAND_LEN]; 112 if (random_get_bytes(data->rand_server, EAP_GPSK_RAND_LEN)) { in eap_gpsk_build_gpsk_1() 118 data->rand_server, EAP_GPSK_RAND_LEN); in eap_gpsk_build_gpsk_1() 120 len = 1 + 2 + sm->cfg->server_id_len + EAP_GPSK_RAND_LEN + 2 + in eap_gpsk_build_gpsk_1() 134 wpabuf_put_data(req, data->rand_server, EAP_GPSK_RAND_LEN); in eap_gpsk_build_gpsk_1() 155 len = 1 + 2 * EAP_GPSK_RAND_LEN + 2 + sm->cfg->server_id_len + in eap_gpsk_build_gpsk_3() 169 wpabuf_put_data(req, data->rand_peer, EAP_GPSK_RAND_LEN); in eap_gpsk_build_gpsk_3() 170 wpabuf_put_data(req, data->rand_server, EAP_GPSK_RAND_LEN); in eap_gpsk_build_gpsk_3() 306 if (end - pos < EAP_GPSK_RAND_LEN) { in eap_gpsk_process_gpsk_2() [all …]
|
/hostap-3.6.0/src/eap_peer/ |
D | eap_gpsk.c | 18 u8 rand_server[EAP_GPSK_RAND_LEN]; 19 u8 rand_peer[EAP_GPSK_RAND_LEN]; 179 if (end - pos < EAP_GPSK_RAND_LEN) { in eap_gpsk_process_rand_server() 183 os_memcpy(data->rand_server, pos, EAP_GPSK_RAND_LEN); in eap_gpsk_process_rand_server() 185 data->rand_server, EAP_GPSK_RAND_LEN); in eap_gpsk_process_rand_server() 186 pos += EAP_GPSK_RAND_LEN; in eap_gpsk_process_rand_server() 326 2 * EAP_GPSK_RAND_LEN + 2 + csuite_list_len + in eap_gpsk_send_gpsk_2() 345 if (random_get_bytes(data->rand_peer, EAP_GPSK_RAND_LEN)) { in eap_gpsk_send_gpsk_2() 353 data->rand_peer, EAP_GPSK_RAND_LEN); in eap_gpsk_send_gpsk_2() 354 wpabuf_put_data(resp, data->rand_peer, EAP_GPSK_RAND_LEN); in eap_gpsk_send_gpsk_2() [all …]
|
/hostap-3.6.0/src/eap_common/ |
D | eap_gpsk_common.c | 299 seed = os_malloc(2 * EAP_GPSK_RAND_LEN + id_server_len + id_peer_len); in eap_gpsk_derive_keys() 307 os_memcpy(pos, rand_peer, EAP_GPSK_RAND_LEN); in eap_gpsk_derive_keys() 308 pos += EAP_GPSK_RAND_LEN; in eap_gpsk_derive_keys() 311 os_memcpy(pos, rand_server, EAP_GPSK_RAND_LEN); in eap_gpsk_derive_keys() 312 pos += EAP_GPSK_RAND_LEN; in eap_gpsk_derive_keys() 443 seed = os_malloc(2 * EAP_GPSK_RAND_LEN + id_server_len + id_peer_len); in eap_gpsk_derive_session_id() 451 os_memcpy(pos, rand_peer, EAP_GPSK_RAND_LEN); in eap_gpsk_derive_session_id() 452 pos += EAP_GPSK_RAND_LEN; in eap_gpsk_derive_session_id() 455 os_memcpy(pos, rand_server, EAP_GPSK_RAND_LEN); in eap_gpsk_derive_session_id() 456 pos += EAP_GPSK_RAND_LEN; in eap_gpsk_derive_session_id()
|
D | eap_gpsk_common.h | 24 #define EAP_GPSK_RAND_LEN 32 macro
|