Home
last modified time | relevance | path

Searched refs:kck (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-14-stable/contrib/wpa/src/common/
HDcommon_module_tests.c307 const u8 kck[] = { in sae_tests() local
435 if (os_memcmp(kck, sae.tmp->kck, SAE_KCK_LEN) != 0) { in sae_tests()
631 const u8 kck[] = { in pasn_test_pasn_auth() local
659 if (ptk.kck_len != sizeof(kck) || in pasn_test_pasn_auth()
660 os_memcmp(kck, ptk.kck, sizeof(kck)) != 0) { in pasn_test_pasn_auth()
708 const u8 kck[] = { in pasn_test_no_pasn_auth() local
738 if (ptk.kck_len != sizeof(kck) || in pasn_test_no_pasn_auth()
739 os_memcmp(kck, ptk.kck, sizeof(kck)) != 0) { in pasn_test_no_pasn_auth()
HDwpa_common.h257 u8 kck[WPA_KCK_MAX_LEN]; /* EAPOL-Key Key Confirmation Key (KCK) */ member
486 int wpa_ft_mic(int key_mgmt, const u8 *kck, size_t kck_len, const u8 *sta_addr,
537 int rsn_pmkid_suite_b(const u8 *kck, size_t kck_len, const u8 *aa,
540 static inline int rsn_pmkid_suite_b(const u8 *kck, size_t kck_len, const u8 *aa, in rsn_pmkid_suite_b() argument
547 int rsn_pmkid_suite_b_192(const u8 *kck, size_t kck_len, const u8 *aa,
550 static inline int rsn_pmkid_suite_b_192(const u8 *kck, size_t kck_len, in rsn_pmkid_suite_b_192() argument
758 int pasn_mic(const u8 *kck, int akmp, int cipher,
HDwpa_common.c567 os_memcpy(ptk->kck, tmp, ptk->kck_len); in wpa_pmk_to_ptk()
568 wpa_hexdump_key(MSG_DEBUG, "WPA: KCK", ptk->kck, ptk->kck_len); in wpa_pmk_to_ptk()
894 int wpa_ft_mic(int key_mgmt, const u8 *kck, size_t kck_len, const u8 *sta_addr, in wpa_ft_mic() argument
996 if (hmac_sha512_vector(kck, kck_len, num_elem, addr, len, hash)) in wpa_ft_mic()
1006 if (hmac_sha384_vector(kck, kck_len, num_elem, addr, len, hash)) in wpa_ft_mic()
1015 if (hmac_sha256_vector(kck, kck_len, num_elem, addr, len, hash)) in wpa_ft_mic()
1021 omac1_aes_128_vector(kck, num_elem, addr, len, mic) == 0) in wpa_ft_mic()
1539 os_memcpy(ptk->kck, tmp, WPA_PASN_KCK_LEN); in pasn_pmk_to_ptk()
1540 wpa_hexdump_key(MSG_DEBUG, "PASN: KCK:", ptk->kck, WPA_PASN_KCK_LEN); in pasn_pmk_to_ptk()
1648 int pasn_mic(const u8 *kck, int akmp, int cipher, in pasn_mic() argument
[all …]
HDsae.h42 u8 kck[SAE_MAX_HASH_LEN]; member
HDsae.c1634 os_memcpy(sae->tmp->kck, keys, hash_len); in sae_derive_keys()
1650 sae->tmp->kck, sae->tmp->kck_len); in sae_derive_keys()
2303 return hkdf_extract(sae->tmp->kck_len, sae->tmp->kck, sae->tmp->kck_len, in sae_cn_confirm()
/freebsd-14-stable/contrib/wpa/src/ap/
HDpmksa_cache_auth.c284 const u8 *kck, size_t kck_len, in pmksa_cache_auth_add() argument
290 entry = pmksa_cache_auth_create_entry(pmk, pmk_len, pmkid, kck, kck_len, in pmksa_cache_auth_add()
319 const u8 *kck, size_t kck_len, const u8 *aa, in pmksa_cache_auth_create_entry() argument
329 if (wpa_key_mgmt_suite_b(akmp) && !kck) in pmksa_cache_auth_create_entry()
337 if (kck && kck_len && kck_len < WPA_KCK_MAX_LEN) { in pmksa_cache_auth_create_entry()
338 os_memcpy(entry->kck, kck, kck_len); in pmksa_cache_auth_create_entry()
344 rsn_pmkid_suite_b_192(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_auth_create_entry()
346 rsn_pmkid_suite_b(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_auth_create_entry()
534 rsn_pmkid_suite_b_192(entry->kck, entry->kck_len, in pmksa_cache_get_okc()
538 rsn_pmkid_suite_b(entry->kck, entry->kck_len, aa, spa, in pmksa_cache_get_okc()
HDpmksa_cache_auth.h22 u8 kck[WPA_KCK_MAX_LEN]; member
57 const u8 *kck, size_t kck_len,
62 const u8 *kck, size_t kck_len, const u8 *aa,
HDwpa_auth_ft.c2574 const u8 *kck; in wpa_sm_write_assoc_resp_ies() local
2844 kck = sm->PTK.kck2; in wpa_sm_write_assoc_resp_ies()
2847 kck = sm->PTK.kck; in wpa_sm_write_assoc_resp_ies()
2851 wpa_ft_mic(sm->wpa_key_mgmt, kck, kck_len, in wpa_sm_write_assoc_resp_ies()
3497 const u8 *kck; in wpa_ft_validate_reassoc() local
3641 kck = sm->PTK.kck2; in wpa_ft_validate_reassoc()
3644 kck = sm->PTK.kck; in wpa_ft_validate_reassoc()
3647 if (wpa_ft_mic(sm->wpa_key_mgmt, kck, kck_len, in wpa_ft_validate_reassoc()
/freebsd-14-stable/contrib/wpa/src/rsn_supp/
HDwpa_ft.c208 const u8 *kck, size_t kck_len, in wpa_ft_gen_req_ies() argument
396 if (kck) { in wpa_ft_gen_req_ies()
409 if (kck && wpa_sm_ocv_enabled(sm)) { in wpa_ft_gen_req_ies()
455 if (kck) { in wpa_ft_gen_req_ies()
472 if (wpa_ft_mic(sm->key_mgmt, kck, kck_len, in wpa_ft_gen_req_ies()
595 const u8 *kck; in wpa_ft_process_response() local
731 kck = sm->ptk.kck2; in wpa_ft_process_response()
734 kck = sm->ptk.kck; in wpa_ft_process_response()
739 kck, kck_len, bssid, in wpa_ft_process_response()
1028 const u8 *kck; in wpa_ft_validate_reassoc_resp() local
[all …]
HDpmksa_cache.h20 u8 kck[WPA_KCK_MAX_LEN]; member
85 const u8 *pmkid, const u8 *kck, size_t kck_len,
HDpmksa_cache.c233 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
248 if (wpa_key_mgmt_suite_b(akmp) && !kck) in pmksa_cache_add()
257 os_memcpy(entry->kck, kck, kck_len); in pmksa_cache_add()
262 rsn_pmkid_suite_b_192(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
264 rsn_pmkid_suite_b(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add()
517 pmkid, old_entry->kck, old_entry->kck_len, in pmksa_cache_clone_entry()
913 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
HDtdls.c112 u8 kck[16]; /* TPK-KCK */ member
473 peer->tpk.kck, sizeof(peer->tpk.kck)); in wpa_tdls_generate_tpk()
493 static int wpa_tdls_ftie_mic(const u8 *kck, u8 trans_seq, const u8 *lnkid, in wpa_tdls_ftie_mic() argument
536 wpa_hexdump_key(MSG_DEBUG, "TDLS: KCK", kck, 16); in wpa_tdls_ftie_mic()
537 ret = omac1_aes_128(kck, buf, pos - buf, mic); in wpa_tdls_ftie_mic()
557 static int wpa_tdls_key_mic_teardown(const u8 *kck, u8 trans_seq, u16 rcode, in wpa_tdls_key_mic_teardown() argument
596 wpa_hexdump_key(MSG_DEBUG, "TDLS: KCK", kck, 16); in wpa_tdls_key_mic_teardown()
597 ret = omac1_aes_128(kck, buf, pos - buf, mic); in wpa_tdls_key_mic_teardown()
613 wpa_tdls_ftie_mic(peer->tpk.kck, trans_seq, lnkid, in wpa_supplicant_verify_tdls_mic()
641 wpa_tdls_key_mic_teardown(peer->tpk.kck, trans_seq, rcode, in wpa_supplicant_verify_tdls_mic_teardown()
[all …]
HDwpa_i.h370 sm->ptk.kck, sm->ptk.kck_len, in wpa_sm_set_rekey_offload()
HDwpa.h91 const u8 *kck, size_t kck_len,
HDwpa.c124 wpa_eapol_key_mic(ptk->kck, ptk->kck_len, sm->key_mgmt, ver, in wpa_eapol_key_send()
133 ptk->kck, ptk->kck_len); in wpa_eapol_key_send()
2793 sm->ptk.kck, sm->ptk.kck_len, in wpa_supplicant_process_3_of_4()
3259 if (wpa_eapol_key_mic(sm->tptk.kck, sm->tptk.kck_len, in wpa_supplicant_verify_eapol_key_mic()
3293 if (wpa_eapol_key_mic(sm->ptk.kck, sm->ptk.kck_len, in wpa_supplicant_verify_eapol_key_mic()
5366 os_memcpy(sm->ptk.kck, ptk_kck, ptk_kck_len); in wpa_sm_set_ptk_kck_kek()
/freebsd-14-stable/sys/contrib/dev/iwlwifi/fw/api/
HDd3.h484 u8 kck[IWL_KCK_MAX_SIZE]; member
492 u8 kck[IWL_KCK_MAX_SIZE]; member
505 u8 kck[IWL_KCK_MAX_SIZE]; member
/freebsd-14-stable/contrib/wpa/src/pasn/
HDpasn_initiator.c668 ret = pasn_mic(pasn->ptk.kck, pasn->akmp, pasn->cipher, in wpas_pasn_build_auth_3()
1270 ret = pasn_mic(pasn->ptk.kck, pasn->akmp, pasn->cipher, in wpa_pasn_auth_rx()
1305 ret = pasn_mic(pasn->ptk.kck, pasn->akmp, pasn->cipher, in wpa_pasn_auth_rx()
HDpasn_responder.c558 ret = pasn_mic(pasn->ptk.kck, pasn->akmp, pasn->cipher, in handle_auth_pasn_resp()
976 ret = pasn_mic(pasn->ptk.kck, pasn->akmp, pasn->cipher, in handle_auth_pasn_3()
/freebsd-14-stable/contrib/wpa/wpa_supplicant/
HDdriver_i.h613 const u8 *kck, size_t kck_len, in wpa_drv_set_rekey_info() argument
619 kck, kck_len, replay_ctr); in wpa_drv_set_rekey_info()
HDwpas_glue.c1240 const u8 *kck, size_t kck_len, in wpa_supplicant_set_rekey_offload() argument
1245 wpa_drv_set_rekey_info(wpa_s, kek, kek_len, kck, kck_len, replay_ctr); in wpa_supplicant_set_rekey_offload()
/freebsd-14-stable/sys/contrib/dev/rtw89/
HDmac80211.c1807 data->kck_len > sizeof(gtk_info->kck)) { in rtw89_set_rekey_data()
1815 memcpy(gtk_info->kck, data->kck, data->kck_len); in rtw89_set_rekey_data()
/freebsd-14-stable/sys/contrib/dev/iwlwifi/mvm/
HDd3.c35 memcpy(mvmvif->rekey_data.kck, data->kck, data->kck_len); in iwl_mvm_set_rekey_data()
1090 memcpy(kek_kck_cmd.kck, mvmvif->rekey_data.kck, in iwl_mvm_wowlan_config_key_params()
/freebsd-14-stable/sys/contrib/dev/athk/ath11k/
HDcore.h329 u8 kck[NL80211_KCK_LEN]; member
/freebsd-14-stable/sys/contrib/dev/mediatek/mt76/
HDmt76_connac_mcu.h1560 u8 kck[NL80211_KCK_LEN]; member
/freebsd-14-stable/sys/compat/linuxkpi/common/include/net/
HDcfg80211.h1093 const uint8_t *kck, *kek, *replay_ctr; member

12