| /freebsd/contrib/wpa/src/common/ |
| H A D | common_module_tests.c | 307 const u8 kck[] = { in sae_tests() local 435 if (os_memcmp(kck, sae.tmp->kck, SAE_KCK_LEN) != 0) { in sae_tests() 634 const u8 kck[] = { in pasn_test_pasn_auth() local 663 if (ptk.kck_len != sizeof(kck) || in pasn_test_pasn_auth() 664 os_memcmp(kck, ptk.kck, sizeof(kck)) != 0) { in pasn_test_pasn_auth() 713 const u8 kck[] = { in pasn_test_no_pasn_auth() local 743 if (ptk.kck_len != sizeof(kck) || in pasn_test_no_pasn_auth() 744 os_memcmp(kck, ptk.kck, sizeof(kck)) != 0) { in pasn_test_no_pasn_auth()
|
| H A D | wpa_common.h | 267 u8 kck[WPA_KCK_MAX_LEN]; /* EAPOL-Key Key Confirmation Key (KCK) */ member 508 int wpa_ft_mic(int key_mgmt, const u8 *kck, size_t kck_len, const u8 *sta_addr, 559 int rsn_pmkid_suite_b(const u8 *kck, size_t kck_len, const u8 *aa, 562 static inline int rsn_pmkid_suite_b(const u8 *kck, size_t kck_len, const u8 *aa, in rsn_pmkid_suite_b() argument 569 int rsn_pmkid_suite_b_192(const u8 *kck, size_t kck_len, const u8 *aa, 572 static inline int rsn_pmkid_suite_b_192(const u8 *kck, size_t kck_len, in rsn_pmkid_suite_b_192() argument 809 int wpa_auth_8021x_mic(int akmp, const u8 *kck, size_t kck_len, const u8 *addr1, 813 int pasn_mic(enum rsn_hash_alg alg, const u8 *kck, size_t kck_len,
|
| H A D | wpa_common.c | 698 os_memcpy(ptk->kck, tmp, ptk->kck_len); in wpa_pmk_to_ptk() 699 wpa_hexdump_key(MSG_DEBUG, "WPA: KCK", ptk->kck, ptk->kck_len); in wpa_pmk_to_ptk() 1026 int wpa_ft_mic(int key_mgmt, const u8 *kck, size_t kck_len, const u8 *sta_addr, in wpa_ft_mic() argument 1128 if (hmac_sha512_vector(kck, kck_len, num_elem, addr, len, hash)) in wpa_ft_mic() 1138 if (hmac_sha384_vector(kck, kck_len, num_elem, addr, len, hash)) in wpa_ft_mic() 1147 if (hmac_sha256_vector(kck, kck_len, num_elem, addr, len, hash)) in wpa_ft_mic() 1153 omac1_aes_128_vector(kck, num_elem, addr, len, mic) == 0) in wpa_ft_mic() 1743 os_memcpy(ptk->kck, tmp, WPA_PASN_KCK_LEN); in pasn_pmk_to_ptk() 1744 wpa_hexdump_key(MSG_DEBUG, "PASN: KCK:", ptk->kck, WPA_PASN_KCK_LEN); in pasn_pmk_to_ptk() 1888 int wpa_auth_8021x_mic(int akmp, const u8 *kck, size_t kck_len, const u8 *addr1, in wpa_auth_8021x_mic() argument [all …]
|
| H A D | sae.h | 42 u8 kck[SAE_MAX_HASH_LEN]; member
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | pmksa_cache_auth.c | 284 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() 545 rsn_pmkid_suite_b_192(entry->kck, entry->kck_len, in pmksa_cache_get_okc() 549 rsn_pmkid_suite_b(entry->kck, entry->kck_len, aa, spa, in pmksa_cache_get_okc()
|
| H A D | pmksa_cache_auth.h | 22 u8 kck[WPA_KCK_MAX_LEN]; member 66 const u8 *kck, size_t kck_len, 71 const u8 *kck, size_t kck_len, const u8 *aa,
|
| H A D | wpa_auth_ft.c | 2536 const u8 *kck; in wpa_sm_write_assoc_resp_ies() local 2807 kck = sm->PTK.kck2; in wpa_sm_write_assoc_resp_ies() 2810 kck = sm->PTK.kck; in wpa_sm_write_assoc_resp_ies() 2814 wpa_ft_mic(sm->wpa_key_mgmt, kck, kck_len, in wpa_sm_write_assoc_resp_ies() 3479 const u8 *kck; in wpa_ft_validate_reassoc() local 3623 kck = sm->PTK.kck2; in wpa_ft_validate_reassoc() 3626 kck = sm->PTK.kck; in wpa_ft_validate_reassoc() 3629 if (wpa_ft_mic(sm->wpa_key_mgmt, kck, kck_len, in wpa_ft_validate_reassoc()
|
| /freebsd/contrib/wpa/src/rsn_supp/ |
| H A D | wpa_ft.c | 208 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 737 kck = sm->ptk.kck2; in wpa_ft_process_response() 740 kck = sm->ptk.kck; in wpa_ft_process_response() 745 kck, kck_len, bssid, in wpa_ft_process_response() 1034 const u8 *kck; in wpa_ft_validate_reassoc_resp() local [all …]
|
| H A D | pmksa_cache.h | 20 u8 kck[WPA_KCK_MAX_LEN]; member 86 const u8 *pmkid, const u8 *kck, size_t kck_len,
|
| H A D | pmksa_cache.c | 234 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument 249 if (wpa_key_mgmt_suite_b(akmp) && !kck) in pmksa_cache_add() 258 os_memcpy(entry->kck, kck, kck_len); in pmksa_cache_add() 263 rsn_pmkid_suite_b_192(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add() 265 rsn_pmkid_suite_b(kck, kck_len, aa, spa, entry->pmkid); in pmksa_cache_add() 559 pmkid, old_entry->kck, old_entry->kck_len, in pmksa_cache_clone_entry() 936 const u8 *pmkid, const u8 *kck, size_t kck_len, in pmksa_cache_add() argument
|
| H A D | tdls.c | 112 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 …]
|
| H A D | wpa_i.h | 398 sm->ptk.kck, sm->ptk.kck_len, in wpa_sm_set_rekey_offload()
|
| /freebsd/contrib/wpa/src/nan/ |
| H A D | nan_crypto.c | 152 os_memcpy(ptk->kck, tmp, ptk->kck_len); in nan_crypto_pmk_to_ptk() 153 wpa_hexdump_key(MSG_DEBUG, "NAN: KCK", ptk->kck, ptk->kck_len); in nan_crypto_pmk_to_ptk() 266 int nan_crypto_key_mic(const u8 *buf, size_t len, const u8 *kck, in nan_crypto_key_mic() argument 279 wpa_hexdump_key(MSG_DEBUG, "NAN: KCK", kck, kck_len); in nan_crypto_key_mic() 283 ret = hmac_sha256(kck, kck_len, buf, len, digest); in nan_crypto_key_mic() 286 ret = hmac_sha384(kck, kck_len, buf, len, digest); in nan_crypto_key_mic()
|
| H A D | nan_sec.c | 199 const u8 *kck, size_t kck_len, u8 csid) in nan_sec_key_mic_ver() argument 218 ret = nan_crypto_key_mic(buf, len, kck, kck_len, csid, pos); in nan_sec_key_mic_ver() 285 tptk.kck, tptk.kck_len, in nan_sec_rx_m2() 356 ndp_sec->ptk.kck, ndp_sec->ptk.kck_len, in nan_sec_rx_m3() 411 ndp_sec->ptk.kck, ndp_sec->ptk.kck_len, in nan_sec_rx_m4() 1467 ndp_sec->ptk.kck, in nan_sec_pre_tx() 1488 ndp_sec->ptk.kck, in nan_sec_pre_tx() 1500 ndp_sec->ptk.kck, in nan_sec_pre_tx()
|
| H A D | nan_i.h | 40 u8 kck[NAN_KCK_MAX_LEN]; member 800 int nan_crypto_key_mic(const u8 *buf, size_t len, const u8 *kck,
|
| H A D | nan_module_tests.c | 1298 .kck = { 1316 .kck = {
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | d3.h | 12 u8 kck[NL80211_KCK_EXT_LEN]; member
|
| H A D | d3.c | 182 memcpy(wowlan_data->rekey_data.kck, data->kck, data->kck_len); in iwl_mld_set_rekey_data() 1627 memcpy(kek_kck_cmd.kck, rekey_data->kck, in iwl_mld_send_kek_kck_cmd()
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | d3.h | 502 u8 kck[IWL_KCK_MAX_SIZE]; member 510 u8 kck[IWL_KCK_MAX_SIZE]; member 523 u8 kck[IWL_KCK_MAX_SIZE]; member
|
| /freebsd/contrib/wpa/src/pasn/ |
| H A D | pasn_initiator.c | 844 ret = pasn_mic(pasn->hash_alg, pasn->ptk.kck, pasn->ptk.kck_len, in wpas_pasn_build_auth_3() 1595 ret = pasn_mic(pasn->hash_alg, pasn->ptk.kck, pasn->ptk.kck_len, in wpas_parse_pasn_frame() 1630 ret = pasn_mic(pasn->hash_alg, pasn->ptk.kck, pasn->ptk.kck_len, in wpas_parse_pasn_frame()
|
| H A D | pasn_responder.c | 763 ret = pasn_mic(pasn->hash_alg, pasn->ptk.kck, pasn->ptk.kck_len, in handle_auth_pasn_resp() 1320 ret = pasn_mic(pasn->hash_alg, pasn->ptk.kck, pasn->ptk.kck_len, in handle_auth_pasn_3()
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | mac80211.c | 1897 data->kck_len > sizeof(gtk_info->kck)) { in rtw89_set_rekey_data() 1903 memcpy(gtk_info->kck, data->kck, data->kck_len); in rtw89_set_rekey_data()
|
| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/ |
| H A D | fwil_types.h | 1150 u8 kck[BRCMF_RSN_KCK_LENGTH]; member
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | wpas_glue.c | 1266 const u8 *kck, size_t kck_len, in wpa_supplicant_set_rekey_offload() argument 1271 wpa_drv_set_rekey_info(wpa_s, kek, kek_len, kck, kck_len, replay_ctr); in wpa_supplicant_set_rekey_offload()
|
| H A D | driver_i.h | 637 const u8 *kck, size_t kck_len, in wpa_drv_set_rekey_info() argument 643 kck, kck_len, replay_ctr); in wpa_drv_set_rekey_info()
|