Home
last modified time | relevance | path

Searched refs:pac_key (Results 1 – 22 of 22) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_fast.c128 u8 *buf, *pos, *end, *pac_key = NULL; in eap_fast_session_ticket_cb() local
202 pac_key = pos; in eap_fast_session_ticket_cb()
205 pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_session_ticket_cb()
227 if (pac_key == NULL) { in eap_fast_session_ticket_cb()
263 eap_fast_derive_master_secret(pac_key, server_random, client_random, in eap_fast_session_ticket_cb()
685 u8 pac_key[EAP_FAST_PAC_KEY_LEN]; in eap_fast_build_pac() local
695 if (random_get_bytes(pac_key, EAP_FAST_PAC_KEY_LEN) < 0 || in eap_fast_build_pac()
699 pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
712 os_memcpy(pos, pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
775 eap_fast_put_tlv(buf, PAC_TYPE_PAC_KEY, pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
Deap_server_teap.c138 u8 *buf, *pos, *end, *pac_key = NULL; in eap_teap_session_ticket_cb() local
210 pac_key = pos; in eap_teap_session_ticket_cb()
213 pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_session_ticket_cb()
235 if (!pac_key) { in eap_teap_session_ticket_cb()
274 os_memcpy(master_secret, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_session_ticket_cb()
652 u8 pac_key[EAP_TEAP_PAC_KEY_LEN]; in eap_teap_build_pac() local
664 if (random_get_bytes(pac_key, EAP_TEAP_PAC_KEY_LEN) < 0 || in eap_teap_build_pac()
668 pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
681 os_memcpy(pos, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
746 eap_teap_put_tlv(buf, PAC_TYPE_PAC_KEY, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_fast.c128 u8 *buf, *pos, *end, *pac_key = NULL; in eap_fast_session_ticket_cb() local
202 pac_key = pos; in eap_fast_session_ticket_cb()
205 pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_session_ticket_cb()
227 if (pac_key == NULL) { in eap_fast_session_ticket_cb()
263 eap_fast_derive_master_secret(pac_key, server_random, client_random, in eap_fast_session_ticket_cb()
687 u8 pac_key[EAP_FAST_PAC_KEY_LEN]; in eap_fast_build_pac() local
697 if (random_get_bytes(pac_key, EAP_FAST_PAC_KEY_LEN) < 0 || in eap_fast_build_pac()
701 pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
714 os_memcpy(pos, pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
777 eap_fast_put_tlv(buf, PAC_TYPE_PAC_KEY, pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
Deap_server_teap.c144 u8 *buf, *pos, *end, *pac_key = NULL; in eap_teap_session_ticket_cb() local
216 pac_key = pos; in eap_teap_session_ticket_cb()
219 pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_session_ticket_cb()
241 if (!pac_key) { in eap_teap_session_ticket_cb()
280 os_memcpy(master_secret, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_session_ticket_cb()
714 u8 pac_key[EAP_TEAP_PAC_KEY_LEN]; in eap_teap_build_pac() local
726 if (random_get_bytes(pac_key, EAP_TEAP_PAC_KEY_LEN) < 0 || in eap_teap_build_pac()
730 pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
743 os_memcpy(pos, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
808 eap_teap_put_tlv(buf, PAC_TYPE_PAC_KEY, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_fast_pac.c157 os_memcpy(pac->pac_key, entry->pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_add_pac()
355 os_memcpy(pac->pac_key, key, EAP_FAST_PAC_KEY_LEN); in eap_fast_parse_pac_key()
586 pac->pac_key, EAP_FAST_PAC_KEY_LEN, 0); in eap_fast_add_pac_data()
813 os_memcpy(pac->pac_key, pos, EAP_FAST_PAC_KEY_LEN); in eap_fast_load_pac_bin()
903 os_memcpy(pos, pac->pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_save_pac_bin()
Deap_teap_pac.c157 os_memcpy(pac->pac_key, entry->pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_add_pac()
356 os_memcpy(pac->pac_key, key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_parse_pac_key()
591 pac->pac_key, EAP_TEAP_PAC_KEY_LEN, 0); in eap_teap_add_pac_data()
817 os_memcpy(pac->pac_key, pos, EAP_TEAP_PAC_KEY_LEN); in eap_teap_load_pac_bin()
907 os_memcpy(pos, pac->pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_save_pac_bin()
Deap_teap_pac.h17 u8 pac_key[EAP_TEAP_PAC_KEY_LEN]; member
Deap_fast_pac.h17 u8 pac_key[EAP_FAST_PAC_KEY_LEN]; member
Deap_fast.c106 eap_fast_derive_master_secret(data->current_pac->pac_key, in eap_fast_session_ticket_cb()
863 os_memcpy(entry->pac_key, pos, len); in eap_fast_parse_pac_tlv()
Deap_teap.c110 os_memcpy(master_secret, data->current_pac->pac_key, in eap_teap_session_ticket_cb()
938 os_memcpy(entry->pac_key, pos, len); in eap_teap_parse_pac_tlv()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_teap_pac.c157 os_memcpy(pac->pac_key, entry->pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_add_pac()
356 os_memcpy(pac->pac_key, key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_parse_pac_key()
591 pac->pac_key, EAP_TEAP_PAC_KEY_LEN, 0); in eap_teap_add_pac_data()
817 os_memcpy(pac->pac_key, pos, EAP_TEAP_PAC_KEY_LEN); in eap_teap_load_pac_bin()
907 os_memcpy(pos, pac->pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_save_pac_bin()
Deap_fast_pac.c157 os_memcpy(pac->pac_key, entry->pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_add_pac()
355 os_memcpy(pac->pac_key, key, EAP_FAST_PAC_KEY_LEN); in eap_fast_parse_pac_key()
586 pac->pac_key, EAP_FAST_PAC_KEY_LEN, 0); in eap_fast_add_pac_data()
813 os_memcpy(pac->pac_key, pos, EAP_FAST_PAC_KEY_LEN); in eap_fast_load_pac_bin()
903 os_memcpy(pos, pac->pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_save_pac_bin()
Deap_fast_pac.h17 u8 pac_key[EAP_FAST_PAC_KEY_LEN]; member
Deap_teap_pac.h17 u8 pac_key[EAP_TEAP_PAC_KEY_LEN]; member
Deap_fast.c106 eap_fast_derive_master_secret(data->current_pac->pac_key, in eap_fast_session_ticket_cb()
843 os_memcpy(entry->pac_key, pos, len); in eap_fast_parse_pac_tlv()
Deap_teap.c109 os_memcpy(master_secret, data->current_pac->pac_key, in eap_teap_session_ticket_cb()
883 os_memcpy(entry->pac_key, pos, len); in eap_teap_parse_pac_tlv()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_fast_common.c68 void eap_fast_derive_master_secret(const u8 *pac_key, const u8 *server_random, in eap_fast_derive_master_secret() argument
87 sha1_t_prf(pac_key, EAP_FAST_PAC_KEY_LEN, in eap_fast_derive_master_secret()
Deap_fast_common.h98 void eap_fast_derive_master_secret(const u8 *pac_key, const u8 *server_random,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_fast_common.c68 void eap_fast_derive_master_secret(const u8 *pac_key, const u8 *server_random, in eap_fast_derive_master_secret() argument
87 sha1_t_prf(pac_key, EAP_FAST_PAC_KEY_LEN, in eap_fast_derive_master_secret()
Deap_fast_common.h98 void eap_fast_derive_master_secret(const u8 *pac_key, const u8 *server_random,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_module_tests.c839 const u8 pac_key[] = { in test_eap_fast() local
947 if (sha1_t_prf(pac_key, sizeof(pac_key), in test_eap_fast()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_module_tests.c988 const u8 pac_key[] = { in test_eap_fast() local
1096 if (sha1_t_prf(pac_key, sizeof(pac_key), in test_eap_fast()