| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | key.c | 17 bool igtk = key->keyidx == 4 || key->keyidx == 5; in iwl_mld_get_key_flags() local 50 if ((sta && sta->mfp && pairwise) || igtk) in iwl_mld_get_key_flags() 206 if (mld_link->igtk == key) in iwl_mld_remove_key() 207 mld_link->igtk = NULL; in iwl_mld_remove_key() 227 bool igtk = key->keyidx == 4 || key->keyidx == 5; in iwl_mld_add_key() local 235 if (igtk) { in iwl_mld_add_key() 250 if (mld_link->igtk) { in iwl_mld_add_key() 252 mld_link->igtk->keyidx); in iwl_mld_add_key() 253 iwl_mld_remove_key(mld, vif, sta, mld_link->igtk); in iwl_mld_add_key() 256 WARN_ON(mld_link->igtk); in iwl_mld_add_key() [all …]
|
| H A D | d3.c | 104 struct iwl_mld_mcast_key_data igtk; member 361 const struct iwl_wowlan_igtk_status *igtk) in iwl_mld_convert_igtk_resume_data() argument 363 BUILD_BUG_ON(sizeof(wowlan_status->igtk.key) < sizeof(igtk->key)); in iwl_mld_convert_igtk_resume_data() 365 if (!igtk->key_len) in iwl_mld_convert_igtk_resume_data() 368 wowlan_status->igtk.len = igtk->key_len; in iwl_mld_convert_igtk_resume_data() 369 wowlan_status->igtk.flags = igtk->key_flags; in iwl_mld_convert_igtk_resume_data() 370 wowlan_status->igtk.id = in iwl_mld_convert_igtk_resume_data() 371 u32_get_bits(igtk->key_flags, in iwl_mld_convert_igtk_resume_data() 375 memcpy(wowlan_status->igtk.key, igtk->key, sizeof(igtk->key)); in iwl_mld_convert_igtk_resume_data() 376 iwl_mld_convert_mcast_ipn(&wowlan_status->igtk, igtk); in iwl_mld_convert_igtk_resume_data() [all …]
|
| H A D | link.h | 61 struct ieee80211_key_conf *igtk;
|
| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | mld-key.c | 66 bool igtk = keyconf->keyidx == 4 || keyconf->keyidx == 5; in iwl_mvm_get_sec_flags() local 108 if ((!IS_ERR_OR_NULL(sta) && sta->mfp && pairwise) || igtk) in iwl_mvm_get_sec_flags() 266 if (mvm_link->igtk) { in iwl_mvm_sec_key_add() 268 mvm_link->igtk->keyidx); in iwl_mvm_sec_key_add() 270 mvm_link->igtk); in iwl_mvm_sec_key_add() 277 WARN_ON(mvm_link->igtk); in iwl_mvm_sec_key_add() 285 mvm_link->igtk = keyconf; in iwl_mvm_sec_key_add() 322 if (mvm_link->igtk == keyconf) { in _iwl_mvm_sec_key_del() 324 mvm_link->igtk->hw_key_idx = STA_KEY_IDX_INVALID; in _iwl_mvm_sec_key_del() 325 mvm_link->igtk = NULL; in _iwl_mvm_sec_key_del()
|
| H A D | d3.c | 1469 struct iwl_multicast_key_data igtk; member 1941 &status->igtk); in iwl_mvm_d3_update_keys() 2076 if (mvm_link->igtk) in iwl_mvm_d3_igtk_bigtk_rekey_add() 2077 mvm_link->igtk->hw_key_idx = STA_KEY_IDX_INVALID; in iwl_mvm_d3_igtk_bigtk_rekey_add() 2078 mvm_link->igtk = key_config; in iwl_mvm_d3_igtk_bigtk_rekey_add() 2161 &status->igtk)) in iwl_mvm_setup_connection_keep() 2247 BUILD_BUG_ON(sizeof(status->igtk.key) < sizeof(data->key)); in iwl_mvm_convert_igtk() 2248 BUILD_BUG_ON(sizeof(status->igtk.ipn) != sizeof(data->ipn)); in iwl_mvm_convert_igtk() 2253 status->igtk.len = data->key_len; in iwl_mvm_convert_igtk() 2254 status->igtk.flags = data->key_flags; in iwl_mvm_convert_igtk() [all …]
|
| H A D | ops.c | 1063 frob_start = offsetof(struct iwl_mvm_mgmt_mcast_key_cmd, igtk); in iwl_mvm_frob_hcmd() 1064 BUILD_BUG_ON(offsetof(struct iwl_mvm_mgmt_mcast_key_cmd, igtk) != in iwl_mvm_frob_hcmd() 1065 offsetof(struct iwl_mvm_mgmt_mcast_key_cmd_v1, igtk)); in iwl_mvm_frob_hcmd() 1067 frob_end = offsetofend(struct iwl_mvm_mgmt_mcast_key_cmd, igtk); in iwl_mvm_frob_hcmd() 1068 BUILD_BUG_ON(offsetof(struct iwl_mvm_mgmt_mcast_key_cmd, igtk) < in iwl_mvm_frob_hcmd() 1069 offsetof(struct iwl_mvm_mgmt_mcast_key_cmd_v1, igtk)); in iwl_mvm_frob_hcmd()
|
| H A D | sta.c | 3753 memcpy(igtk_cmd.igtk, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_igtk() 3780 memcpy(igtk_cmd_v1.igtk, igtk_cmd.igtk, in iwl_mvm_send_sta_igtk() 3781 ARRAY_SIZE(igtk_cmd_v1.igtk)); in iwl_mvm_send_sta_igtk()
|
| H A D | mvm.h | 331 struct ieee80211_key_conf *igtk; member
|
| /freebsd/contrib/wpa/src/rsn_supp/ |
| H A D | wpa.c | 1632 const struct wpa_igtk_kde *igtk, in wpa_supplicant_install_igtk() argument 1636 u16 keyidx = WPA_GET_LE16(igtk->keyid); in wpa_supplicant_install_igtk() 1639 if ((sm->igtk.igtk_len == len && in wpa_supplicant_install_igtk() 1640 os_memcmp(sm->igtk.igtk, igtk->igtk, sm->igtk.igtk_len) == 0) || in wpa_supplicant_install_igtk() 1642 os_memcmp(sm->igtk_wnm_sleep.igtk, igtk->igtk, in wpa_supplicant_install_igtk() 1652 keyidx, MAC2STR(igtk->pn)); in wpa_supplicant_install_igtk() 1653 wpa_hexdump_key(MSG_DEBUG, "WPA: IGTK", igtk->igtk, len); in wpa_supplicant_install_igtk() 1661 keyidx, 0, igtk->pn, sizeof(igtk->pn), in wpa_supplicant_install_igtk() 1662 igtk->igtk, len, KEY_FLAG_GROUP_RX) < 0) { in wpa_supplicant_install_igtk() 1688 os_memcpy(sm->igtk_wnm_sleep.igtk, igtk->igtk, in wpa_supplicant_install_igtk() [all …]
|
| H A D | wpa_ft.c | 886 u8 igtk[WPA_IGTK_MAX_LEN]; in wpa_ft_process_igtk_subelem() local 926 if (aes_unwrap(kek, kek_len, igtk_len / 8, igtk_elem + 9, igtk)) { in wpa_ft_process_igtk_subelem() 936 wpa_hexdump_key(MSG_DEBUG, "FT: IGTK from Reassoc Resp", igtk, in wpa_ft_process_igtk_subelem() 940 igtk_elem + 2, 6, igtk, igtk_len, in wpa_ft_process_igtk_subelem() 944 forced_memzero(igtk, sizeof(igtk)); in wpa_ft_process_igtk_subelem() 947 forced_memzero(igtk, sizeof(igtk)); in wpa_ft_process_igtk_subelem() 1252 wpa_ft_process_igtk_subelem(sm, parse.igtk, parse.igtk_len) < 0 || in wpa_ft_validate_reassoc_resp()
|
| H A D | wpa_i.h | 40 struct wpa_igtk igtk; member
|
| H A D | wpa.h | 167 struct wpa_igtk igtk; member
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | mesh_rsn.c | 208 if (random_get_bytes(rsn->igtk, rsn->igtk_len) < 0) in __mesh_rsn_auth_init() 214 rsn->igtk, rsn->igtk_len); in __mesh_rsn_auth_init() 219 seq, sizeof(seq), rsn->igtk, rsn->igtk_len, in __mesh_rsn_auth_init() 239 os_memset(rsn->igtk, 0, sizeof(rsn->igtk)); in mesh_rsn_deinit() 619 os_memcpy(pos, rsn->igtk, rsn->igtk_len); in mesh_rsn_protect_frame() 805 os_memcpy(sta->igtk, pos, key_len); in mesh_rsn_process_ampe() 808 sta->igtk, sta->igtk_len); in mesh_rsn_process_ampe()
|
| H A D | mesh_rsn.h | 22 u8 igtk[WPA_TK_MAX_LEN]; member
|
| H A D | mesh_mpm.c | 941 sta->igtk, sta->igtk_len); in mesh_mpm_plink_estab() 947 sta->igtk, sta->igtk_len, in mesh_mpm_plink_estab()
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | d3.h | 703 struct iwl_wowlan_igtk_status igtk[WOWLAN_IGTK_KEYS_NUM]; member 738 struct iwl_wowlan_igtk_status igtk[WOWLAN_IGTK_KEYS_NUM]; member 820 struct iwl_wowlan_igtk_status igtk[WOWLAN_IGTK_KEYS_NUM]; member 858 struct iwl_wowlan_igtk_status igtk[WOWLAN_IGTK_KEYS_NUM]; member
|
| H A D | sta.h | 443 u8 igtk[16]; member 462 u8 igtk[32]; member
|
| /freebsd/contrib/wpa/src/common/ |
| H A D | wpa_common.h | 280 u8 igtk[WPA_IGTK_MAX_LEN]; member 353 u8 igtk[WPA_IGTK_MAX_LEN]; member 376 u8 igtk[WPA_IGTK_MAX_LEN]; member 587 const u8 *igtk; member 660 const u8 *igtk; member
|
| H A D | wpa_common.c | 1079 parse->igtk = pos; in wpa_ft_parse_ftie() 3498 ie->igtk = p; in wpa_parse_generic()
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | wpa_auth.c | 4032 struct wpa_igtk_kde igtk; local 4048 igtk.keyid[0] = gsm->GN_igtk; 4049 igtk.keyid[1] = 0; 4052 os_memset(igtk.pn, 0, sizeof(igtk.pn)); 4054 os_memcpy(igtk.pn, rsc, sizeof(igtk.pn)); 4055 os_memcpy(igtk.igtk, gsm->IGTK[gsm->GN_igtk - 4], len); 4061 if (random_get_bytes(igtk.igtk, len) < 0) 4065 (const u8 *) &igtk, WPA_IGTK_KDE_PREFIX_LEN + len, 4067 forced_memzero(&igtk, sizeof(igtk)); 4202 info->igtk = gsm->IGTK[gsm->GN_igtk - 4]; [all …]
|
| H A D | sta_info.h | 132 u8 igtk[WPA_TK_MAX_LEN]; member
|
| H A D | wpa_auth_ft.c | 2311 const u8 *kek, *igtk; in wpa_ft_igtk_subelem() local 2341 igtk = gsm->IGTK[gsm->GN_igtk - 4]; in wpa_ft_igtk_subelem() 2351 igtk = stub_igtk; in wpa_ft_igtk_subelem() 2353 if (aes_wrap(kek, kek_len, igtk_len / 8, igtk, pos)) { in wpa_ft_igtk_subelem() 2662 u8 *igtk; in wpa_sm_write_assoc_resp_ies() local 2665 igtk = wpa_ft_igtk_subelem(sm, &igtk_len); in wpa_sm_write_assoc_resp_ies() 2666 if (igtk == NULL) { in wpa_sm_write_assoc_resp_ies() 2675 os_free(igtk); in wpa_sm_write_assoc_resp_ies() 2679 os_memcpy(subelem + subelem_len, igtk, igtk_len); in wpa_sm_write_assoc_resp_ies() 2681 os_free(igtk); in wpa_sm_write_assoc_resp_ies()
|
| H A D | wpa_auth.h | 325 const u8 *igtk; member
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | wow.c | 244 memcpy(gtk_info->igtk[0], key->key, key->keylen); in rtw89_rx_pn_get_pmf() 246 memcpy(gtk_info->igtk[1], key->key, key->keylen); in rtw89_rx_pn_get_pmf() 516 32, aoac_rpt->igtk); in rtw89_wow_debug_aoac_rpt() 709 aoac_rpt->igtk); in rtw89_wow_update_key_info()
|
| H A D | mac.c | 5511 memcpy(aoac_rpt->igtk, c2h->igtk, sizeof(aoac_rpt->igtk)); in rtw89_mac_c2h_wow_aoac_rpt()
|