Lines Matching refs:crypt
320 struct lib80211_crypt_data **crypt; in libipw_wx_set_encode() local
339 crypt = &ieee->crypt_info.crypt[key]; in libipw_wx_set_encode()
342 if (key_provided && *crypt) { in libipw_wx_set_encode()
345 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
352 if (ieee->crypt_info.crypt[i] != NULL) { in libipw_wx_set_encode()
356 &ieee->crypt_info.crypt[i]); in libipw_wx_set_encode()
374 if (*crypt != NULL && (*crypt)->ops != NULL && in libipw_wx_set_encode()
375 strcmp((*crypt)->ops->name, "WEP") != 0) { in libipw_wx_set_encode()
378 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
381 if (*crypt == NULL && host_crypto) { in libipw_wx_set_encode()
406 *crypt = new_crypt; in libipw_wx_set_encode()
420 if (*crypt) in libipw_wx_set_encode()
421 (*crypt)->ops->set_key(sec.keys[key], len, NULL, in libipw_wx_set_encode()
422 (*crypt)->priv); in libipw_wx_set_encode()
431 len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, in libipw_wx_set_encode()
432 NULL, (*crypt)->priv); in libipw_wx_set_encode()
438 (*crypt)->ops->set_key(sec.keys[key], 13, NULL, in libipw_wx_set_encode()
439 (*crypt)->priv); in libipw_wx_set_encode()
482 struct lib80211_crypt_data *crypt; in libipw_wx_get_encode() local
495 crypt = ieee->crypt_info.crypt[key]; in libipw_wx_get_encode()
529 struct lib80211_crypt_data **crypt; in libipw_wx_set_encodeext() local
544 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext()
551 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext()
559 if (*crypt) in libipw_wx_set_encodeext()
560 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encodeext()
563 if (ieee->crypt_info.crypt[i] != NULL) in libipw_wx_set_encodeext()
615 if (*crypt == NULL || (*crypt)->ops != ops) { in libipw_wx_set_encodeext()
618 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encodeext()
633 *crypt = new_crypt; in libipw_wx_set_encodeext()
636 if (ext->key_len > 0 && (*crypt)->ops->set_key && in libipw_wx_set_encodeext()
637 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in libipw_wx_set_encodeext()
638 (*crypt)->priv) < 0) { in libipw_wx_set_encodeext()