mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 22:42:37 +01:00
unit: Excercise eapol_verify_ptk_4_of_4
This commit is contained in:
parent
85e54c66fe
commit
a1d00805a4
@ -500,6 +500,7 @@ static void eapol_4way_test(const void *data)
|
||||
const struct eapol_key *step1;
|
||||
const struct eapol_key *step2;
|
||||
const struct eapol_key *step3;
|
||||
const struct eapol_key *step4;
|
||||
|
||||
step1 = eapol_verify_ptk_1_of_4(eapol_key_data_3,
|
||||
sizeof(eapol_key_data_3));
|
||||
@ -546,6 +547,10 @@ static void eapol_4way_test(const void *data)
|
||||
assert(step3);
|
||||
assert(!memcmp(anonce, step3->key_nonce, sizeof(step3->key_nonce)));
|
||||
|
||||
step4 = eapol_verify_ptk_4_of_4(eapol_key_data_6,
|
||||
sizeof(eapol_key_data_6));
|
||||
assert(step4);
|
||||
|
||||
l_free(ptk);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user