Fix CCMP test vector issues
Commitb20991da69
introduced errors in the order of arguments to the calls of ccmp_decrypt() and ccmp_256_decrypt(). Correct the order of arguments. Fixes:b20991da69
("wlantest: MLD MAC Address in CCMP/GCMP AAD/nonce") Signed-off-by: Henry Ptasinski <henry@e78com.com>
This commit is contained in:
parent
b7db495ad9
commit
232667eafe
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue