Lines Matching refs:mac
166 const u8 *mac, const u8 *extra, size_t extra_len)
173 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN ||
174 mac < wpabuf_head_u8(req) ||
175 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN)
188 os_memset(tmp + (mac - wpabuf_head_u8(req)), 0, EAP_SIM_MAC_LEN);
200 return (os_memcmp_const(hmac, mac, EAP_SIM_MAC_LEN) == 0) ? 0 : 1;
204 void eap_sim_add_mac(const u8 *k_aut, const u8 *msg, size_t msg_len, u8 *mac,
217 os_memset(mac, 0, EAP_SIM_MAC_LEN);
224 os_memcpy(mac, hmac, EAP_SIM_MAC_LEN);
226 mac, EAP_SIM_MAC_LEN);
360 const u8 *mac, const u8 *extra, size_t extra_len)
367 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN ||
368 mac < wpabuf_head_u8(req) ||
369 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN)
382 os_memset(tmp + (mac - wpabuf_head_u8(req)), 0, EAP_SIM_MAC_LEN);
394 return (os_memcmp_const(hmac, mac, EAP_SIM_MAC_LEN) == 0) ? 0 : 1;
399 u8 *mac, const u8 *extra, size_t extra_len)
411 os_memset(mac, 0, EAP_SIM_MAC_LEN);
418 os_memcpy(mac, hmac, EAP_SIM_MAC_LEN);
420 mac, EAP_SIM_MAC_LEN);
601 attr->mac = apos + 2;
976 size_t mac, iv, encr; /* index from buf */
1023 if (k_aut && msg->mac && type == EAP_TYPE_AKA_PRIME) {
1027 msg->mac, extra, extra_len);
1030 if (k_aut && msg->mac) {
1033 (u8 *) wpabuf_mhead(msg->buf) + msg->mac,
1108 msg->mac = (pos - wpabuf_head_u8(msg->buf)) + 4;