Home
last modified time | relevance | path

Searched refs:EAP_SIM_MAC_LEN (Results 1 – 12 of 12) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_sim_common.c173 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 …]
Deap_sim_common.h14 #define EAP_SIM_MAC_LEN 16 macro
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_sim_common.c173 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 …]
Deap_sim_common.h14 #define EAP_SIM_MAC_LEN 16 macro
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_sim.c35 u8 reauth_mac[EAP_SIM_MAC_LEN];
987 os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
989 os_memset(data->reauth_mac, 0x12, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
991 os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
994 data->reauth_mac, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
1257 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_sim_get_session_id()
1270 EAP_SIM_MAC_LEN); in eap_sim_get_session_id()
Deap_aka.c34 u8 reauth_mac[EAP_SIM_MAC_LEN];
1258 os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); in eap_aka_process_reauthentication()
1260 data->reauth_mac, EAP_SIM_MAC_LEN); in eap_aka_process_reauthentication()
1536 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_aka_get_session_id()
1549 EAP_SIM_MAC_LEN); in eap_aka_get_session_id()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_sim.c35 u8 reauth_mac[EAP_SIM_MAC_LEN];
999 os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
1001 os_memset(data->reauth_mac, 0x12, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
1003 os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
1006 data->reauth_mac, EAP_SIM_MAC_LEN); in eap_sim_process_reauthentication()
1269 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_sim_get_session_id()
1282 EAP_SIM_MAC_LEN); in eap_sim_get_session_id()
Deap_aka.c34 u8 reauth_mac[EAP_SIM_MAC_LEN];
1272 os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); in eap_aka_process_reauthentication()
1274 data->reauth_mac, EAP_SIM_MAC_LEN); in eap_aka_process_reauthentication()
1550 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_aka_get_session_id()
1563 EAP_SIM_MAC_LEN); in eap_aka_get_session_id()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_sim.c29 u8 reauth_mac[EAP_SIM_MAC_LEN];
295 wpabuf_head_u8(buf) + wpabuf_len(buf) - EAP_SIM_MAC_LEN, in eap_sim_build_reauth()
296 EAP_SIM_MAC_LEN); in eap_sim_build_reauth()
852 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_sim_get_session_id()
865 EAP_SIM_MAC_LEN); in eap_sim_get_session_id()
Deap_server_aka.c33 u8 reauth_mac[EAP_SIM_MAC_LEN];
598 wpabuf_head_u8(buf) + wpabuf_len(buf) - EAP_SIM_MAC_LEN, in eap_aka_build_reauth()
599 EAP_SIM_MAC_LEN); in eap_aka_build_reauth()
1327 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_aka_get_session_id()
1340 EAP_SIM_MAC_LEN); in eap_aka_get_session_id()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_sim.c29 u8 reauth_mac[EAP_SIM_MAC_LEN];
295 wpabuf_head_u8(buf) + wpabuf_len(buf) - EAP_SIM_MAC_LEN, in eap_sim_build_reauth()
296 EAP_SIM_MAC_LEN); in eap_sim_build_reauth()
854 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_sim_get_session_id()
867 EAP_SIM_MAC_LEN); in eap_sim_get_session_id()
Deap_server_aka.c33 u8 reauth_mac[EAP_SIM_MAC_LEN];
598 wpabuf_head_u8(buf) + wpabuf_len(buf) - EAP_SIM_MAC_LEN, in eap_aka_build_reauth()
599 EAP_SIM_MAC_LEN); in eap_aka_build_reauth()
1329 *len = 1 + EAP_SIM_NONCE_S_LEN + EAP_SIM_MAC_LEN; in eap_aka_get_session_id()
1342 EAP_SIM_MAC_LEN); in eap_aka_get_session_id()