Searched refs:EAP_SAKE_RAND_LEN (Results 1 – 4 of 4) sorted by relevance
/freebsd/contrib/wpa/src/eap_common/ |
H A D | eap_sake_common.c | 26 if (len != EAP_SAKE_RAND_LEN) { in eap_sake_parse_add_attr() 35 if (len != EAP_SAKE_RAND_LEN) { in eap_sake_parse_add_attr() 286 rand_p, EAP_SAKE_RAND_LEN, rand_s, EAP_SAKE_RAND_LEN, in eap_sake_derive_keys() 291 rand_s, EAP_SAKE_RAND_LEN, rand_p, EAP_SAKE_RAND_LEN, in eap_sake_derive_keys() 303 rand_p, EAP_SAKE_RAND_LEN, rand_s, EAP_SAKE_RAND_LEN, in eap_sake_derive_keys() 308 rand_s, EAP_SAKE_RAND_LEN, rand_p, EAP_SAKE_RAND_LEN, in eap_sake_derive_keys() 342 u8 _rand[2 * EAP_SAKE_RAND_LEN]; in eap_sake_compute_mic() 364 os_memcpy(_rand, rand_s, EAP_SAKE_RAND_LEN); in eap_sake_compute_mic() 365 os_memcpy(_rand + EAP_SAKE_RAND_LEN, rand_p, in eap_sake_compute_mic() 366 EAP_SAKE_RAND_LEN); in eap_sake_compute_mic() [all …]
|
H A D | eap_sake_common.h | 35 #define EAP_SAKE_RAND_LEN 16 macro
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_sake.c | 20 u8 rand_s[EAP_SAKE_RAND_LEN]; 21 u8 rand_p[EAP_SAKE_RAND_LEN]; 215 os_memcpy(data->rand_s, attr.rand_s, EAP_SAKE_RAND_LEN); in eap_sake_process_challenge() 217 data->rand_s, EAP_SAKE_RAND_LEN); in eap_sake_process_challenge() 219 if (random_get_bytes(data->rand_p, EAP_SAKE_RAND_LEN)) { in eap_sake_process_challenge() 224 data->rand_p, EAP_SAKE_RAND_LEN); in eap_sake_process_challenge() 248 rlen = 2 + EAP_SAKE_RAND_LEN + 2 + EAP_SAKE_MIC_LEN; in eap_sake_process_challenge() 257 data->rand_p, EAP_SAKE_RAND_LEN); in eap_sake_process_challenge() 472 *len = 1 + 2 * EAP_SAKE_RAND_LEN; in eap_sake_get_session_id() 478 os_memcpy(id + 1, data->rand_s, EAP_SAKE_RAND_LEN); in eap_sake_get_session_id() [all …]
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_sake.c | 19 u8 rand_s[EAP_SAKE_RAND_LEN]; 20 u8 rand_p[EAP_SAKE_RAND_LEN]; 153 if (random_get_bytes(data->rand_s, EAP_SAKE_RAND_LEN)) { in eap_sake_build_challenge() 159 data->rand_s, EAP_SAKE_RAND_LEN); in eap_sake_build_challenge() 161 plen = 2 + EAP_SAKE_RAND_LEN + 2 + sm->cfg->server_id_len; in eap_sake_build_challenge() 170 data->rand_s, EAP_SAKE_RAND_LEN); in eap_sake_build_challenge() 323 os_memcpy(data->rand_p, attr.rand_p, EAP_SAKE_RAND_LEN); in eap_sake_process_challenge() 515 *len = 1 + 2 * EAP_SAKE_RAND_LEN; in eap_sake_get_session_id() 521 os_memcpy(id + 1, data->rand_s, EAP_SAKE_RAND_LEN); in eap_sake_get_session_id() 522 os_memcpy(id + 1 + EAP_SAKE_RAND_LEN, data->rand_s, EAP_SAKE_RAND_LEN); in eap_sake_get_session_id()
|