3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 01:19:23 +01:00

unit: update SIM unit tests to derive MAC changes

This commit is contained in:
James Prestwood 2017-08-30 15:13:37 -07:00 committed by Denis Kenzior
parent e29d0dd69c
commit 83995b5099

View File

@ -185,7 +185,7 @@ static void test_calc_mac(const void *data)
memcpy(pkt + pos, ex_sres, 12);
eap_sim_derive_mac(pkt, sizeof(ex_pkt) + 12, ex_k_aut,
eap_sim_derive_mac(EAP_TYPE_SIM, pkt, sizeof(ex_pkt) + 12, ex_k_aut,
pkt + pos - EAP_SIM_MAC_LEN);
assert(!memcmp(ex_mac, pkt + pos - EAP_SIM_MAC_LEN, EAP_SIM_MAC_LEN));