Lines Matching refs:cipher
181 int cipher;
220 cipher = wpa_pick_pairwise_cipher(ie.pairwise_cipher &
222 if (cipher < 0) {
223 wpa_printf(MSG_INFO, "RSN: No acceptable cipher in SMK M2");
230 wpa_cipher_txt(cipher));
242 peerkey->cipher = cipher;
264 /* Include only the selected cipher in pairwise cipher suite */
267 RSN_SELECTOR_PUT(pos, wpa_cipher_to_suite(WPA_PROTO_RSN, cipher));
341 if (peerkey->cipher != WPA_CIPHER_TKIP)
349 if (peerkey->cipher != WPA_CIPHER_TKIP)
400 if (peerkey->cipher != WPA_CIPHER_TKIP)
409 if (peerkey->cipher != WPA_CIPHER_TKIP)
464 int cipher;
493 cipher = wpa_pick_pairwise_cipher(ie.pairwise_cipher &
495 if (cipher < 0) {
497 "unacceptable cipher", MAC2STR(kde->mac_addr));
505 wpa_cipher_txt(cipher));
506 peerkey->cipher = cipher;
871 if (peerkey->cipher == WPA_CIPHER_TKIP) {
882 if (wpa_sm_set_key(sm, peerkey->cipher, peerkey->addr, 0, 1,
902 if (wpa_sm_set_key(sm, peerkey->cipher, peerkey->addr, 0, 1,
904 peerkey->cipher == WPA_CIPHER_TKIP ? 32 : 16) < 0) {