crypt 235 crypto/chacha20poly1305.c struct scatterlist *crypt = req->src; crypt 239 crypto/chacha20poly1305.c crypt = req->dst; crypt 241 crypto/chacha20poly1305.c crypt = scatterwalk_ffwd(rctx->src, crypt, req->assoclen); crypt 246 crypto/chacha20poly1305.c ahash_request_set_crypt(&preq->req, crypt, NULL, rctx->cryptlen); crypt 755 crypto/cryptd.c int (*crypt)(struct aead_request *req)) crypt 771 crypto/cryptd.c err = crypt( req ); crypt 621 crypto/skcipher.c int (*crypt)(struct blkcipher_desc *, crypt 635 crypto/skcipher.c return crypt(&desc, req->dst, req->src, req->cryptlen); crypt 722 crypto/skcipher.c int (*crypt)(struct ablkcipher_request *)) crypt 734 crypto/skcipher.c return crypt(subreq); crypt 164 crypto/xts.c int (*crypt)(struct skcipher_request *req)) crypt 190 crypto/xts.c err = crypt(subreq); crypt 341 drivers/crypto/ixp4xx_crypto.c static void finish_scattered_hmac(struct crypt_ctl *crypt) crypt 343 drivers/crypto/ixp4xx_crypto.c struct aead_request *req = crypt->data.aead_req; crypt 353 drivers/crypto/ixp4xx_crypto.c dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); crypt 359 drivers/crypto/ixp4xx_crypto.c struct crypt_ctl *crypt; crypt 365 drivers/crypto/ixp4xx_crypto.c crypt = crypt_phys2virt(phys); crypt 367 drivers/crypto/ixp4xx_crypto.c switch (crypt->ctl_flags & CTL_FLAG_MASK) { crypt 369 drivers/crypto/ixp4xx_crypto.c struct aead_request *req = crypt->data.aead_req; crypt 372 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->src, crypt->src_buf); crypt 373 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); crypt 375 drivers/crypto/ixp4xx_crypto.c finish_scattered_hmac(crypt); crypt 381 drivers/crypto/ixp4xx_crypto.c struct ablkcipher_request *req = crypt->data.ablk_req; crypt 385 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); crypt 387 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->src, crypt->src_buf); crypt 392 drivers/crypto/ixp4xx_crypto.c ctx = crypto_tfm_ctx(crypt->data.tfm); crypt 393 drivers/crypto/ixp4xx_crypto.c dma_pool_free(ctx_pool, crypt->regist_ptr, crypt 394 drivers/crypto/ixp4xx_crypto.c crypt->regist_buf->phys_addr); crypt 395 drivers/crypto/ixp4xx_crypto.c dma_pool_free(buffer_pool, crypt->regist_buf, crypt->src_buf); crypt 400 drivers/crypto/ixp4xx_crypto.c ctx = crypto_tfm_ctx(crypt->data.tfm); crypt 408 drivers/crypto/ixp4xx_crypto.c crypt->ctl_flags = CTL_FLAG_UNUSED; crypt 602 drivers/crypto/ixp4xx_crypto.c struct crypt_ctl *crypt; crypt 617 drivers/crypto/ixp4xx_crypto.c crypt = get_crypt_desc_emerg(); crypt 618 drivers/crypto/ixp4xx_crypto.c if (!crypt) { crypt 630 drivers/crypto/ixp4xx_crypto.c crypt->data.tfm = tfm; crypt 631 drivers/crypto/ixp4xx_crypto.c crypt->regist_ptr = pad; crypt 632 drivers/crypto/ixp4xx_crypto.c crypt->regist_buf = buf; crypt 634 drivers/crypto/ixp4xx_crypto.c crypt->auth_offs = 0; crypt 635 drivers/crypto/ixp4xx_crypto.c crypt->auth_len = HMAC_PAD_BLOCKLEN; crypt 636 drivers/crypto/ixp4xx_crypto.c crypt->crypto_ctx = ctx_addr; crypt 637 drivers/crypto/ixp4xx_crypto.c crypt->src_buf = buf_phys; crypt 638 drivers/crypto/ixp4xx_crypto.c crypt->icv_rev_aes = target; crypt 639 drivers/crypto/ixp4xx_crypto.c crypt->mode = NPE_OP_HASH_GEN_ICV; crypt 640 drivers/crypto/ixp4xx_crypto.c crypt->init_len = init_len; crypt 641 drivers/crypto/ixp4xx_crypto.c crypt->ctl_flags |= CTL_FLAG_GEN_ICV; crypt 649 drivers/crypto/ixp4xx_crypto.c qmgr_put_entry(SEND_QID, crypt_virt2phys(crypt)); crypt 703 drivers/crypto/ixp4xx_crypto.c struct crypt_ctl *crypt; crypt 707 drivers/crypto/ixp4xx_crypto.c crypt = get_crypt_desc_emerg(); crypt 708 drivers/crypto/ixp4xx_crypto.c if (!crypt) { crypt 713 drivers/crypto/ixp4xx_crypto.c crypt->data.tfm = tfm; crypt 714 drivers/crypto/ixp4xx_crypto.c crypt->crypt_offs = 0; crypt 715 drivers/crypto/ixp4xx_crypto.c crypt->crypt_len = AES_BLOCK128; crypt 716 drivers/crypto/ixp4xx_crypto.c crypt->src_buf = 0; crypt 717 drivers/crypto/ixp4xx_crypto.c crypt->crypto_ctx = dir->npe_ctx_phys; crypt 718 drivers/crypto/ixp4xx_crypto.c crypt->icv_rev_aes = dir->npe_ctx_phys + sizeof(u32); crypt 719 drivers/crypto/ixp4xx_crypto.c crypt->mode = NPE_OP_ENC_GEN_KEY; crypt 720 drivers/crypto/ixp4xx_crypto.c crypt->init_len = dir->npe_ctx_idx; crypt 721 drivers/crypto/ixp4xx_crypto.c crypt->ctl_flags |= CTL_FLAG_GEN_REVAES; crypt 724 drivers/crypto/ixp4xx_crypto.c qmgr_put_entry(SEND_QID, crypt_virt2phys(crypt)); crypt 877 drivers/crypto/ixp4xx_crypto.c struct crypt_ctl *crypt; crypt 893 drivers/crypto/ixp4xx_crypto.c crypt = get_crypt_desc(); crypt 894 drivers/crypto/ixp4xx_crypto.c if (!crypt) crypt 897 drivers/crypto/ixp4xx_crypto.c crypt->data.ablk_req = req; crypt 898 drivers/crypto/ixp4xx_crypto.c crypt->crypto_ctx = dir->npe_ctx_phys; crypt 899 drivers/crypto/ixp4xx_crypto.c crypt->mode = dir->npe_mode; crypt 900 drivers/crypto/ixp4xx_crypto.c crypt->init_len = dir->npe_ctx_idx; crypt 902 drivers/crypto/ixp4xx_crypto.c crypt->crypt_offs = 0; crypt 903 drivers/crypto/ixp4xx_crypto.c crypt->crypt_len = nbytes; crypt 906 drivers/crypto/ixp4xx_crypto.c memcpy(crypt->iv, req->info, ivsize); crypt 909 drivers/crypto/ixp4xx_crypto.c crypt->mode |= NPE_OP_NOT_IN_PLACE; crypt 918 drivers/crypto/ixp4xx_crypto.c crypt->dst_buf = dst_hook.phys_next; crypt 928 drivers/crypto/ixp4xx_crypto.c crypt->src_buf = src_hook.phys_next; crypt 929 drivers/crypto/ixp4xx_crypto.c crypt->ctl_flags |= CTL_FLAG_PERFORM_ABLK; crypt 930 drivers/crypto/ixp4xx_crypto.c qmgr_put_entry(SEND_QID, crypt_virt2phys(crypt)); crypt 935 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->src, crypt->src_buf); crypt 938 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); crypt 940 drivers/crypto/ixp4xx_crypto.c crypt->ctl_flags = CTL_FLAG_UNUSED; crypt 984 drivers/crypto/ixp4xx_crypto.c struct crypt_ctl *crypt; crypt 1008 drivers/crypto/ixp4xx_crypto.c crypt = get_crypt_desc(); crypt 1009 drivers/crypto/ixp4xx_crypto.c if (!crypt) crypt 1012 drivers/crypto/ixp4xx_crypto.c crypt->data.aead_req = req; crypt 1013 drivers/crypto/ixp4xx_crypto.c crypt->crypto_ctx = dir->npe_ctx_phys; crypt 1014 drivers/crypto/ixp4xx_crypto.c crypt->mode = dir->npe_mode; crypt 1015 drivers/crypto/ixp4xx_crypto.c crypt->init_len = dir->npe_ctx_idx; crypt 1017 drivers/crypto/ixp4xx_crypto.c crypt->crypt_offs = cryptoffset; crypt 1018 drivers/crypto/ixp4xx_crypto.c crypt->crypt_len = eff_cryptlen; crypt 1020 drivers/crypto/ixp4xx_crypto.c crypt->auth_offs = 0; crypt 1021 drivers/crypto/ixp4xx_crypto.c crypt->auth_len = req->assoclen + cryptlen; crypt 1023 drivers/crypto/ixp4xx_crypto.c memcpy(crypt->iv, req->iv, ivsize); crypt 1025 drivers/crypto/ixp4xx_crypto.c buf = chainup_buffers(dev, req->src, crypt->auth_len, crypt 1028 drivers/crypto/ixp4xx_crypto.c crypt->src_buf = src_hook.phys_next; crypt 1034 drivers/crypto/ixp4xx_crypto.c crypt->icv_rev_aes = buf->phys_addr + crypt 1042 drivers/crypto/ixp4xx_crypto.c crypt->mode |= NPE_OP_NOT_IN_PLACE; crypt 1045 drivers/crypto/ixp4xx_crypto.c buf = chainup_buffers(dev, req->dst, crypt->auth_len, crypt 1048 drivers/crypto/ixp4xx_crypto.c crypt->dst_buf = dst_hook.phys_next; crypt 1056 drivers/crypto/ixp4xx_crypto.c crypt->icv_rev_aes = buf->phys_addr + crypt 1065 drivers/crypto/ixp4xx_crypto.c &crypt->icv_rev_aes); crypt 1077 drivers/crypto/ixp4xx_crypto.c crypt->ctl_flags |= CTL_FLAG_PERFORM_AEAD; crypt 1078 drivers/crypto/ixp4xx_crypto.c qmgr_put_entry(SEND_QID, crypt_virt2phys(crypt)); crypt 1083 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); crypt 1085 drivers/crypto/ixp4xx_crypto.c free_buf_chain(dev, req_ctx->src, crypt->src_buf); crypt 1086 drivers/crypto/ixp4xx_crypto.c crypt->ctl_flags = CTL_FLAG_UNUSED; crypt 49 drivers/net/netdevsim/ipsec.c sap->xs->id.proto, sap->salt, sap->crypt); crypt 165 drivers/net/netdevsim/ipsec.c sa.crypt = xs->ealg || xs->aead; crypt 39 drivers/net/netdevsim/netdevsim.h bool crypt; crypt 4065 drivers/net/wireless/intel/ipw2x00/ipw2100.c DUMP_VAR(ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx], "p"); crypt 7613 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct lib80211_crypt_data *crypt; crypt 7628 drivers/net/wireless/intel/ipw2x00/ipw2100.c crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; crypt 7629 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) crypt 7632 drivers/net/wireless/intel/ipw2x00/ipw2100.c flags = crypt->ops->get_flags(crypt->priv); crypt 7639 drivers/net/wireless/intel/ipw2x00/ipw2100.c crypt->ops->set_flags(flags, crypt->priv); crypt 7705 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct lib80211_crypt_data *crypt; crypt 7719 drivers/net/wireless/intel/ipw2x00/ipw2100.c crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; crypt 7720 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!crypt || !crypt->ops->get_flags) { crypt 7726 drivers/net/wireless/intel/ipw2x00/ipw2100.c param->value = (crypt->ops->get_flags(crypt->priv) & crypt 6597 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct lib80211_crypt_data *crypt; crypt 6619 drivers/net/wireless/intel/ipw2x00/ipw2200.c crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; crypt 6620 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) crypt 6623 drivers/net/wireless/intel/ipw2x00/ipw2200.c flags = crypt->ops->get_flags(crypt->priv); crypt 6630 drivers/net/wireless/intel/ipw2x00/ipw2200.c crypt->ops->set_flags(flags, crypt->priv); crypt 6696 drivers/net/wireless/intel/ipw2x00/ipw2200.c struct lib80211_crypt_data *crypt; crypt 6710 drivers/net/wireless/intel/ipw2x00/ipw2200.c crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; crypt 6711 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!crypt || !crypt->ops->get_flags) crypt 6714 drivers/net/wireless/intel/ipw2x00/ipw2200.c param->value = (crypt->ops->get_flags(crypt->priv) & crypt 269 drivers/net/wireless/intel/ipw2x00/libipw_rx.c struct lib80211_crypt_data *crypt) crypt 274 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) crypt 280 drivers/net/wireless/intel/ipw2x00/libipw_rx.c atomic_inc(&crypt->refcnt); crypt 281 drivers/net/wireless/intel/ipw2x00/libipw_rx.c res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); crypt 282 drivers/net/wireless/intel/ipw2x00/libipw_rx.c atomic_dec(&crypt->refcnt); crypt 301 drivers/net/wireless/intel/ipw2x00/libipw_rx.c struct lib80211_crypt_data *crypt) crypt 306 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) crypt 312 drivers/net/wireless/intel/ipw2x00/libipw_rx.c atomic_inc(&crypt->refcnt); crypt 313 drivers/net/wireless/intel/ipw2x00/libipw_rx.c res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); crypt 314 drivers/net/wireless/intel/ipw2x00/libipw_rx.c atomic_dec(&crypt->refcnt); crypt 348 drivers/net/wireless/intel/ipw2x00/libipw_rx.c struct lib80211_crypt_data *crypt = NULL; crypt 429 drivers/net/wireless/intel/ipw2x00/libipw_rx.c crypt = ieee->crypt_info.crypt[keyidx]; crypt 442 drivers/net/wireless/intel/ipw2x00/libipw_rx.c (void)hostap_handle_sta_crypto(local, hdr, &crypt, crypt 448 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (crypt && (crypt->ops == NULL || crypt 449 drivers/net/wireless/intel/ipw2x00/libipw_rx.c crypt->ops->decrypt_mpdu == NULL)) crypt 450 drivers/net/wireless/intel/ipw2x00/libipw_rx.c crypt = NULL; crypt 452 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { crypt 467 drivers/net/wireless/intel/ipw2x00/libipw_rx.c (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) { crypt 570 drivers/net/wireless/intel/ipw2x00/libipw_rx.c (keyidx = libipw_rx_frame_decrypt(ieee, skb, crypt)) < 0) crypt 634 drivers/net/wireless/intel/ipw2x00/libipw_rx.c libipw_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) crypt 638 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep) { crypt 651 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep && crypt 141 drivers/net/wireless/intel/ipw2x00/libipw_tx.c struct lib80211_crypt_data *crypt = crypt 142 drivers/net/wireless/intel/ipw2x00/libipw_tx.c ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 145 drivers/net/wireless/intel/ipw2x00/libipw_tx.c if (crypt == NULL) crypt 150 drivers/net/wireless/intel/ipw2x00/libipw_tx.c atomic_inc(&crypt->refcnt); crypt 152 drivers/net/wireless/intel/ipw2x00/libipw_tx.c if (crypt->ops && crypt->ops->encrypt_mpdu) crypt 153 drivers/net/wireless/intel/ipw2x00/libipw_tx.c res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); crypt 155 drivers/net/wireless/intel/ipw2x00/libipw_tx.c atomic_dec(&crypt->refcnt); crypt 259 drivers/net/wireless/intel/ipw2x00/libipw_tx.c struct lib80211_crypt_data *crypt; crypt 283 drivers/net/wireless/intel/ipw2x00/libipw_tx.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 288 drivers/net/wireless/intel/ipw2x00/libipw_tx.c host_encrypt = ieee->host_encrypt && encrypt && crypt; crypt 289 drivers/net/wireless/intel/ipw2x00/libipw_tx.c host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; crypt 338 drivers/net/wireless/intel/ipw2x00/libipw_tx.c crypt && crypt->ops && crypt->ops->encrypt_msdu) { crypt 340 drivers/net/wireless/intel/ipw2x00/libipw_tx.c int len = bytes + hdr_len + crypt->ops->extra_msdu_prefix_len + crypt 341 drivers/net/wireless/intel/ipw2x00/libipw_tx.c crypt->ops->extra_msdu_postfix_len; crypt 347 drivers/net/wireless/intel/ipw2x00/libipw_tx.c skb_reserve(skb_new, crypt->ops->extra_msdu_prefix_len); crypt 353 drivers/net/wireless/intel/ipw2x00/libipw_tx.c res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv); crypt 361 drivers/net/wireless/intel/ipw2x00/libipw_tx.c bytes += crypt->ops->extra_msdu_prefix_len + crypt 362 drivers/net/wireless/intel/ipw2x00/libipw_tx.c crypt->ops->extra_msdu_postfix_len; crypt 387 drivers/net/wireless/intel/ipw2x00/libipw_tx.c bytes_per_frag -= crypt->ops->extra_mpdu_prefix_len + crypt 388 drivers/net/wireless/intel/ipw2x00/libipw_tx.c crypt->ops->extra_mpdu_postfix_len; crypt 456 drivers/net/wireless/intel/ipw2x00/libipw_tx.c crypt->ops->extra_mpdu_prefix_len); crypt 306 drivers/net/wireless/intel/ipw2x00/libipw_wx.c struct lib80211_crypt_data **crypt; crypt 325 drivers/net/wireless/intel/ipw2x00/libipw_wx.c crypt = &ieee->crypt_info.crypt[key]; crypt 328 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (key_provided && *crypt) { crypt 331 drivers/net/wireless/intel/ipw2x00/libipw_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 338 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (ieee->crypt_info.crypt[i] != NULL) { crypt 342 drivers/net/wireless/intel/ipw2x00/libipw_wx.c &ieee->crypt_info.crypt[i]); crypt 360 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (*crypt != NULL && (*crypt)->ops != NULL && crypt 361 drivers/net/wireless/intel/ipw2x00/libipw_wx.c strcmp((*crypt)->ops->name, "WEP") != 0) { crypt 364 drivers/net/wireless/intel/ipw2x00/libipw_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 367 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (*crypt == NULL && host_crypto) { crypt 392 drivers/net/wireless/intel/ipw2x00/libipw_wx.c *crypt = new_crypt; crypt 406 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (*crypt) crypt 407 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->ops->set_key(sec.keys[key], len, NULL, crypt 408 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->priv); crypt 417 drivers/net/wireless/intel/ipw2x00/libipw_wx.c len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, crypt 418 drivers/net/wireless/intel/ipw2x00/libipw_wx.c NULL, (*crypt)->priv); crypt 424 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->ops->set_key(sec.keys[key], 13, NULL, crypt 425 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->priv); crypt 513 drivers/net/wireless/intel/ipw2x00/libipw_wx.c struct lib80211_crypt_data **crypt; crypt 528 drivers/net/wireless/intel/ipw2x00/libipw_wx.c crypt = &ieee->crypt_info.crypt[idx]; crypt 535 drivers/net/wireless/intel/ipw2x00/libipw_wx.c crypt = &ieee->crypt_info.crypt[idx]; crypt 543 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (*crypt) crypt 544 drivers/net/wireless/intel/ipw2x00/libipw_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 547 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (ieee->crypt_info.crypt[i] != NULL) crypt 599 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (*crypt == NULL || (*crypt)->ops != ops) { crypt 602 drivers/net/wireless/intel/ipw2x00/libipw_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 617 drivers/net/wireless/intel/ipw2x00/libipw_wx.c *crypt = new_crypt; crypt 620 drivers/net/wireless/intel/ipw2x00/libipw_wx.c if (ext->key_len > 0 && (*crypt)->ops->set_key && crypt 621 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, crypt 622 drivers/net/wireless/intel/ipw2x00/libipw_wx.c (*crypt)->priv) < 0) { crypt 67 drivers/net/wireless/intersil/hostap/hostap.h struct lib80211_crypt_data ***crypt); crypt 650 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c struct lib80211_crypt_data *crypt) crypt 655 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) crypt 662 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c strcmp(crypt->ops->name, "TKIP") == 0) { crypt 671 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c atomic_inc(&crypt->refcnt); crypt 672 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); crypt 673 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c atomic_dec(&crypt->refcnt); crypt 688 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c int keyidx, struct lib80211_crypt_data *crypt) crypt 693 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) crypt 699 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c atomic_inc(&crypt->refcnt); crypt 700 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); crypt 701 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c atomic_dec(&crypt->refcnt); crypt 733 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c struct lib80211_crypt_data *crypt = NULL; crypt 784 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c crypt = local->crypt_info.crypt[idx]; crypt 795 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (void) hostap_handle_sta_crypto(local, hdr, &crypt, crypt 800 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (crypt && (crypt->ops == NULL || crypt 801 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c crypt->ops->decrypt_mpdu == NULL)) crypt 802 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c crypt = NULL; crypt 804 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { crypt 823 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) crypt 912 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) crypt 976 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c hostap_rx_frame_decrypt_msdu(local, skb, keyidx, crypt)) crypt 980 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !local->open_wep) { crypt 316 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c struct lib80211_crypt_data *crypt) crypt 332 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c strcmp(crypt->ops->name, "TKIP") == 0) { crypt 347 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c prefix_len = crypt->ops->extra_mpdu_prefix_len + crypt 348 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c crypt->ops->extra_msdu_prefix_len; crypt 349 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c postfix_len = crypt->ops->extra_mpdu_postfix_len + crypt 350 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c crypt->ops->extra_msdu_postfix_len; crypt 363 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c atomic_inc(&crypt->refcnt); crypt 365 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c if (crypt->ops->encrypt_msdu) crypt 366 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv); crypt 367 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c if (res == 0 && crypt->ops->encrypt_mpdu) crypt 368 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c res = crypt->ops->encrypt_mpdu(skb, hdr_len, crypt->priv); crypt 369 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c atomic_dec(&crypt->refcnt); crypt 414 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c tx.crypt = local->crypt_info.crypt[local->crypt_info.tx_keyidx]; crypt 417 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c tx.crypt = NULL; crypt 483 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c tx.crypt = NULL; crypt 486 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt && crypt 491 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c tx.crypt = NULL; /* no encryption for IEEE 802.1X frames */ crypt 494 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c if (tx.crypt && (!tx.crypt->ops || !tx.crypt->ops->encrypt_mpdu)) crypt 495 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c tx.crypt = NULL; crypt 496 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c else if ((tx.crypt || crypt 497 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c local->crypt_info.crypt[local->crypt_info.tx_keyidx]) && crypt 515 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c if (tx.crypt) { crypt 516 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c skb = hostap_tx_encrypt(skb, tx.crypt); crypt 123 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->crypt) { crypt 124 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->crypt->ops->deinit(sta->crypt->priv); crypt 125 drivers/net/wireless/intersil/hostap/hostap_ap.c kfree(sta->crypt); crypt 126 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->crypt = NULL; crypt 877 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt) crypt 878 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->deinit(ap->crypt_priv); crypt 879 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt = ap->crypt_priv = NULL; crypt 1042 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->crypt && sta->crypt->ops && sta->crypt->ops->print_stats) crypt 1043 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->crypt->ops->print_stats(m, sta->crypt->priv); crypt 1210 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt = lib80211_get_crypto_ops("WEP"); crypt 1212 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt) { crypt 1213 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt->init) { crypt 1214 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt_priv = ap->crypt->init(0); crypt 1216 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt = NULL; crypt 1220 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->set_key(key, WEP_KEY_LEN, NULL, crypt 1226 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt == NULL) { crypt 1246 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt == NULL) { crypt 1248 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt == NULL) crypt 1259 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->extra_mpdu_prefix_len + crypt 1260 drivers/net/wireless/intersil/hostap/hostap_ap.c ap->crypt->extra_mpdu_postfix_len); crypt 1266 drivers/net/wireless/intersil/hostap/hostap_ap.c skb_reserve(skb, ap->crypt->extra_mpdu_prefix_len); crypt 1268 drivers/net/wireless/intersil/hostap/hostap_ap.c if (ap->crypt->encrypt_mpdu(skb, 0, ap->crypt_priv)) { crypt 1274 drivers/net/wireless/intersil/hostap/hostap_ap.c skb_copy_from_linear_data_offset(skb, ap->crypt->extra_mpdu_prefix_len, crypt 1296 drivers/net/wireless/intersil/hostap/hostap_ap.c struct lib80211_crypt_data *crypt; crypt 1315 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta && sta->crypt) crypt 1316 drivers/net/wireless/intersil/hostap/hostap_ap.c crypt = sta->crypt; crypt 1321 drivers/net/wireless/intersil/hostap/hostap_ap.c crypt = local->crypt_info.crypt[idx]; crypt 1342 drivers/net/wireless/intersil/hostap/hostap_ap.c crypt && auth_alg == WLAN_AUTH_SHARED_KEY)) { crypt 2802 drivers/net/wireless/intersil/hostap/hostap_ap.c sta->crypt && tx->host_encrypt) { crypt 2803 drivers/net/wireless/intersil/hostap/hostap_ap.c tx->crypt = sta->crypt; crypt 3064 drivers/net/wireless/intersil/hostap/hostap_ap.c struct lib80211_crypt_data **crypt, crypt 3078 drivers/net/wireless/intersil/hostap/hostap_ap.c if (sta->crypt) { crypt 3079 drivers/net/wireless/intersil/hostap/hostap_ap.c *crypt = sta->crypt; crypt 3212 drivers/net/wireless/intersil/hostap/hostap_ap.c struct lib80211_crypt_data ***crypt) crypt 3231 drivers/net/wireless/intersil/hostap/hostap_ap.c *crypt = &sta->crypt; crypt 78 drivers/net/wireless/intersil/hostap/hostap_ap.h struct lib80211_crypt_data *crypt; crypt 213 drivers/net/wireless/intersil/hostap/hostap_ap.h struct lib80211_crypto_ops *crypt; crypt 233 drivers/net/wireless/intersil/hostap/hostap_ap.h struct lib80211_crypt_data *crypt; crypt 248 drivers/net/wireless/intersil/hostap/hostap_ap.h struct lib80211_crypt_data **crypt, crypt 382 drivers/net/wireless/intersil/hostap/hostap_common.h } crypt; crypt 132 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct lib80211_crypt_data **crypt; crypt 145 drivers/net/wireless/intersil/hostap/hostap_ioctl.c crypt = &local->crypt_info.crypt[i]; crypt 148 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt) crypt 149 drivers/net/wireless/intersil/hostap/hostap_ioctl.c lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); crypt 153 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt != NULL && (*crypt)->ops != NULL && crypt 154 drivers/net/wireless/intersil/hostap/hostap_ioctl.c strcmp((*crypt)->ops->name, "WEP") != 0) { crypt 156 drivers/net/wireless/intersil/hostap/hostap_ioctl.c lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); crypt 159 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt == NULL) { crypt 183 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *crypt = new_crypt; crypt 191 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->set_key(keybuf, len, NULL, (*crypt)->priv); crypt 193 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (j != i && local->crypt_info.crypt[j]) { crypt 235 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct lib80211_crypt_data *crypt; crypt 248 drivers/net/wireless/intersil/hostap/hostap_ioctl.c crypt = local->crypt_info.crypt[i]; crypt 251 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (crypt == NULL || crypt->ops == NULL) { crypt 257 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (strcmp(crypt->ops->name, "WEP") != 0) { crypt 267 drivers/net/wireless/intersil/hostap/hostap_ioctl.c len = crypt->ops->get_key(key, WEP_KEY_LEN, NULL, crypt->priv); crypt 3206 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct lib80211_crypt_data **crypt; crypt 3224 drivers/net/wireless/intersil/hostap/hostap_ioctl.c crypt = &local->crypt_info.crypt[i]; crypt 3228 drivers/net/wireless/intersil/hostap/hostap_ioctl.c sta_ptr = ap_crypt_get_ptrs(local->ap, addr, 0, &crypt); crypt 3237 drivers/net/wireless/intersil/hostap/hostap_ioctl.c crypt = &local->crypt_info.crypt[i]; crypt 3245 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt) crypt 3246 drivers/net/wireless/intersil/hostap/hostap_ioctl.c lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); crypt 3291 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt == NULL || (*crypt)->ops != ops) { crypt 3294 drivers/net/wireless/intersil/hostap/hostap_ioctl.c lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); crypt 3311 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *crypt = new_crypt; crypt 3321 drivers/net/wireless/intersil/hostap/hostap_ioctl.c && (*crypt)->ops->set_key && crypt 3322 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, crypt 3323 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->priv) < 0) { crypt 3339 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (j != i && local->crypt_info.crypt[j]) { crypt 3377 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct lib80211_crypt_data **crypt; crypt 3396 drivers/net/wireless/intersil/hostap/hostap_ioctl.c crypt = &local->crypt_info.crypt[i]; crypt 3399 drivers/net/wireless/intersil/hostap/hostap_ioctl.c sta_ptr = ap_crypt_get_ptrs(local->ap, addr, 0, &crypt); crypt 3406 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt == NULL || (*crypt)->ops == NULL) { crypt 3411 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (strcmp((*crypt)->ops->name, "WEP") == 0) crypt 3413 drivers/net/wireless/intersil/hostap/hostap_ioctl.c else if (strcmp((*crypt)->ops->name, "TKIP") == 0) crypt 3415 drivers/net/wireless/intersil/hostap/hostap_ioctl.c else if (strcmp((*crypt)->ops->name, "CCMP") == 0) crypt 3420 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if ((*crypt)->ops->get_key) { crypt 3422 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->get_key(ext->key, crypt 3425 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->priv); crypt 3446 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct lib80211_crypt_data **crypt; crypt 3449 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = 0; crypt 3450 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.alg[HOSTAP_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 3453 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (int) ((char *) param->u.crypt.key - (char *) param) + crypt 3454 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.key_len) crypt 3458 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (param->u.crypt.idx >= WEP_KEYS) crypt 3461 drivers/net/wireless/intersil/hostap/hostap_ioctl.c crypt = &local->crypt_info.crypt[param->u.crypt.idx]; crypt 3463 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (param->u.crypt.idx) crypt 3467 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (param->u.crypt.flags & HOSTAP_CRYPT_FLAG_PERMANENT), crypt 3468 drivers/net/wireless/intersil/hostap/hostap_ioctl.c &crypt); crypt 3471 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; crypt 3476 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (strcmp(param->u.crypt.alg, "none") == 0) { crypt 3477 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (crypt) crypt 3478 drivers/net/wireless/intersil/hostap/hostap_ioctl.c lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); crypt 3482 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ops = lib80211_get_crypto_ops(param->u.crypt.alg); crypt 3483 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (ops == NULL && strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 3485 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ops = lib80211_get_crypto_ops(param->u.crypt.alg); crypt 3486 drivers/net/wireless/intersil/hostap/hostap_ioctl.c } else if (ops == NULL && strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 3488 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ops = lib80211_get_crypto_ops(param->u.crypt.alg); crypt 3489 drivers/net/wireless/intersil/hostap/hostap_ioctl.c } else if (ops == NULL && strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 3491 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ops = lib80211_get_crypto_ops(param->u.crypt.alg); crypt 3495 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->dev->name, param->u.crypt.alg); crypt 3496 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ALG; crypt 3505 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt == NULL || (*crypt)->ops != ops) { crypt 3508 drivers/net/wireless/intersil/hostap/hostap_ioctl.c lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); crypt 3517 drivers/net/wireless/intersil/hostap/hostap_ioctl.c new_crypt->priv = new_crypt->ops->init(param->u.crypt.idx); crypt 3520 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = crypt 3526 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *crypt = new_crypt; crypt 3529 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if ((!(param->u.crypt.flags & HOSTAP_CRYPT_FLAG_SET_TX_KEY) || crypt 3530 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.key_len > 0) && (*crypt)->ops->set_key && crypt 3531 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->set_key(param->u.crypt.key, crypt 3532 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.key_len, param->u.crypt.seq, crypt 3533 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->priv) < 0) { crypt 3536 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = HOSTAP_CRYPT_ERR_KEY_SET_FAILED; crypt 3541 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (param->u.crypt.flags & HOSTAP_CRYPT_FLAG_SET_TX_KEY) { crypt 3543 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->crypt_info.tx_keyidx = param->u.crypt.idx; crypt 3544 drivers/net/wireless/intersil/hostap/hostap_ioctl.c else if (param->u.crypt.idx) { crypt 3547 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = crypt 3567 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = HOSTAP_CRYPT_ERR_CARD_CONF_FAILED; crypt 3579 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct lib80211_crypt_data **crypt; crypt 3583 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = 0; crypt 3586 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (int) ((char *) param->u.crypt.key - (char *) param); crypt 3592 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (param->u.crypt.idx >= WEP_KEYS) crypt 3593 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.idx = local->crypt_info.tx_keyidx; crypt 3594 drivers/net/wireless/intersil/hostap/hostap_ioctl.c crypt = &local->crypt_info.crypt[param->u.crypt.idx]; crypt 3596 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.idx = 0; crypt 3598 drivers/net/wireless/intersil/hostap/hostap_ioctl.c &crypt); crypt 3601 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; crypt 3606 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*crypt == NULL || (*crypt)->ops == NULL) { crypt 3607 drivers/net/wireless/intersil/hostap/hostap_ioctl.c memcpy(param->u.crypt.alg, "none", 5); crypt 3608 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.key_len = 0; crypt 3609 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.idx = 0xff; crypt 3611 drivers/net/wireless/intersil/hostap/hostap_ioctl.c strncpy(param->u.crypt.alg, (*crypt)->ops->name, crypt 3613 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.key_len = 0; crypt 3615 drivers/net/wireless/intersil/hostap/hostap_ioctl.c memset(param->u.crypt.seq, 0, 8); crypt 3616 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if ((*crypt)->ops->get_key) { crypt 3617 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.key_len = crypt 3618 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->ops->get_key(param->u.crypt.key, crypt 3620 drivers/net/wireless/intersil/hostap/hostap_ioctl.c param->u.crypt.seq, crypt 3621 drivers/net/wireless/intersil/hostap/hostap_ioctl.c (*crypt)->priv); crypt 334 drivers/net/wireless/intersil/hostap/hostap_main.c if (local->crypt_info.crypt[idx] == NULL || crypt 335 drivers/net/wireless/intersil/hostap/hostap_main.c local->crypt_info.crypt[idx]->ops == NULL) crypt 337 drivers/net/wireless/intersil/hostap/hostap_main.c else if (strcmp(local->crypt_info.crypt[idx]->ops->name, "WEP") == 0) crypt 385 drivers/net/wireless/intersil/hostap/hostap_main.c len = local->crypt_info.crypt[idx]->ops->get_key(keybuf, sizeof(keybuf), NULL, crypt 386 drivers/net/wireless/intersil/hostap/hostap_main.c local->crypt_info.crypt[idx]->priv); crypt 392 drivers/net/wireless/intersil/hostap/hostap_main.c if (local->crypt_info.crypt[i]) { crypt 393 drivers/net/wireless/intersil/hostap/hostap_main.c (void) local->crypt_info.crypt[i]->ops->get_key( crypt 395 drivers/net/wireless/intersil/hostap/hostap_main.c NULL, local->crypt_info.crypt[i]->priv); crypt 32 drivers/net/wireless/intersil/hostap/hostap_proc.c if (local->crypt_info.crypt[i] && crypt 33 drivers/net/wireless/intersil/hostap/hostap_proc.c local->crypt_info.crypt[i]->ops) { crypt 35 drivers/net/wireless/intersil/hostap/hostap_proc.c local->crypt_info.crypt[i]->ops->name); crypt 185 drivers/net/wireless/intersil/hostap/hostap_proc.c if (local->crypt_info.crypt[i] && crypt 186 drivers/net/wireless/intersil/hostap/hostap_proc.c local->crypt_info.crypt[i]->ops && crypt 187 drivers/net/wireless/intersil/hostap/hostap_proc.c local->crypt_info.crypt[i]->ops->print_stats) { crypt 188 drivers/net/wireless/intersil/hostap/hostap_proc.c local->crypt_info.crypt[i]->ops->print_stats( crypt 189 drivers/net/wireless/intersil/hostap/hostap_proc.c m, local->crypt_info.crypt[i]->priv); crypt 221 drivers/staging/rtl8188eu/include/ieee80211.h } crypt; crypt 358 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.err = 0; crypt 359 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 361 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { crypt 367 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.idx >= WEP_KEYS) { crypt 376 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 384 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wep_key_idx = param->u.crypt.idx; crypt 385 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wep_key_len = param->u.crypt.key_len; crypt 416 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); crypt 417 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.set_tx) { crypt 443 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "none") != 0) crypt 450 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.set_tx == 1) { /* pairwise key */ crypt 451 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 453 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ crypt 454 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); crypt 455 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); crypt 463 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16 )); crypt 464 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); crypt 465 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); crypt 469 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c padapter->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx; crypt 471 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c rtw_set_key(padapter, &padapter->securitypriv, param->u.crypt.idx, 1); crypt 479 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "none") != 0) crypt 1897 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c strlcpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); crypt 1900 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.set_tx = 1; crypt 1907 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.set_tx = 0; crypt 1909 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.idx = (pencoding->flags&0x00FF) - 1; crypt 1912 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(param->u.crypt.seq, pext->rx_seq, 8); crypt 1915 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key_len = pext->key_len; crypt 1916 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(param->u.crypt.key, pext + 1, pext->key_len); crypt 2204 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.err = 0; crypt 2205 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 2206 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param_len != sizeof(struct ieee_param) + param->u.crypt.key_len) { crypt 2211 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.idx >= WEP_KEYS) { crypt 2223 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "none") == 0 && (!psta)) { crypt 2226 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c DBG_88E("clear default encryption keys, keyid =%d\n", param->u.crypt.idx); crypt 2229 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0 && (!psta)) { crypt 2231 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wep_key_idx = param->u.crypt.idx; crypt 2232 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wep_key_len = param->u.crypt.key_len; crypt 2256 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); crypt 2258 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.set_tx) { crypt 2294 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.set_tx == 1) { crypt 2295 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 2298 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, crypt 2299 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 2302 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.key_len == 13) crypt 2304 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 2307 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, crypt 2308 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 2310 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); crypt 2311 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); crypt 2314 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 2317 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, crypt 2318 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 2323 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx; crypt 2326 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); crypt 2338 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.set_tx == 1) { crypt 2339 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 2341 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 2345 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.key_len == 13) crypt 2347 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 2353 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); crypt 2354 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); crypt 2357 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 2371 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 2372 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, crypt 2373 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 2375 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (param->u.crypt.key_len == 13) crypt 2377 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 2380 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, crypt 2381 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 2384 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); crypt 2385 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); crypt 2388 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 2391 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, crypt 2392 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c param->u.crypt.key, min_t(u16, param->u.crypt.key_len, 16)); crypt 2397 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx; crypt 2403 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); crypt 284 drivers/staging/rtl8192e/rtllib_rx.c struct lib80211_crypt_data *crypt) crypt 289 drivers/staging/rtl8192e/rtllib_rx.c if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) crypt 305 drivers/staging/rtl8192e/rtllib_rx.c atomic_inc(&crypt->refcnt); crypt 306 drivers/staging/rtl8192e/rtllib_rx.c res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); crypt 307 drivers/staging/rtl8192e/rtllib_rx.c atomic_dec(&crypt->refcnt); crypt 325 drivers/staging/rtl8192e/rtllib_rx.c int keyidx, struct lib80211_crypt_data *crypt) crypt 330 drivers/staging/rtl8192e/rtllib_rx.c if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) crypt 345 drivers/staging/rtl8192e/rtllib_rx.c atomic_inc(&crypt->refcnt); crypt 346 drivers/staging/rtl8192e/rtllib_rx.c res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); crypt 347 drivers/staging/rtl8192e/rtllib_rx.c atomic_dec(&crypt->refcnt); crypt 1044 drivers/staging/rtl8192e/rtllib_rx.c struct lib80211_crypt_data **crypt, size_t hdrlen) crypt 1054 drivers/staging/rtl8192e/rtllib_rx.c *crypt = ieee->crypt_info.crypt[idx]; crypt 1058 drivers/staging/rtl8192e/rtllib_rx.c if (*crypt && ((*crypt)->ops == NULL || crypt 1059 drivers/staging/rtl8192e/rtllib_rx.c (*crypt)->ops->decrypt_mpdu == NULL)) crypt 1060 drivers/staging/rtl8192e/rtllib_rx.c *crypt = NULL; crypt 1062 drivers/staging/rtl8192e/rtllib_rx.c if (!*crypt && (fc & RTLLIB_FCTL_WEP)) { crypt 1080 drivers/staging/rtl8192e/rtllib_rx.c struct lib80211_crypt_data *crypt, size_t hdrlen) crypt 1097 drivers/staging/rtl8192e/rtllib_rx.c keyidx = rtllib_rx_frame_decrypt(ieee, skb, crypt); crypt 1163 drivers/staging/rtl8192e/rtllib_rx.c rtllib_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) { crypt 1169 drivers/staging/rtl8192e/rtllib_rx.c if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep) { crypt 1189 drivers/staging/rtl8192e/rtllib_rx.c if (crypt && !(fc & RTLLIB_FCTL_WEP) && crypt 1197 drivers/staging/rtl8192e/rtllib_rx.c if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep && crypt 1298 drivers/staging/rtl8192e/rtllib_rx.c struct lib80211_crypt_data *crypt = NULL; crypt 1388 drivers/staging/rtl8192e/rtllib_rx.c ret = rtllib_rx_get_crypt(ieee, skb, &crypt, hdrlen); crypt 1393 drivers/staging/rtl8192e/rtllib_rx.c ret = rtllib_rx_decrypt(ieee, skb, rx_stats, crypt, hdrlen); crypt 821 drivers/staging/rtl8192e/rtllib_softmac.c struct lib80211_crypt_data *crypt; crypt 856 drivers/staging/rtl8192e/rtllib_softmac.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 857 drivers/staging/rtl8192e/rtllib_softmac.c encrypt = ieee->host_encrypt && crypt && crypt->ops && crypt 858 drivers/staging/rtl8192e/rtllib_softmac.c ((strcmp(crypt->ops->name, "R-WEP") == 0 || wpa_ie_len)); crypt 907 drivers/staging/rtl8192e/rtllib_softmac.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 966 drivers/staging/rtl8192e/rtllib_softmac.c struct lib80211_crypt_data *crypt; crypt 996 drivers/staging/rtl8192e/rtllib_softmac.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 998 drivers/staging/rtl8192e/rtllib_softmac.c crypt = NULL; crypt 1000 drivers/staging/rtl8192e/rtllib_softmac.c encrypt = (crypt && crypt->ops); crypt 1159 drivers/staging/rtl8192e/rtllib_softmac.c struct lib80211_crypt_data *crypt; crypt 1173 drivers/staging/rtl8192e/rtllib_softmac.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 1174 drivers/staging/rtl8192e/rtllib_softmac.c if (crypt != NULL) crypt 1175 drivers/staging/rtl8192e/rtllib_softmac.c encrypt = ieee->host_encrypt && crypt && crypt->ops && crypt 1176 drivers/staging/rtl8192e/rtllib_softmac.c ((strcmp(crypt->ops->name, "R-WEP") == 0 || crypt 3129 drivers/staging/rtl8192e/rtllib_softmac.c struct lib80211_crypt_data *crypt; crypt 3132 drivers/staging/rtl8192e/rtllib_softmac.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 3134 drivers/staging/rtl8192e/rtllib_softmac.c || (ieee->host_encrypt && crypt && crypt->ops && crypt 3135 drivers/staging/rtl8192e/rtllib_softmac.c (strcmp(crypt->ops->name, "R-WEP") == 0)); crypt 160 drivers/staging/rtl8192e/rtllib_tx.c struct lib80211_crypt_data *crypt = NULL; crypt 163 drivers/staging/rtl8192e/rtllib_tx.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 165 drivers/staging/rtl8192e/rtllib_tx.c if (!(crypt && crypt->ops)) { crypt 177 drivers/staging/rtl8192e/rtllib_tx.c atomic_inc(&crypt->refcnt); crypt 179 drivers/staging/rtl8192e/rtllib_tx.c if (crypt->ops->encrypt_msdu) crypt 180 drivers/staging/rtl8192e/rtllib_tx.c res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); crypt 181 drivers/staging/rtl8192e/rtllib_tx.c if (res == 0 && crypt->ops->encrypt_mpdu) crypt 182 drivers/staging/rtl8192e/rtllib_tx.c res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); crypt 184 drivers/staging/rtl8192e/rtllib_tx.c atomic_dec(&crypt->refcnt); crypt 568 drivers/staging/rtl8192e/rtllib_tx.c struct lib80211_crypt_data *crypt = NULL; crypt 643 drivers/staging/rtl8192e/rtllib_tx.c crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; crypt 645 drivers/staging/rtl8192e/rtllib_tx.c ieee->host_encrypt && crypt && crypt->ops; crypt 651 drivers/staging/rtl8192e/rtllib_tx.c if (crypt && !encrypt && ether_type == ETH_P_PAE) { crypt 747 drivers/staging/rtl8192e/rtllib_tx.c bytes_per_frag -= crypt->ops->extra_mpdu_prefix_len + crypt 748 drivers/staging/rtl8192e/rtllib_tx.c crypt->ops->extra_mpdu_postfix_len + crypt 749 drivers/staging/rtl8192e/rtllib_tx.c crypt->ops->extra_msdu_prefix_len + crypt 750 drivers/staging/rtl8192e/rtllib_tx.c crypt->ops->extra_msdu_postfix_len; crypt 799 drivers/staging/rtl8192e/rtllib_tx.c crypt->ops->extra_mpdu_prefix_len + crypt 800 drivers/staging/rtl8192e/rtllib_tx.c crypt->ops->extra_msdu_prefix_len); crypt 297 drivers/staging/rtl8192e/rtllib_wx.c struct lib80211_crypt_data **crypt; crypt 314 drivers/staging/rtl8192e/rtllib_wx.c crypt = &ieee->crypt_info.crypt[key]; crypt 316 drivers/staging/rtl8192e/rtllib_wx.c if (key_provided && *crypt) { crypt 319 drivers/staging/rtl8192e/rtllib_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 327 drivers/staging/rtl8192e/rtllib_wx.c if (ieee->crypt_info.crypt[i] != NULL) { crypt 331 drivers/staging/rtl8192e/rtllib_wx.c &ieee->crypt_info.crypt[i]); crypt 349 drivers/staging/rtl8192e/rtllib_wx.c if (*crypt != NULL && (*crypt)->ops != NULL && crypt 350 drivers/staging/rtl8192e/rtllib_wx.c strcmp((*crypt)->ops->name, "R-WEP") != 0) { crypt 354 drivers/staging/rtl8192e/rtllib_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 357 drivers/staging/rtl8192e/rtllib_wx.c if (*crypt == NULL) { crypt 382 drivers/staging/rtl8192e/rtllib_wx.c *crypt = new_crypt; crypt 396 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->ops->set_key(sec.keys[key], len, NULL, crypt 397 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->priv); crypt 407 drivers/staging/rtl8192e/rtllib_wx.c len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, crypt 408 drivers/staging/rtl8192e/rtllib_wx.c NULL, (*crypt)->priv); crypt 415 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->ops->set_key(sec.keys[key], 13, NULL, crypt 416 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->priv); crypt 470 drivers/staging/rtl8192e/rtllib_wx.c struct lib80211_crypt_data *crypt; crypt 485 drivers/staging/rtl8192e/rtllib_wx.c crypt = ieee->crypt_info.crypt[key]; crypt 489 drivers/staging/rtl8192e/rtllib_wx.c if (crypt == NULL || crypt->ops == NULL) { crypt 494 drivers/staging/rtl8192e/rtllib_wx.c len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); crypt 521 drivers/staging/rtl8192e/rtllib_wx.c struct lib80211_crypt_data **crypt; crypt 535 drivers/staging/rtl8192e/rtllib_wx.c crypt = &ieee->crypt_info.crypt[idx]; crypt 542 drivers/staging/rtl8192e/rtllib_wx.c crypt = &ieee->crypt_info.crypt[idx]; crypt 550 drivers/staging/rtl8192e/rtllib_wx.c if (*crypt) crypt 551 drivers/staging/rtl8192e/rtllib_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 554 drivers/staging/rtl8192e/rtllib_wx.c if (ieee->crypt_info.crypt[i] != NULL) crypt 601 drivers/staging/rtl8192e/rtllib_wx.c if (*crypt == NULL || (*crypt)->ops != ops) { crypt 604 drivers/staging/rtl8192e/rtllib_wx.c lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); crypt 620 drivers/staging/rtl8192e/rtllib_wx.c *crypt = new_crypt; crypt 624 drivers/staging/rtl8192e/rtllib_wx.c if (ext->key_len > 0 && (*crypt)->ops->set_key && crypt 625 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, crypt 626 drivers/staging/rtl8192e/rtllib_wx.c (*crypt)->priv) < 0) { crypt 320 drivers/staging/rtl8192u/ieee80211/ieee80211.h } crypt; crypt 1716 drivers/staging/rtl8192u/ieee80211/ieee80211.h struct ieee80211_crypt_data *crypt[WEP_KEYS]; crypt 73 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c struct ieee80211_crypt_data **crypt) crypt 78 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c if (!(*crypt)) crypt 81 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c tmp = *crypt; crypt 82 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c *crypt = NULL; crypt 84 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.h struct ieee80211_crypt_data **crypt); crypt 205 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c struct ieee80211_crypt_data *crypt = ieee->crypt[i]; crypt 207 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c if (crypt) { crypt 208 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c if (crypt->ops) crypt 209 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c crypt->ops->deinit(crypt->priv); crypt 210 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c kfree(crypt); crypt 211 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c ieee->crypt[i] = NULL; crypt 335 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c struct ieee80211_crypt_data *crypt) crypt 340 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (!crypt || !crypt->ops->decrypt_mpdu) crypt 350 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c strcmp(crypt->ops->name, "TKIP") == 0) { crypt 359 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c atomic_inc(&crypt->refcnt); crypt 360 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); crypt 361 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c atomic_dec(&crypt->refcnt); crypt 381 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c int keyidx, struct ieee80211_crypt_data *crypt) crypt 386 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (!crypt || !crypt->ops->decrypt_msdu) crypt 396 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c atomic_inc(&crypt->refcnt); crypt 397 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); crypt 398 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c atomic_dec(&crypt->refcnt); crypt 897 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c struct ieee80211_crypt_data *crypt = NULL; crypt 956 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c crypt = ieee->crypt[idx]; crypt 968 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c (void)hostap_handle_sta_crypto(local, hdr, &crypt, crypt 974 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (crypt && (!crypt->ops || !crypt->ops->decrypt_mpdu)) crypt 975 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c crypt = NULL; crypt 977 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (!crypt && (fc & IEEE80211_FCTL_WEP)) { crypt 1115 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c (keyidx = ieee80211_rx_frame_decrypt(ieee, skb, crypt)) < 0) { crypt 1180 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c ieee80211_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) { crypt 1190 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep) { crypt 1212 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_WEP) && crypt 1221 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep && crypt 665 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct ieee80211_crypt_data *crypt; crypt 695 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c crypt = ieee->crypt[ieee->tx_keyidx]; crypt 697 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c encrypt = ieee->host_encrypt && crypt && crypt->ops && crypt 698 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); crypt 808 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct ieee80211_crypt_data *crypt; crypt 835 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c crypt = ieee->crypt[ieee->tx_keyidx]; crypt 837 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c crypt = NULL; crypt 839 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c encrypt = crypt && crypt->ops; crypt 957 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct ieee80211_crypt_data *crypt; crypt 968 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c crypt = ieee->crypt[ieee->tx_keyidx]; crypt 969 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); crypt 2795 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct ieee80211_crypt_data **crypt; crypt 2801 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.err = 0; crypt 2802 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 2805 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c (int)((char *)param->u.crypt.key - (char *)param) + crypt 2806 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.key_len) { crypt 2808 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.key_len); crypt 2812 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (param->u.crypt.idx >= WEP_KEYS) crypt 2814 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c crypt = &ieee->crypt[param->u.crypt.idx]; crypt 2819 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (strcmp(param->u.crypt.alg, "none") == 0) { crypt 2820 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (crypt) { crypt 2826 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_crypt_delayed_deinit(ieee, crypt); crypt 2837 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c strcmp(param->u.crypt.alg, "TKIP")) crypt 2841 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (!strcmp(param->u.crypt.alg, "WEP")) crypt 2843 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c else if (!strcmp(param->u.crypt.alg, "TKIP")) crypt 2845 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c else if (!strcmp(param->u.crypt.alg, "CCMP")) crypt 2848 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ops = try_then_request_module(ieee80211_get_crypto_ops(param->u.crypt.alg), crypt 2851 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c printk("unknown crypto alg '%s'\n", param->u.crypt.alg); crypt 2852 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.err = IEEE_CRYPT_ERR_UNKNOWN_ALG; crypt 2857 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (!*crypt || (*crypt)->ops != ops) { crypt 2860 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_crypt_delayed_deinit(ieee, crypt); crypt 2870 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c new_crypt->ops->init(param->u.crypt.idx); crypt 2874 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.err = IEEE_CRYPT_ERR_CRYPT_INIT_FAILED; crypt 2879 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c *crypt = new_crypt; crypt 2882 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (param->u.crypt.key_len > 0 && (*crypt)->ops->set_key && crypt 2883 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c (*crypt)->ops->set_key(param->u.crypt.key, crypt 2884 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.key_len, param->u.crypt.seq, crypt 2885 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c (*crypt)->priv) < 0) { crypt 2887 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.err = IEEE_CRYPT_ERR_KEY_SET_FAILED; crypt 2893 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (param->u.crypt.set_tx) { crypt 2894 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee->tx_keyidx = param->u.crypt.idx; crypt 2895 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c sec.active_key = param->u.crypt.idx; crypt 2900 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c memcpy(sec.keys[param->u.crypt.idx], crypt 2901 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.key, crypt 2902 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.key_len); crypt 2903 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c sec.key_sizes[param->u.crypt.idx] = param->u.crypt.key_len; crypt 2904 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c sec.flags |= (1 << param->u.crypt.idx); crypt 2906 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 2909 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 2912 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c } else if (strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 2930 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c param->u.crypt.err = IEEE_CRYPT_ERR_CARD_CONF_FAILED; crypt 169 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx]; crypt 172 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (!(crypt && crypt->ops)) { crypt 178 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) { crypt 198 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c atomic_inc(&crypt->refcnt); crypt 200 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (crypt->ops->encrypt_msdu) crypt 201 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); crypt 202 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (res == 0 && crypt->ops->encrypt_mpdu) crypt 203 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); crypt 205 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c atomic_dec(&crypt->refcnt); crypt 549 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c struct ieee80211_crypt_data *crypt; crypt 576 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c crypt = ieee->crypt[ieee->tx_keyidx]; crypt 579 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c ieee->host_encrypt && crypt && crypt->ops; crypt 587 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (crypt && !encrypt && ether_type == ETH_P_PAE) { crypt 669 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c bytes_per_frag -= crypt->ops->extra_prefix_len + crypt 670 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c crypt->ops->extra_postfix_len; crypt 720 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c skb_reserve(skb_frag, crypt->ops->extra_prefix_len); crypt 283 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c struct ieee80211_crypt_data **crypt; crypt 300 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c crypt = &ieee->crypt[key]; crypt 303 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (key_provided && *crypt) { crypt 306 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ieee80211_crypt_delayed_deinit(ieee, crypt); crypt 313 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (ieee->crypt[i]) { crypt 317 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ieee, &ieee->crypt[i]); crypt 335 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (*crypt && (*crypt)->ops && crypt 336 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c strcmp((*crypt)->ops->name, "WEP") != 0) { crypt 339 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ieee80211_crypt_delayed_deinit(ieee, crypt); crypt 342 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (!*crypt) { crypt 364 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c *crypt = new_crypt; crypt 378 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->ops->set_key(sec.keys[key], len, NULL, crypt 379 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->priv); crypt 389 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, crypt 390 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c NULL, (*crypt)->priv); crypt 399 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->ops->set_key(sec.keys[key], 13, NULL, crypt 400 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->priv); crypt 452 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c struct ieee80211_crypt_data *crypt; crypt 467 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c crypt = ieee->crypt[key]; crypt 470 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (!crypt || !crypt->ops) { crypt 475 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); crypt 501 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c struct ieee80211_crypt_data **crypt; crypt 516 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c crypt = &ieee->crypt[idx]; crypt 525 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c crypt = &ieee->crypt[idx]; crypt 534 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (*crypt) crypt 535 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ieee80211_crypt_delayed_deinit(ieee, crypt); crypt 539 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (ieee->crypt[i]) crypt 584 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (!*crypt || (*crypt)->ops != ops) { crypt 587 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ieee80211_crypt_delayed_deinit(ieee, crypt); crypt 602 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c *crypt = new_crypt; crypt 605 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (ext->key_len > 0 && (*crypt)->ops->set_key && crypt 606 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, crypt 607 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c (*crypt)->priv) < 0) { crypt 661 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c struct ieee80211_crypt_data *crypt; crypt 681 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c crypt = ieee->crypt[idx]; crypt 685 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (!crypt || !crypt->ops) { crypt 690 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (strcmp(crypt->ops->name, "WEP") == 0) crypt 692 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c else if (strcmp(crypt->ops->name, "TKIP")) crypt 694 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c else if (strcmp(crypt->ops->name, "CCMP")) crypt 698 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c ext->key_len = crypt->ops->get_key(ext->key, SCM_KEY_LEN, NULL, crypt->priv); crypt 1992 drivers/staging/rtl8192u/r8192U_core.c struct ieee80211_crypt_data *crypt; crypt 1995 drivers/staging/rtl8192u/r8192U_core.c crypt = ieee->crypt[ieee->tx_keyidx]; crypt 2000 drivers/staging/rtl8192u/r8192U_core.c (ieee->host_encrypt && crypt && crypt->ops && crypt 2001 drivers/staging/rtl8192u/r8192U_core.c (strcmp(crypt->ops->name, "WEP") == 0)); crypt 3551 drivers/staging/rtl8192u/r8192U_core.c if (ipw->u.crypt.set_tx) { crypt 3552 drivers/staging/rtl8192u/r8192U_core.c if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) { crypt 3554 drivers/staging/rtl8192u/r8192U_core.c } else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) { crypt 3556 drivers/staging/rtl8192u/r8192U_core.c } else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { crypt 3557 drivers/staging/rtl8192u/r8192U_core.c if (ipw->u.crypt.key_len == 13) crypt 3559 drivers/staging/rtl8192u/r8192U_core.c else if (ipw->u.crypt.key_len == 5) crypt 3566 drivers/staging/rtl8192u/r8192U_core.c memcpy((u8 *)key, ipw->u.crypt.key, 16); crypt 3574 drivers/staging/rtl8192u/r8192U_core.c setKey(dev, 4, ipw->u.crypt.idx, crypt 3579 drivers/staging/rtl8192u/r8192U_core.c setKey(dev, ipw->u.crypt.idx, crypt 3580 drivers/staging/rtl8192u/r8192U_core.c ipw->u.crypt.idx, crypt 3586 drivers/staging/rtl8192u/r8192U_core.c memcpy((u8 *)key, ipw->u.crypt.key, 16); crypt 3587 drivers/staging/rtl8192u/r8192U_core.c if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) { crypt 3589 drivers/staging/rtl8192u/r8192U_core.c } else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) { crypt 3591 drivers/staging/rtl8192u/r8192U_core.c } else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { crypt 3592 drivers/staging/rtl8192u/r8192U_core.c if (ipw->u.crypt.key_len == 13) crypt 3594 drivers/staging/rtl8192u/r8192U_core.c else if (ipw->u.crypt.key_len == 5) crypt 3601 drivers/staging/rtl8192u/r8192U_core.c setKey(dev, ipw->u.crypt.idx, crypt 3603 drivers/staging/rtl8192u/r8192U_core.c ipw->u.crypt.idx, crypt 101 drivers/staging/rtl8712/ieee80211.h } crypt; crypt 83 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(psta->x_UncstKey.skey, param->u.crypt.key, crypt 84 drivers/staging/rtl8712/rtl871x_ioctl_linux.c (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); crypt 85 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ crypt 87 drivers/staging/rtl8712/rtl871x_ioctl_linux.c &(param->u.crypt.key[16]), 8); crypt 89 drivers/staging/rtl8712/rtl871x_ioctl_linux.c &(param->u.crypt.key[24]), 8); crypt 104 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (param->u.crypt.idx > 0 && crypt 105 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.idx < 3) { crypt 107 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(gk[param->u.crypt.idx - 1].skey, crypt 108 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.key, crypt 109 drivers/staging/rtl8712/rtl871x_ioctl_linux.c (param->u.crypt.key_len > 16 ? 16 : crypt 110 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.key_len)); crypt 111 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(gtk[param->u.crypt.idx - 1].skey, crypt 112 drivers/staging/rtl8712/rtl871x_ioctl_linux.c ¶m->u.crypt.key[16], 8); crypt 113 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(grk[param->u.crypt.idx - 1].skey, crypt 114 drivers/staging/rtl8712/rtl871x_ioctl_linux.c ¶m->u.crypt.key[24], 8); crypt 117 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.idx); crypt 382 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.err = 0; crypt 383 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 384 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (param_len != (u32)((u8 *) param->u.crypt.key - (u8 *)param) + crypt 385 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.key_len) crypt 390 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (param->u.crypt.idx >= WEP_KEYS) { crypt 392 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.idx = 0; crypt 394 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 400 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wep_key_idx = param->u.crypt.idx; crypt 401 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wep_key_len = param->u.crypt.key_len; crypt 420 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); crypt 421 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (param->u.crypt.set_tx) { crypt 458 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (param->u.crypt.set_tx == 1) crypt 1791 drivers/staging/rtl8712/rtl871x_ioctl_linux.c strlcpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); crypt 1793 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.set_tx = 0; crypt 1795 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.set_tx = 1; crypt 1796 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.idx = (pencoding->flags & 0x00FF) - 1; crypt 1798 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy(param->u.crypt.seq, pext->rx_seq, 8); crypt 1800 drivers/staging/rtl8712/rtl871x_ioctl_linux.c param->u.crypt.key_len = pext->key_len; crypt 2272 drivers/staging/rtl8723bs/core/rtw_security.c static void aes_128_encrypt(void *ctx, u8 *plain, u8 *crypt) crypt 2274 drivers/staging/rtl8723bs/core/rtw_security.c rijndaelEncrypt(ctx, plain, crypt); crypt 230 drivers/staging/rtl8723bs/include/ieee80211.h } crypt; crypt 597 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.err = 0; crypt 598 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 600 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param_len != sizeof(struct ieee_param) + param->u.crypt.key_len) crypt 610 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.idx >= WEP_KEYS) crypt 627 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "none") == 0 && (psta == NULL)) crypt 631 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_8192C("clear default encryption keys, keyid =%d\n", param->u.crypt.idx); crypt 637 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "WEP") == 0 && (psta == NULL)) crypt 641 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c wep_key_idx = param->u.crypt.idx; crypt 642 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c wep_key_len = param->u.crypt.key_len; crypt 675 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); crypt 679 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c rtw_ap_set_wep_key(padapter, param->u.crypt.key, wep_key_len, wep_key_idx, 1); crypt 688 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.set_tx == 0) /* group key */ crypt 690 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "WEP") == 0) crypt 694 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 697 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.key_len == 13) crypt 703 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c else if (strcmp(param->u.crypt.alg, "TKIP") == 0) crypt 709 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 713 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); crypt 714 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); crypt 719 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c else if (strcmp(param->u.crypt.alg, "CCMP") == 0) crypt 725 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 734 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx; crypt 740 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); crypt 759 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.set_tx == 1) /* pairwise key */ crypt 761 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 763 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "WEP") == 0) crypt 768 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.key_len == 13) crypt 773 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c else if (strcmp(param->u.crypt.alg, "TKIP") == 0) crypt 781 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); crypt 782 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); crypt 787 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c else if (strcmp(param->u.crypt.alg, "CCMP") == 0) crypt 810 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "WEP") == 0) crypt 812 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 815 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.key_len == 13) crypt 820 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c else if (strcmp(param->u.crypt.alg, "TKIP") == 0) crypt 824 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 828 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); crypt 829 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); crypt 834 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c else if (strcmp(param->u.crypt.alg, "CCMP") == 0) crypt 838 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 845 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx; crypt 851 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); crypt 882 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.err = 0; crypt 883 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 885 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param_len < (u32) ((u8 *) param->u.crypt.key - (u8 *) param) + param->u.crypt.key_len) crypt 895 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.idx >= WEP_KEYS crypt 896 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c || param->u.crypt.idx >= BIP_MAX_KEYID crypt 909 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "WEP") == 0) crypt 914 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c wep_key_idx = param->u.crypt.idx; crypt 915 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c wep_key_len = param->u.crypt.key_len; crypt 942 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); crypt 968 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "none") != 0) crypt 978 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (param->u.crypt.set_tx == 1)/* pairwise key */ crypt 983 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 985 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "TKIP") == 0)/* set mic key */ crypt 988 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); crypt 989 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); crypt 1002 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "TKIP") == 0 || strcmp(param->u.crypt.alg, "CCMP") == 0) crypt 1004 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 1005 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]), 8); crypt 1006 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]), 8); crypt 1011 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c padapter->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx; crypt 1012 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c rtw_set_key(padapter,&padapter->securitypriv, param->u.crypt.idx, 1, true); crypt 1014 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c else if (strcmp(param->u.crypt.alg, "BIP") == 0) crypt 1018 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 1023 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c padapter->securitypriv.dot11wBIPKeyid = param->u.crypt.idx; crypt 1038 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (strcmp(param->u.crypt.alg, "none") != 0) crypt 1112 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); crypt 1117 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.set_tx = 0; /* for wpa/wpa2 group key */ crypt 1119 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.set_tx = 1; /* for wpa/wpa2 pairwise key */ crypt 1122 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.idx = key_index; crypt 1126 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(param->u.crypt.seq, (u8 *)params->seq, params->seq_len); crypt 1131 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c param->u.crypt.key_len = params->key_len; crypt 1132 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(param->u.crypt.key, (u8 *)params->key, params->key_len); crypt 431 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.err = 0; crypt 432 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 434 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { crypt 442 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.idx >= WEP_KEYS || crypt 443 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.idx >= BIP_MAX_KEYID) { crypt 454 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 462 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wep_key_idx = param->u.crypt.idx; crypt 463 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wep_key_len = param->u.crypt.key_len; crypt 497 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); crypt 499 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.set_tx) { crypt 533 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "none") != 0) crypt 541 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.set_tx == 1) { /* pairwise key */ crypt 542 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 544 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ crypt 546 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); crypt 547 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); crypt 558 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "TKIP") == 0 || strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 559 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 561 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.key_len > 16) { crypt 562 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]), 8); crypt 563 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]), 8); crypt 569 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c padapter->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx; crypt 571 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c rtw_set_key(padapter,&padapter->securitypriv, param->u.crypt.idx, 1, true); crypt 572 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "BIP") == 0) { crypt 575 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(padapter->securitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 580 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c padapter->securitypriv.dot11wBIPKeyid = param->u.crypt.idx; crypt 592 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "none") != 0) crypt 2170 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); crypt 2173 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.set_tx = 1; crypt 2181 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.set_tx = 0; crypt 2184 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.idx = (pencoding->flags&0x00FF) -1 ; crypt 2187 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(param->u.crypt.seq, pext->rx_seq, 8); crypt 2190 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.key_len = pext->key_len; crypt 2192 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(param->u.crypt.key, pext + 1, pext->key_len); crypt 3451 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.err = 0; crypt 3452 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; crypt 3456 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param_len != sizeof(struct ieee_param) + param->u.crypt.key_len) { crypt 3464 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.idx >= WEP_KEYS) { crypt 3477 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "none") == 0 && (psta == NULL)) { crypt 3485 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c DBG_871X("clear default encryption keys, keyid =%d\n", param->u.crypt.idx); crypt 3491 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0 && (psta == NULL)) { crypt 3494 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wep_key_idx = param->u.crypt.idx; crypt 3495 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wep_key_len = param->u.crypt.key_len; crypt 3521 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); crypt 3523 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.set_tx) { crypt 3563 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.set_tx == 1) { crypt 3564 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 3567 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 3570 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.key_len == 13) crypt 3573 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 3578 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 3582 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); crypt 3583 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); crypt 3588 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c else if (strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 3593 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 3600 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx; crypt 3606 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); crypt 3621 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.set_tx == 1) { crypt 3622 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 3624 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 3628 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.key_len == 13) crypt 3630 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 3637 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8); crypt 3638 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8); crypt 3642 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 3658 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (strcmp(param->u.crypt.alg, "WEP") == 0) { crypt 3659 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 3662 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (param->u.crypt.key_len == 13) crypt 3664 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) { crypt 3667 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 3671 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8); crypt 3672 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8); crypt 3676 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c } else if (strcmp(param->u.crypt.alg, "CCMP") == 0) { crypt 3679 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len>16 ?16:param->u.crypt.key_len)); crypt 3684 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx; crypt 3690 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c rtw_ap_set_group_key(padapter, param->u.crypt.key, psecuritypriv->dot118021XGrpPrivacy, param->u.crypt.idx); crypt 106 include/net/lib80211.h struct lib80211_crypt_data *crypt[NUM_WEP_KEYS]; crypt 120 include/net/lib80211.h struct lib80211_crypt_data **crypt); crypt 75 net/wireless/lib80211.c struct lib80211_crypt_data *crypt = info->crypt[i]; crypt 76 net/wireless/lib80211.c if (crypt) { crypt 77 net/wireless/lib80211.c if (crypt->ops) { crypt 78 net/wireless/lib80211.c crypt->ops->deinit(crypt->priv); crypt 79 net/wireless/lib80211.c module_put(crypt->ops->owner); crypt 81 net/wireless/lib80211.c kfree(crypt); crypt 82 net/wireless/lib80211.c info->crypt[i] = NULL; crypt 139 net/wireless/lib80211.c struct lib80211_crypt_data **crypt) crypt 144 net/wireless/lib80211.c if (*crypt == NULL) crypt 147 net/wireless/lib80211.c tmp = *crypt; crypt 148 net/wireless/lib80211.c *crypt = NULL;