Lines Matching defs:cipher
186 int cipher;
225 cipher = ie.pairwise_cipher & sm->allowed_pairwise_cipher;
226 if (cipher & WPA_CIPHER_CCMP) {
228 cipher = WPA_CIPHER_CCMP;
229 } else if (cipher & WPA_CIPHER_TKIP) {
231 cipher = WPA_CIPHER_TKIP;
233 wpa_printf(MSG_INFO, "RSN: No acceptable cipher in SMK M2");
250 peerkey->cipher = cipher;
272 /* Include only the selected cipher in pairwise cipher suite */
275 if (cipher == WPA_CIPHER_CCMP)
277 else if (cipher == WPA_CIPHER_TKIP)
352 if (peerkey->cipher == WPA_CIPHER_CCMP)
360 if (peerkey->cipher == WPA_CIPHER_CCMP)
411 if (peerkey->cipher == WPA_CIPHER_CCMP)
420 if (peerkey->cipher == WPA_CIPHER_CCMP)
475 int cipher;
504 cipher = ie.pairwise_cipher & sm->allowed_pairwise_cipher;
505 if (cipher & WPA_CIPHER_CCMP) {
507 peerkey->cipher = WPA_CIPHER_CCMP;
508 } else if (cipher & WPA_CIPHER_TKIP) {
510 peerkey->cipher = WPA_CIPHER_TKIP;
513 "unacceptable cipher", MAC2STR(kde->mac_addr));
884 if (peerkey->cipher == WPA_CIPHER_TKIP) {
895 if (wpa_sm_set_key(sm, peerkey->cipher, peerkey->addr, 0, 1,
915 if (wpa_sm_set_key(sm, peerkey->cipher, peerkey->addr, 0, 1,
917 peerkey->cipher == WPA_CIPHER_TKIP ? 32 : 16) < 0) {