Lines Matching refs:kde

745 			       struct wpa_eapol_ie_parse *kde)  in ft_check_msg_2_of_4()  argument
750 if (wpa_parse_wpa_ie_rsn(kde->rsn_ie, kde->rsn_ie_len, &ie) < 0 || in ft_check_msg_2_of_4()
761 if (!kde->mdie || !kde->ftie) { in ft_check_msg_2_of_4()
763 "message 2/4", kde->mdie ? "FTIE" : "MDIE"); in ft_check_msg_2_of_4()
767 mdie = (struct rsn_mdie *) (kde->mdie + 2); in ft_check_msg_2_of_4()
768 if (kde->mdie[1] < sizeof(struct rsn_mdie) || in ft_check_msg_2_of_4()
776 (kde->ftie[1] != sm->assoc_resp_ftie[1] || in ft_check_msg_2_of_4()
777 os_memcmp(kde->ftie, sm->assoc_resp_ftie, in ft_check_msg_2_of_4()
781 kde->ftie, kde->ftie_len); in ft_check_msg_2_of_4()
885 struct wpa_eapol_ie_parse kde; in wpa_receive() local
1125 if (wpa_parse_kde_ies(key_data, key_data_length, &kde) < 0) { in wpa_receive()
1131 if (kde.rsn_ie) { in wpa_receive()
1132 eapol_key_ie = kde.rsn_ie; in wpa_receive()
1133 eapol_key_ie_len = kde.rsn_ie_len; in wpa_receive()
1134 } else if (kde.osen) { in wpa_receive()
1135 eapol_key_ie = kde.osen; in wpa_receive()
1136 eapol_key_ie_len = kde.osen_len; in wpa_receive()
1138 eapol_key_ie = kde.wpa_ie; in wpa_receive()
1139 eapol_key_ie_len = kde.wpa_ie_len; in wpa_receive()
1161 if (ft && ft_check_msg_2_of_4(wpa_auth, sm, &kde) < 0) { in wpa_receive()
1167 if (kde.ip_addr_req && kde.ip_addr_req[0] && in wpa_receive()
1302 &kde) == 0 && in wpa_receive()
1303 kde.mac_addr) { in wpa_receive()
1410 const u8 *kde, size_t kde_len, in __wpa_send_eapol() argument
1511 if (kde && !encr) { in __wpa_send_eapol()
1512 os_memcpy(key_data, kde, kde_len); in __wpa_send_eapol()
1517 } else if (encr && kde) { in __wpa_send_eapol()
1524 os_memcpy(pos, kde, kde_len); in __wpa_send_eapol()
1611 const u8 *kde, size_t kde_len, in wpa_send_eapol() argument
1621 __wpa_send_eapol(wpa_auth, sm, key_info, key_rsc, nonce, kde, kde_len, in wpa_send_eapol()
2204 u8 rsc[WPA_KEY_RSC_LEN], *_rsc, *gtk, *kde, *pos, dummy_gtk[32]; in SM_STATE() local
2292 kde = os_malloc(kde_len); in SM_STATE()
2293 if (kde == NULL) in SM_STATE()
2296 pos = kde; in SM_STATE()
2304 elen = pos - kde; in SM_STATE()
2305 res = wpa_insert_pmkid(kde, &elen, sm->pmk_r1_name); in SM_STATE()
2309 os_free(kde); in SM_STATE()
2332 kde + kde_len - pos >= 2 + sm->assoc_resp_ftie[1]) { in SM_STATE()
2340 kde + kde_len - pos, in SM_STATE()
2346 os_free(kde); in SM_STATE()
2381 _rsc, sm->ANonce, kde, pos - kde, keyidx, encr); in SM_STATE()
2382 os_free(kde); in SM_STATE()
2568 const u8 *kde; in SM_STATE() local
2609 kde = pos = kde_buf; in SM_STATE()
2615 kde_len = pos - kde; in SM_STATE()
2617 kde = gtk; in SM_STATE()
2625 rsc, gsm->GNonce, kde, kde_len, gsm->GN, 1); in SM_STATE()