Lines Matching refs:gtk
857 u8 gtk[32]; member
866 const u8 *_gtk = gd->gtk; in wpa_supplicant_install_gtk()
870 if ((sm->gtk.gtk_len == (size_t) gd->gtk_len && in wpa_supplicant_install_gtk()
871 os_memcmp(sm->gtk.gtk, gd->gtk, sm->gtk.gtk_len) == 0) || in wpa_supplicant_install_gtk()
873 os_memcmp(sm->gtk_wnm_sleep.gtk, gd->gtk, in wpa_supplicant_install_gtk()
881 wpa_hexdump_key(MSG_DEBUG, "WPA: Group Key", gd->gtk, gd->gtk_len); in wpa_supplicant_install_gtk()
888 os_memcpy(gtk_buf, gd->gtk, 16); in wpa_supplicant_install_gtk()
889 os_memcpy(gtk_buf + 16, gd->gtk + 24, 8); in wpa_supplicant_install_gtk()
890 os_memcpy(gtk_buf + 24, gd->gtk + 16, 8); in wpa_supplicant_install_gtk()
917 os_memcpy(sm->gtk_wnm_sleep.gtk, gd->gtk, in wpa_supplicant_install_gtk()
920 sm->gtk.gtk_len = gd->gtk_len; in wpa_supplicant_install_gtk()
921 os_memcpy(sm->gtk.gtk, gd->gtk, sm->gtk.gtk_len); in wpa_supplicant_install_gtk()
978 const u8 *gtk, size_t gtk_len, in wpa_supplicant_pairwise_gtk() argument
994 gtk, gtk_len); in wpa_supplicant_pairwise_gtk()
996 if (gtk_len < 2 || gtk_len - 2 > sizeof(gd.gtk)) in wpa_supplicant_pairwise_gtk()
999 gd.keyidx = gtk[0] & 0x3; in wpa_supplicant_pairwise_gtk()
1001 !!(gtk[0] & BIT(2))); in wpa_supplicant_pairwise_gtk()
1002 gtk += 2; in wpa_supplicant_pairwise_gtk()
1005 os_memcpy(gd.gtk, gtk, gtk_len); in wpa_supplicant_pairwise_gtk()
1427 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) { in wpa_supplicant_process_3_of_4()
1523 } else if (!ie.gtk && sm->proto == WPA_PROTO_RSN) { in wpa_supplicant_process_3_of_4()
1527 } else if (ie.gtk && in wpa_supplicant_process_3_of_4()
1529 ie.gtk, ie.gtk_len, key_info) < 0) { in wpa_supplicant_process_3_of_4()
1541 if (sm->group_cipher == WPA_CIPHER_GTK_NOT_USED || ie.gtk) in wpa_supplicant_process_3_of_4()
1545 if (ie.gtk) in wpa_supplicant_process_3_of_4()
1586 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) { in wpa_supplicant_process_1_of_2_rsn()
1591 if (ie.gtk == NULL) { in wpa_supplicant_process_1_of_2_rsn()
1624 ie.gtk, ie.gtk_len); in wpa_supplicant_process_1_of_2_rsn()
1625 gd->keyidx = ie.gtk[0] & 0x3; in wpa_supplicant_process_1_of_2_rsn()
1627 !!(ie.gtk[0] & BIT(2))); in wpa_supplicant_process_1_of_2_rsn()
1628 if (ie.gtk_len - 2 > sizeof(gd->gtk)) { in wpa_supplicant_process_1_of_2_rsn()
1634 os_memcpy(gd->gtk, ie.gtk + 2, ie.gtk_len - 2); in wpa_supplicant_process_1_of_2_rsn()
1681 if (key_data_len > sizeof(gd->gtk)) { in wpa_supplicant_process_1_of_2_wpa()
1689 os_memcpy(gd->gtk, key_data, key_data_len); in wpa_supplicant_process_1_of_2_wpa()
1690 if (rc4_skip(ek, 32, 256, gd->gtk, key_data_len)) { in wpa_supplicant_process_1_of_2_wpa()
1705 if (maxkeylen > sizeof(gd->gtk)) { in wpa_supplicant_process_1_of_2_wpa()
1714 key_data, gd->gtk)) { in wpa_supplicant_process_1_of_2_wpa()
2740 os_memset(&sm->gtk, 0, sizeof(sm->gtk)); in wpa_sm_notify_assoc()
3346 os_memset(&sm->gtk, 0, sizeof(sm->gtk)); in wpa_sm_drop_sa()
3414 os_memcpy(gd.gtk, buf + 13, gd.gtk_len); in wpa_wnmsleep_install_key()
3417 gd.gtk, gd.gtk_len); in wpa_wnmsleep_install_key()
4368 if (!kde.gtk) { in fils_process_assoc_resp()
4378 wpa_hexdump_key(MSG_DEBUG, "FILS: Received GTK", kde.gtk, kde.gtk_len); in fils_process_assoc_resp()
4379 gd.keyidx = kde.gtk[0] & 0x3; in fils_process_assoc_resp()
4381 !!(kde.gtk[0] & BIT(2))); in fils_process_assoc_resp()
4382 if (kde.gtk_len - 2 > sizeof(gd.gtk)) { in fils_process_assoc_resp()
4387 os_memcpy(gd.gtk, kde.gtk + 2, kde.gtk_len - 2); in fils_process_assoc_resp()