Home
last modified time | relevance | path

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

/freebsd/contrib/wpa/src/eap_server/
H A 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()
676 u8 pac_key[EAP_FAST_PAC_KEY_LEN]; in eap_fast_build_pac() local
686 if (random_get_bytes(pac_key, EAP_FAST_PAC_KEY_LEN) < 0 || in eap_fast_build_pac()
690 pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
703 os_memcpy(pos, pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
766 eap_fast_put_tlv(buf, PAC_TYPE_PAC_KEY, pac_key, EAP_FAST_PAC_KEY_LEN); in eap_fast_build_pac()
H A Deap_server_teap.c148 u8 *buf, *pos, *end, *pac_key = NULL; in eap_teap_session_ticket_cb() local
220 pac_key = pos; in eap_teap_session_ticket_cb()
223 pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_session_ticket_cb()
245 if (!pac_key) { in eap_teap_session_ticket_cb()
284 os_memcpy(master_secret, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_session_ticket_cb()
720 u8 pac_key[EAP_TEAP_PAC_KEY_LEN]; in eap_teap_build_pac() local
732 if (random_get_bytes(pac_key, EAP_TEAP_PAC_KEY_LEN) < 0 || in eap_teap_build_pac()
736 pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
749 os_memcpy(pos, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
814 eap_teap_put_tlv(buf, PAC_TYPE_PAC_KEY, pac_key, EAP_TEAP_PAC_KEY_LEN); in eap_teap_build_pac()
/freebsd/contrib/wpa/src/eap_peer/
H A 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()
H A 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()
H A Deap_fast_pac.h17 u8 pac_key[EAP_FAST_PAC_KEY_LEN]; member
H A Deap_teap_pac.h17 u8 pac_key[EAP_TEAP_PAC_KEY_LEN]; member
H A Deap_fast.c106 eap_fast_derive_master_secret(data->current_pac->pac_key, in eap_fast_session_ticket_cb()
853 os_memcpy(entry->pac_key, pos, len); in eap_fast_parse_pac_tlv()
H A Deap_teap.c110 os_memcpy(master_secret, data->current_pac->pac_key, in eap_teap_session_ticket_cb()
945 os_memcpy(entry->pac_key, pos, len); in eap_teap_parse_pac_tlv()
/freebsd/contrib/wpa/src/eap_common/
H A 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()
H A Deap_fast_common.h98 void eap_fast_derive_master_secret(const u8 *pac_key, const u8 *server_random,
/freebsd/contrib/wpa/src/crypto/
H A 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()