unit: update SIM unit tests to derive MAC changes
This commit is contained in:
parent
e29d0dd69c
commit
83995b5099
|
@ -185,7 +185,7 @@ static void test_calc_mac(const void *data)
|
||||||
|
|
||||||
memcpy(pkt + pos, ex_sres, 12);
|
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);
|
pkt + pos - EAP_SIM_MAC_LEN);
|
||||||
|
|
||||||
assert(!memcmp(ex_mac, pkt + pos - EAP_SIM_MAC_LEN, EAP_SIM_MAC_LEN));
|
assert(!memcmp(ex_mac, pkt + pos - EAP_SIM_MAC_LEN, EAP_SIM_MAC_LEN));
|
||||||
|
|
Loading…
Reference in New Issue