From: Henry Ptasinski Date: Thu, 13 Jul 2023 13:29:32 +0000 (+0200) Subject: Fix CCMP test vector issues X-Git-Tag: hostap_2_11~1055 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232667eafe0d79742bf0faa927c143a35e555967;p=thirdparty%2Fhostap.git 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 --- 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);