Lines Matching refs:kde
54 u8 kde[2 + RSN_SELECTOR_LEN + ETH_ALEN + in wpa_smk_send_error() local
62 pos = kde; in wpa_smk_send_error()
77 NULL, NULL, kde, pos - kde, 0, 0, 0); in wpa_smk_send_error()
85 struct wpa_eapol_ie_parse kde; in wpa_smk_m1() local
90 if (wpa_parse_kde_ies(key_data, key_data_len, &kde) < 0) { in wpa_smk_m1()
95 if (kde.rsn_ie == NULL || kde.mac_addr == NULL || in wpa_smk_m1()
96 kde.mac_addr_len < ETH_ALEN) { in wpa_smk_m1()
104 search.addr = kde.mac_addr; in wpa_smk_m1()
110 MAC2STR(kde.mac_addr)); in wpa_smk_m1()
111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, in wpa_smk_m1()
117 buf_len = kde.rsn_ie_len + 2 + RSN_SELECTOR_LEN + ETH_ALEN; in wpa_smk_m1()
122 os_memcpy(buf, kde.rsn_ie, kde.rsn_ie_len); in wpa_smk_m1()
123 pos = buf + kde.rsn_ie_len; in wpa_smk_m1()
148 struct wpa_eapol_ie_parse *kde, in wpa_send_smk_m4() argument
170 pos = wpa_add_kde(pos, RSN_KEY_DATA_MAC_ADDR, kde->mac_addr, ETH_ALEN, in wpa_send_smk_m4()
174 pos = wpa_add_kde(pos, RSN_KEY_DATA_NONCE, kde->nonce, WPA_NONCE_LEN, in wpa_send_smk_m4()
201 struct wpa_eapol_ie_parse *kde, in wpa_send_smk_m5() argument
214 buf_len = kde->rsn_ie_len + in wpa_send_smk_m5()
224 os_memcpy(pos, kde->rsn_ie, kde->rsn_ie_len); in wpa_send_smk_m5()
225 pos += kde->rsn_ie_len; in wpa_send_smk_m5()
236 kde->nonce, WPA_NONCE_LEN); in wpa_send_smk_m5()
249 NULL, kde->nonce, buf, pos - buf, 0, 1, 0); in wpa_send_smk_m5()
259 struct wpa_eapol_ie_parse kde; in wpa_smk_m3() local
263 if (wpa_parse_kde_ies(key_data, key_data_len, &kde) < 0) { in wpa_smk_m3()
268 if (kde.rsn_ie == NULL || in wpa_smk_m3()
269 kde.mac_addr == NULL || kde.mac_addr_len < ETH_ALEN || in wpa_smk_m3()
270 kde.nonce == NULL || kde.nonce_len < WPA_NONCE_LEN) { in wpa_smk_m3()
279 search.addr = kde.mac_addr; in wpa_smk_m3()
285 MAC2STR(kde.mac_addr)); in wpa_smk_m3()
286 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, in wpa_smk_m3()
304 os_memcpy(pos, kde.nonce, WPA_NONCE_LEN); in wpa_smk_m3()
317 wpa_send_smk_m4(wpa_auth, sm, key, &kde, smk); in wpa_smk_m3()
318 wpa_send_smk_m5(wpa_auth, search.sm, key, &kde, smk, sm->addr); in wpa_smk_m3()
330 struct wpa_eapol_ie_parse kde; in wpa_smk_error() local
335 if (wpa_parse_kde_ies(key_data, key_data_len, &kde) < 0) { in wpa_smk_error()
340 if (kde.mac_addr == NULL || kde.mac_addr_len < ETH_ALEN || in wpa_smk_error()
341 kde.error == NULL || kde.error_len < sizeof(error)) { in wpa_smk_error()
347 search.addr = kde.mac_addr; in wpa_smk_error()
353 MAC2STR(kde.mac_addr), MAC2STR(sm->addr)); in wpa_smk_error()
357 os_memcpy(&error, kde.error, sizeof(error)); in wpa_smk_error()
363 MAC2STR(kde.mac_addr), mui, error_type); in wpa_smk_error()