Searched refs:EAP_SIM_MAC_LEN (Results 1 – 2 of 2) sorted by relevance
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_sim_common.c | 173 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN || in eap_sim_verify_mac() 175 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN) in eap_sim_verify_mac() 188 os_memset(tmp + (mac - wpabuf_head_u8(req)), 0, EAP_SIM_MAC_LEN); in eap_sim_verify_mac() 197 hmac, EAP_SIM_MAC_LEN); in eap_sim_verify_mac() 200 return (os_memcmp_const(hmac, mac, EAP_SIM_MAC_LEN) == 0) ? 0 : 1; in eap_sim_verify_mac() 217 os_memset(mac, 0, EAP_SIM_MAC_LEN); in eap_sim_add_mac() 224 os_memcpy(mac, hmac, EAP_SIM_MAC_LEN); in eap_sim_add_mac() 226 mac, EAP_SIM_MAC_LEN); in eap_sim_add_mac() 367 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN || in eap_sim_verify_mac_sha256() 369 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN) in eap_sim_verify_mac_sha256() [all …]
|
D | eap_sim_common.h | 14 #define EAP_SIM_MAC_LEN 16 macro
|