Home | History | Annotate | Download | only in rsn_supp

Lines Matching refs:gtk

463 		MACSTR " [PTK=%s GTK=%s]", MAC2STR(addr),
595 u8 gtk[32];
604 const u8 *_gtk = gd->gtk;
607 wpa_hexdump_key(MSG_DEBUG, "WPA: Group Key", gd->gtk, gd->gtk_len);
609 "WPA: Installing GTK to the driver (keyidx=%d tx=%d len=%d)",
614 os_memcpy(gtk_buf, gd->gtk, 16);
615 os_memcpy(gtk_buf + 16, gd->gtk + 24, 8);
616 os_memcpy(gtk_buf + 24, gd->gtk + 16, 8);
624 "WPA: Failed to set GTK to the driver "
632 "WPA: Failed to set GTK to "
646 /* Ignore Tx bit for GTK if a pairwise key is used. One AP
652 "WPA: Tx bit set for GTK, but pairwise "
662 const u8 *gtk, size_t gtk_len,
669 * GTK KDE format:
672 * GTK
676 wpa_hexdump_key(MSG_DEBUG, "RSN: received GTK in pairwise handshake",
677 gtk, gtk_len);
679 if (gtk_len < 2 || gtk_len - 2 > sizeof(gd.gtk))
682 gd.keyidx = gtk[0] & 0x3;
684 !!(gtk[0] & BIT(2)));
685 gtk += 2;
688 os_memcpy(gd.gtk, gtk, gtk_len);
696 "RSN: Failed to install GTK");
1052 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) {
1054 "WPA: GTK IE in unencrypted key data");
1115 if (ie.gtk &&
1117 ie.gtk, ie.gtk_len, key_info) < 0) {
1119 "RSN: Failed to configure GTK");
1150 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) {
1152 "WPA: GTK IE in unencrypted key data");
1155 if (ie.gtk == NULL) {
1157 "WPA: No GTK
1167 wpa_hexdump(MSG_DEBUG, "RSN: received GTK in group key handshake",
1168 ie.gtk, ie.gtk_len);
1169 gd->keyidx = ie.gtk[0] & 0x3;
1171 !!(ie.gtk[0] & BIT(2)));
1172 if (ie.gtk_len - 2 > sizeof(gd->gtk)) {
1174 "RSN: Too long GTK in GTK IE (len=%lu)",
1178 os_memcpy(gd->gtk, ie.gtk + 2, ie.gtk_len - 2);
1226 if (keydatalen > sizeof(gd->gtk)) {
1232 os_memcpy(gd->gtk, key + 1, keydatalen);
1233 if (rc4_skip(ek, 32, 256, gd->gtk, keydatalen)) {
1245 if (maxkeylen > sizeof(gd->gtk)) {
1254 (const u8 *) (key + 1), gd->gtk)) {
1257 "GTK");
1346 "completed with " MACSTR " [GTK=%s]",
1543 * to. In addition, key material (PTK, GTK) is configured at the end of a
2663 wpa_printf(MSG_DEBUG, "GTK len mismatch len %d vs %d",
2671 os_memcpy(gd.gtk, buf + 13, gd.gtk_len);
2673 wpa_hexdump_key(MSG_DEBUG, "Install GTK (WNM SLEEP)",
2674 gd.gtk, gd.gtk_len);
2676 wpa_printf(MSG_DEBUG, "Failed to install the GTK in "