Lines Matching refs:hdr2
88 struct eap_psk_hdr_2 *hdr2;
137 sizeof(*hdr2) + data->id_p_len, EAP_CODE_RESPONSE,
141 hdr2 = wpabuf_put(resp, sizeof(*hdr2));
142 hdr2->flags = EAP_PSK_FLAGS_SET_T(1); /* T=1 */
143 os_memcpy(hdr2->rand_s, hdr1->rand_s, EAP_PSK_RAND_LEN);
144 os_memcpy(hdr2->rand_p, data->rand_p, EAP_PSK_RAND_LEN);
160 if (omac1_aes_128(data->ak, buf, buflen, hdr2->mac_p)) {
166 wpa_hexdump(MSG_DEBUG, "EAP-PSK: RAND_P", hdr2->rand_p,
168 wpa_hexdump(MSG_DEBUG, "EAP-PSK: MAC_P", hdr2->mac_p, EAP_PSK_MAC_LEN);