From 232667eafe0d79742bf0faa927c143a35e555967 Mon Sep 17 00:00:00 2001 From: Henry Ptasinski Date: Thu, 13 Jul 2023 15:29:32 +0200 Subject: [PATCH] Fix CCMP test vector issues 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 --- wlantest/test_vectors.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wlantest/test_vectors.c b/wlantest/test_vectors.c index 3638f67b6..c228488ba 100644 --- a/wlantest/test_vectors.c +++ b/wlantest/test_vectors.c @@ -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);