Lines Matching refs:alg

65 static int wpa_sm_get_key(uint8_t *ifx, int *alg, u8 *addr, int *key_idx, u8 *key, size_t key_len, …
773 enum wpa_alg alg; in wpa_supplicant_install_ptk() local
791 alg = wpa_cipher_to_alg(sm->pairwise_cipher); in wpa_supplicant_install_ptk()
794 if (alg == WIFI_WPA_ALG_NONE) { in wpa_supplicant_install_ptk()
799 …if (wpa_sm_set_key(&(sm->install_ptk), alg, sm->bssid, 0, 1, (sm->install_ptk).seq, WPA_KEY_RSC_LE… in wpa_supplicant_install_ptk()
803 alg, keylen, MAC2STR(sm->bssid)); in wpa_supplicant_install_ptk()
822 enum wpa_alg *alg) in wpa_supplicant_check_group_cipher() argument
826 *alg = wpa_cipher_to_alg(group_cipher); in wpa_supplicant_check_group_cipher()
827 if (*alg == WIFI_WPA_ALG_NONE) { in wpa_supplicant_check_group_cipher()
914 if (wpa_sm_set_key(&(sm->install_gtk), gd->alg, in wpa_supplicant_install_gtk()
922 } else if (wpa_sm_set_key(&(sm->install_gtk), gd->alg, in wpa_supplicant_install_gtk()
928 gd->alg, gd->gtk_len, gd->keyidx); in wpa_supplicant_install_gtk()
943 int alg; in wpa_supplicant_gtk_in_use() local
957 if (wpa_sm_get_key(&ifx, &alg, bssid, &keyidx, gtk_get, gd->gtk_len, KEY_FLAG_GROUP) == 0) { in wpa_supplicant_gtk_in_use()
958 if (ifx == 0 && alg == gd->alg && memcmp(bssid, sm->bssid, ETH_ALEN) == 0 && in wpa_supplicant_gtk_in_use()
1016 &(gd->key_rsc_len), &(gd->alg))) { in wpa_supplicant_pairwise_gtk()
1378 enum wpa_alg alg; in wpa_supplicant_activate_ptk() local
1380 alg = wpa_cipher_to_alg(sm->pairwise_cipher); in wpa_supplicant_activate_ptk()
1383 if (alg == WIFI_WPA_ALG_NONE) { in wpa_supplicant_activate_ptk()
1393 if (wpa_sm_set_key(&(sm->install_ptk), alg, sm->bssid, 0, 1, (sm->install_ptk).seq, in wpa_supplicant_activate_ptk()
1491 &gd->key_rsc_len, &gd->alg)) in wpa_supplicant_process_1_of_2_rsn()
1535 &gd->key_rsc_len, &gd->alg)) in wpa_supplicant_process_1_of_2_wpa()
2535 int wpa_sm_set_key(struct install_key *key_sm, enum wpa_alg alg, in wpa_sm_set_key() argument
2544 if (alg == WIFI_WPA_ALG_TKIP && key_idx == 0 && key_len == 32) { in wpa_sm_set_key()
2550 key_sm->alg = alg; in wpa_sm_set_key()
2556 wpa_install_key(alg, addr, key_idx, set_tx, seq, seq_len, key, key_len, key_flag); in wpa_sm_set_key()
2561 wpa_sm_get_key(uint8_t *ifx, int *alg, u8 *addr, int *key_idx, u8 *key, size_t key_len, enum key_fl… in wpa_sm_get_key() argument
2563 return wpa_get_key(ifx, alg, addr, key_idx, key, key_len, key_flag); in wpa_sm_get_key()