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
1 changed files with 1 additions and 1 deletions

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));