]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix CCMP test vector issues
authorHenry Ptasinski <henry@e78com.com>
Thu, 13 Jul 2023 13:29:32 +0000 (15:29 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 11 Aug 2023 08:46:22 +0000 (11:46 +0300)
Commit b20991da6936a1baae9f2239ee127610a6f5335d introduced errors in
the order of arguments to the calls of ccmp_decrypt() and
ccmp_256_decrypt(). Correct the order of arguments.

Fixes: b20991da6936 ("wlantest: MLD MAC Address in CCMP/GCMP AAD/nonce")
Signed-off-by: Henry Ptasinski <henry@e78com.com>
wlantest/test_vectors.c

index 3638f67b64cbc6a8adc0f12ef43b254de8709f32..c228488baf60140c72a886b5088154782bdd97c4 100644 (file)
@@ -120,7 +120,7 @@ static void test_vector_ccmp(void)
 
        wpa_debug_level = MSG_INFO;
        plain = ccmp_decrypt(tk, (const struct ieee80211_hdr *) enc,
-                            enc + 24, NULL, NULL, NULL, enc_len - 24,
+                            NULL, NULL, NULL, enc + 24, enc_len - 24,
                             &plain_len);
        wpa_debug_level = MSG_EXCESSIVE;
        os_free(enc);
@@ -414,7 +414,7 @@ static void test_vector_ccmp_mgmt(void)
 
        wpa_debug_level = MSG_INFO;
        plain = ccmp_decrypt(tk, (const struct ieee80211_hdr *) enc,
-                            enc + 24, NULL, NULL, NULL, enc_len - 24,
+                            NULL, NULL, NULL, enc + 24, enc_len - 24,
                             &plain_len);
        wpa_debug_level = MSG_EXCESSIVE;
        os_free(enc);
@@ -789,7 +789,7 @@ static int test_vector_ccmp_256(void)
 
        wpa_debug_level = MSG_INFO;
        plain = ccmp_256_decrypt(tk, (const struct ieee80211_hdr *) enc,
-                                enc + 24, NULL, NULL, NULL, enc_len - 24,
+                                NULL, NULL, NULL, enc + 24, enc_len - 24,
                                 &plain_len);
        wpa_debug_level = MSG_EXCESSIVE;
        os_free(enc);