Lines Matching refs:ver

788 wpa_eapol_key_mic(uint8_t *key, int ver, uint8_t *buf, size_t len, uint8_t *mic)  in wpa_eapol_key_mic()  argument
790 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4) { in wpa_eapol_key_mic()
792 } else if (ver == WPA_KEY_INFO_TYPE_HMAC_SHA1_AES) { in wpa_eapol_key_mic()
808 int key_info, ver; in wpa_supplicant_key_request() local
812 ver = WPA_KEY_INFO_TYPE_HMAC_SHA1_AES; in wpa_supplicant_key_request()
814 ver = WPA_KEY_INFO_TYPE_HMAC_MD5_RC4; in wpa_supplicant_key_request()
842 key_info = WPA_KEY_INFO_REQUEST | ver; in wpa_supplicant_key_request()
858 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, (uint8_t *)hdr, in wpa_supplicant_key_request()
872 unsigned char *src_addr, struct wpa_eapol_key *key, int ver) in wpa_supplicant_process_1_of_4() argument
886 MACSTR " (ver=%d)", MAC2STR(src_addr), ver); in wpa_supplicant_process_1_of_4()
953 reply->key_info = BE_16(ver | WPA_KEY_INFO_KEY_TYPE | WPA_KEY_INFO_MIC); in wpa_supplicant_process_1_of_4()
987 wpa_eapol_key_mic(wpa_s->tptk.mic_key, ver, (uint8_t *)hdr, in wpa_supplicant_process_1_of_4()
1105 int extra_len, int ver) in wpa_supplicant_process_3_of_4() argument
1118 MACSTR " (ver=%d)", MAC2STR(src_addr), ver); in wpa_supplicant_process_3_of_4()
1223 reply->key_info = BE_16(ver | WPA_KEY_INFO_KEY_TYPE | in wpa_supplicant_process_3_of_4()
1232 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, (uint8_t *)hdr, in wpa_supplicant_process_3_of_4()
1298 int extra_len, int ver) in wpa_supplicant_process_1_of_2() argument
1313 MACSTR " (ver=%d)", MAC2STR(src_addr), ver); in wpa_supplicant_process_1_of_2()
1363 if (ver == WPA_KEY_INFO_TYPE_HMAC_SHA1_AES) in wpa_supplicant_process_1_of_2()
1423 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4) { in wpa_supplicant_process_1_of_2()
1428 } else if (ver == WPA_KEY_INFO_TYPE_HMAC_SHA1_AES) { in wpa_supplicant_process_1_of_2()
1504 BE_16(ver | WPA_KEY_INFO_MIC | WPA_KEY_INFO_SECURE | in wpa_supplicant_process_1_of_2()
1512 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, (uint8_t *)hdr, in wpa_supplicant_process_1_of_2()
1530 struct wpa_eapol_key *key, int ver, uint8_t *buf, size_t len) in wpa_supplicant_verify_eapol_key_mic() argument
1538 wpa_eapol_key_mic(wpa_s->tptk.mic_key, ver, buf, len, in wpa_supplicant_verify_eapol_key_mic()
1554 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, buf, len, in wpa_supplicant_verify_eapol_key_mic()
1580 struct wpa_eapol_key *key, int ver) in wpa_supplicant_decrypt_key_data() argument
1596 if (ver == WPA_KEY_INFO_TYPE_HMAC_MD5_RC4) { in wpa_supplicant_decrypt_key_data()
1601 } else if (ver == WPA_KEY_INFO_TYPE_HMAC_SHA1_AES) { in wpa_supplicant_decrypt_key_data()
1639 int key_info, ver; in wpa_sm_rx_eapol() local
1683 ver = key_info & WPA_KEY_INFO_TYPE_MASK; in wpa_sm_rx_eapol()
1684 if (ver != WPA_KEY_INFO_TYPE_HMAC_MD5_RC4 && in wpa_sm_rx_eapol()
1685 ver != WPA_KEY_INFO_TYPE_HMAC_SHA1_AES) { in wpa_sm_rx_eapol()
1687 "version %d.", ver); in wpa_sm_rx_eapol()
1692 ver != WPA_KEY_INFO_TYPE_HMAC_SHA1_AES) { in wpa_sm_rx_eapol()
1694 "descriptor version (%d) is not 2.", ver); in wpa_sm_rx_eapol()
1729 wpa_supplicant_verify_eapol_key_mic(wpa_s, key, ver, buf, in wpa_sm_rx_eapol()
1738 wpa_supplicant_decrypt_key_data(wpa_s, key, ver)) in wpa_sm_rx_eapol()
1750 extra_len, ver); in wpa_sm_rx_eapol()
1754 ver); in wpa_sm_rx_eapol()
1760 extra_len, ver); in wpa_sm_rx_eapol()