Lines Matching refs:gtk
134 * 3/4: one or two RSN IEs + GTK IE (encrypted)
136 * 1/2: GTK IE (encrypted)
1179 const u8 *gtk;
1233 ie->gtk = pos + 2 + RSN_SELECTOR_LEN;
1566 MACSTR " [PTK=%s GTK=%s]", MAC2STR(addr),
1703 u8 gtk[32];
1712 const u8 *_gtk = gd->gtk;
1715 wpa_hexdump_key(MSG_DEBUG, "WPA: Group Key", gd->gtk, gd->gtk_len);
1716 wpa_printf(MSG_DEBUG, "WPA: Installing GTK to the driver "
1721 os_memcpy(gtk_buf, gd->gtk, 16);
1722 os_memcpy(gtk_buf + 16, gd->gtk + 24, 8);
1723 os_memcpy(gtk_buf + 24, gd->gtk + 16, 8);
1732 "GTK to the driver (Group only).");
1739 wpa_printf(MSG_WARNING, "WPA: Failed to set GTK to "
1752 /* Ignore Tx bit for GTK if a pairwise key is used. One AP
1757 wpa_printf(MSG_INFO, "WPA: Tx bit set for GTK, but pairwise "
1767 const u8 *gtk, size_t gtk_len,
1775 * GTK KDE format:
1778 * GTK
1782 wpa_hexdump_key(MSG_DEBUG, "RSN: received GTK in pairwise handshake",
1783 gtk, gtk_len);
1785 if (gtk_len < 2 || gtk_len - 2 > sizeof(gd.gtk))
1788 gd.keyidx = gtk[0] & 0x3;
1790 !!(gtk[0] & BIT(2)));
1791 gtk += 2;
1794 os_memcpy(gd.gtk, gtk, gtk_len);
1801 wpa_printf(MSG_DEBUG, "RSN: Failed to install GTK");
2026 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) {
2027 wpa_printf(MSG_WARNING, "WPA: GTK IE in unencrypted key data");
2101 if (ie.gtk &&
2103 ie.gtk, ie.gtk_len, key_info) < 0) {
2104 wpa_printf(MSG_INFO, "RSN: Failed to configure GTK");
2972 if (ie.gtk && !(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) {
2973 wpa_printf(MSG_WARNING, "WPA: GTK IE in unencrypted key data");
2976 if (ie.gtk == NULL) {
2977 wpa_printf(MSG_INFO, "WPA: No GTK IE in Group Key msg 1/2");
2987 wpa_hexdump(MSG_DEBUG, "RSN: received GTK in group key handshake",
2988 ie.gtk, ie.gtk_len);
2989 gd->keyidx = ie.gtk[0] & 0x3;
2991 !!(ie.gtk[0] & BIT(2)));
2992 if (ie.gtk_len - 2 > sizeof(gd->gtk)) {
2993 wpa_printf(MSG_INFO, "RSN: Too long GTK in GTK IE "
2997 os_memcpy(gd->gtk, ie.gtk + 2, ie.gtk_len - 2);
3043 if (keydatalen > sizeof(gd->gtk)) {
3049 os_memcpy(gd->gtk, key + 1, keydatalen);
3050 rc4_skip(ek, 32, 256, gd->gtk, keydatalen);
3057 if (maxkeylen > sizeof(gd->gtk)) {
3065 (const u8 *) (key + 1), gd->gtk)) {
3067 "failed - could not decrypt GTK");
3152 "completed with " MACSTR " [GTK=%s]",
3383 * to. In addition, key material (PTK, GTK) is configured at the end of a