aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/gcmp.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-11-17 18:23:51 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-17 18:34:01 (GMT)
commit84a65fd6a3fca2bd960f5c26fa95d035b1195d87 (patch)
tree6b98fd346d032fec3a9652f40d45a1e4108dacb9 /wlantest/gcmp.c
parent393e90191ea397105d8b797752b693568b611d71 (diff)
downloadhostap-84a65fd6a3fca2bd960f5c26fa95d035b1195d87.zip
hostap-84a65fd6a3fca2bd960f5c26fa95d035b1195d87.tar.gz
hostap-84a65fd6a3fca2bd960f5c26fa95d035b1195d87.tar.bz2
Extend GCMP test vectors to include both MPDUs
IEEE Std 802.11ad-2012 includes two test vectors for GCMP. Verify both of those and also verify that the results match the values in the standard instead of just verifying that decrypted frame matches original. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest/gcmp.c')
-rw-r--r--wlantest/gcmp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wlantest/gcmp.c b/wlantest/gcmp.c
index d8535d0..161b8a7 100644
--- a/wlantest/gcmp.c
+++ b/wlantest/gcmp.c
@@ -41,7 +41,6 @@ static void gcmp_aad_nonce(const struct ieee80211_hdr *hdr, const u8 *data,
}
fc &= ~(WLAN_FC_RETRY | WLAN_FC_PWRMGT | WLAN_FC_MOREDATA);
- fc |= WLAN_FC_ISWEP;
WPA_PUT_LE16(aad, fc);
pos = aad + 2;
os_memcpy(pos, hdr->addr1, 3 * ETH_ALEN);
@@ -131,7 +130,6 @@ u8 * gcmp_encrypt(const u8 *tk, size_t tk_len, u8 *frame, size_t len,
os_memcpy(crypt, frame, hdrlen);
hdr = (struct ieee80211_hdr *) crypt;
- hdr->frame_control |= host_to_le16(WLAN_FC_ISWEP);
pos = crypt + hdrlen;
*pos++ = pn[5]; /* PN0 */
*pos++ = pn[4]; /* PN1 */