Home | History | Annotate | Download | only in rsn_supp

Lines Matching defs:gtk

498 		MACSTR " [PTK=%s GTK=%s]", MAC2STR(addr),
630 u8 gtk[32];
639 const u8 *_gtk = gd->gtk;
642 wpa_hexdump_key(MSG_DEBUG, "WPA: Group Key", gd->gtk, gd->gtk_len);
644 "WPA: Installing GTK to the driver (keyidx=%d tx=%d len=%d)",
649 os_memcpy(gtk_buf, gd->gtk, 16);
650 os_memcpy(gtk_buf + 16, gd->gtk + 24, 8);
651 os_memcpy(gtk_buf + 24, gd->gtk + 16, 8);
659 "WPA: Failed to set GTK to the driver "
668 "WPA: Failed to set GTK to "
684 /* Ignore Tx bit for GTK if a pairwise key is used. One AP
690 "WPA: Tx bit set for GTK, but pairwise "
700 const u8 *gtk, size_t gtk_len,
707 * GTK KDE format:
710 * GTK
714 wpa_hexdump_key(MSG_DEBUG, "RSN: received GTK in pairwise handshake",
715 gtk, gtk_len);
717 if (gtk_len < 2 || gtk_len - 2 > sizeof(gd.gtk))
720 gd.keyidx = gtk[0] & 0x3;
722 !!(gtk[0] & BIT(2)));
723 gtk += 2;
726 os_memcpy(gd.gtk, gtk, gtk_len);
735 "RSN: Failed to install GTK");
1087 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) {
1089 "WPA: GTK IE in unencrypted key data");
1164 } else if (ie.gtk &&
1166 ie.gtk, ie.gtk_len, key_info) < 0) {
1168 "RSN: Failed to configure GTK");
1178 if (ie.gtk)
1200 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) {
1202 "WPA: GTK IE in unencrypted key data");
1205 if (ie.gtk == NULL) {
1207 "WPA: No GTK IE in Group Key msg 1/2");
1217 wpa_hexdump(MSG_DEBUG, "RSN: received GTK in group key handshake",
1218 ie.gtk, ie.gtk_len);
1219 gd->keyidx = ie.gtk[0] & 0x3;
1221 !!(ie.gtk[0] & BIT(2)));
1222 if (ie.gtk_len - 2 > sizeof(gd->gtk)) {
1224 "RSN: Too long GTK in GTK IE (len=%lu)",
1228 os_memcpy(gd->gtk, ie.gtk + 2, ie.gtk_len - 2);
1267 if (key_data_len > sizeof(gd->gtk)) {
1275 os_memcpy(gd->gtk, key_data, key_data_len);
1276 if (rc4_skip(ek, 32, 256, gd->gtk, key_data_len)) {
1290 if (maxkeylen > sizeof(gd->gtk)) {
1298 if (aes_unwrap(sm->ptk.kek, maxkeylen / 8, key_data, gd->gtk)) {
1301 "GTK");
1390 "completed with " MACSTR " [GTK=%s]",
1591 * to. In addition, key material (PTK, GTK) is configured at the end of a
2698 wpa_printf(MSG_DEBUG, "GTK len mismatch len %d vs %d",
2706 os_memcpy(gd.gtk, buf + 13, gd.gtk_len);
2708 wpa_hexdump_key(MSG_DEBUG, "Install GTK (WNM SLEEP)",
2709 gd.gtk, gd.gtk_len);
2712 wpa_printf(MSG_DEBUG, "Failed to install the GTK in "