Lines Matching refs:EAP_GPSK_RAND_LEN
24 u8 rand_server[EAP_GPSK_RAND_LEN];
25 u8 rand_peer[EAP_GPSK_RAND_LEN];
172 if (end - pos < EAP_GPSK_RAND_LEN) {
176 os_memcpy(data->rand_server, pos, EAP_GPSK_RAND_LEN);
178 data->rand_server, EAP_GPSK_RAND_LEN);
179 pos += EAP_GPSK_RAND_LEN;
313 2 * EAP_GPSK_RAND_LEN + 2 + csuite_list_len +
338 if (os_get_random(data->rand_peer, EAP_GPSK_RAND_LEN)) {
346 data->rand_peer, EAP_GPSK_RAND_LEN);
347 os_memcpy(rpos, data->rand_peer, EAP_GPSK_RAND_LEN);
348 rpos += EAP_GPSK_RAND_LEN;
350 os_memcpy(rpos, data->rand_server, EAP_GPSK_RAND_LEN);
351 rpos += EAP_GPSK_RAND_LEN;
396 if (end - pos < EAP_GPSK_RAND_LEN) {
401 if (os_memcmp(pos, data->rand_peer, EAP_GPSK_RAND_LEN) != 0) {
405 data->rand_peer, EAP_GPSK_RAND_LEN);
407 pos, EAP_GPSK_RAND_LEN);
410 pos += EAP_GPSK_RAND_LEN;
412 if (end - pos < EAP_GPSK_RAND_LEN) {
417 if (os_memcmp(pos, data->rand_server, EAP_GPSK_RAND_LEN) != 0) {
421 data->rand_server, EAP_GPSK_RAND_LEN);
423 pos, EAP_GPSK_RAND_LEN);
426 pos += EAP_GPSK_RAND_LEN;