| /linux/drivers/staging/rtl8723bs/os_dep/ |
| A D | ioctl_linux.c | 55 param->u.crypt.err = 0; in wpa_set_encryption() 155 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in wpa_set_encryption() 169 …typriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in wpa_set_encryption() 183 …curitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in wpa_set_encryption() 636 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 645 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 658 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 685 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_set_encryption() 714 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 722 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() [all …]
|
| A D | ioctl_cfg80211.c | 527 param->u.crypt.err = 0; in rtw_cfg80211_ap_set_encryption() 608 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 621 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 635 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 669 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_cfg80211_ap_set_encryption() 712 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 724 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 738 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 869 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_cfg80211_set_encryption() 887 …typriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in rtw_cfg80211_set_encryption() [all …]
|
| /linux/drivers/crypto/ |
| A D | ixp4xx_crypto.c | 418 dma_pool_free(buffer_pool, crypt->regist_buf, crypt->src_buf); in one_packet() 700 if (!crypt) { in register_chain_var() 711 crypt->data.tfm = tfm; in register_chain_var() 715 crypt->auth_offs = 0; in register_chain_var() 789 if (!crypt) in gen_rev_aes_key() 794 crypt->data.tfm = tfm; in gen_rev_aes_key() 795 crypt->crypt_offs = 0; in gen_rev_aes_key() 797 crypt->src_buf = 0; in gen_rev_aes_key() 1000 if (!crypt) in ablk_perform() 1120 if (!crypt) in aead_perform() [all …]
|
| /linux/drivers/net/wireless/intel/ipw2x00/ |
| A D | libipw_tx.c | 141 struct lib80211_crypt_data *crypt = in libipw_encrypt_fragment() local 145 if (crypt == NULL) in libipw_encrypt_fragment() 150 atomic_inc(&crypt->refcnt); in libipw_encrypt_fragment() 152 if (crypt->ops && crypt->ops->encrypt_mpdu) in libipw_encrypt_fragment() 153 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in libipw_encrypt_fragment() 155 atomic_dec(&crypt->refcnt); in libipw_encrypt_fragment() 259 struct lib80211_crypt_data *crypt; in libipw_xmit() local 283 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_xmit() 338 crypt && crypt->ops && crypt->ops->encrypt_msdu) { in libipw_xmit() 341 crypt->ops->extra_msdu_postfix_len; in libipw_xmit() [all …]
|
| A D | libipw_wx.c | 325 crypt = &ieee->crypt_info.crypt[key]; in libipw_wx_set_encode() 360 if (*crypt != NULL && (*crypt)->ops != NULL && in libipw_wx_set_encode() 392 *crypt = new_crypt; in libipw_wx_set_encode() 406 if (*crypt) in libipw_wx_set_encode() 408 (*crypt)->priv); in libipw_wx_set_encode() 425 (*crypt)->priv); in libipw_wx_set_encode() 528 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext() 535 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext() 543 if (*crypt) in libipw_wx_set_encodeext() 599 if (*crypt == NULL || (*crypt)->ops != ops) { in libipw_wx_set_encodeext() [all …]
|
| A D | libipw_rx.c | 274 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in libipw_rx_frame_decrypt() 280 atomic_inc(&crypt->refcnt); in libipw_rx_frame_decrypt() 281 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in libipw_rx_frame_decrypt() 282 atomic_dec(&crypt->refcnt); in libipw_rx_frame_decrypt() 306 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in libipw_rx_frame_decrypt_msdu() 312 atomic_inc(&crypt->refcnt); in libipw_rx_frame_decrypt_msdu() 313 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in libipw_rx_frame_decrypt_msdu() 314 atomic_dec(&crypt->refcnt); in libipw_rx_frame_decrypt_msdu() 429 crypt = ieee->crypt_info.crypt[keyidx]; in libipw_rx() 448 if (crypt && (crypt->ops == NULL || in libipw_rx() [all …]
|
| /linux/drivers/staging/rtl8192u/ieee80211/ |
| A D | ieee80211_wx.c | 298 crypt = &ieee->crypt[key]; in ieee80211_wx_set_encode() 333 if (*crypt && (*crypt)->ops && in ieee80211_wx_set_encode() 340 if (!*crypt) { in ieee80211_wx_set_encode() 464 crypt = ieee->crypt[key]; in ieee80211_wx_get_encode() 467 if (!crypt || !crypt->ops) { in ieee80211_wx_get_encode() 513 crypt = &ieee->crypt[idx]; in ieee80211_wx_set_encode_ext() 522 crypt = &ieee->crypt[idx]; in ieee80211_wx_set_encode_ext() 531 if (*crypt) in ieee80211_wx_set_encode_ext() 581 if (!*crypt || (*crypt)->ops != ops) { in ieee80211_wx_set_encode_ext() 678 crypt = ieee->crypt[idx]; in ieee80211_wx_get_encode_ext() [all …]
|
| A D | ieee80211_tx.c | 169 struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() local 172 if (!(crypt && crypt->ops)) { in ieee80211_encrypt_fragment() 178 crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) { in ieee80211_encrypt_fragment() 197 atomic_inc(&crypt->refcnt); in ieee80211_encrypt_fragment() 199 if (crypt->ops->encrypt_msdu) in ieee80211_encrypt_fragment() 200 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment() 202 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment() 204 atomic_dec(&crypt->refcnt); in ieee80211_encrypt_fragment() 574 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_xmit() 577 ieee->host_encrypt && crypt && crypt->ops; in ieee80211_xmit() [all …]
|
| A D | ieee80211_module.c | 188 struct ieee80211_crypt_data *crypt = ieee->crypt[i]; in free_ieee80211() local 190 if (crypt) { in free_ieee80211() 191 if (crypt->ops) in free_ieee80211() 192 crypt->ops->deinit(crypt->priv); in free_ieee80211() 193 kfree(crypt); in free_ieee80211() 194 ieee->crypt[i] = NULL; in free_ieee80211()
|
| A D | ieee80211_softmac.c | 695 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp() 697 encrypt = ieee->host_encrypt && crypt && crypt->ops && in ieee80211_probe_resp() 835 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_assoc_resp() 837 crypt = NULL; in ieee80211_assoc_resp() 839 encrypt = crypt && crypt->ops; in ieee80211_assoc_resp() 968 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_association_req() 2821 crypt = &ieee->crypt[param->u.crypt.idx]; in ieee80211_wpa_set_encryption() 2827 if (crypt) { in ieee80211_wpa_set_encryption() 2864 if (!*crypt || (*crypt)->ops != ops) { in ieee80211_wpa_set_encryption() 2890 (*crypt)->ops->set_key(param->u.crypt.key, in ieee80211_wpa_set_encryption() [all …]
|
| A D | ieee80211_rx.c | 339 if (!crypt || !crypt->ops->decrypt_mpdu) in ieee80211_rx_frame_decrypt() 358 atomic_inc(&crypt->refcnt); in ieee80211_rx_frame_decrypt() 359 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt() 360 atomic_dec(&crypt->refcnt); in ieee80211_rx_frame_decrypt() 385 if (!crypt || !crypt->ops->decrypt_msdu) in ieee80211_rx_frame_decrypt_msdu() 395 atomic_inc(&crypt->refcnt); in ieee80211_rx_frame_decrypt_msdu() 396 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt_msdu() 397 atomic_dec(&crypt->refcnt); in ieee80211_rx_frame_decrypt_msdu() 964 crypt = ieee->crypt[idx]; in ieee80211_rx() 982 if (crypt && (!crypt->ops || !crypt->ops->decrypt_mpdu)) in ieee80211_rx() [all …]
|
| A D | ieee80211_crypt.c | 73 struct ieee80211_crypt_data **crypt) in ieee80211_crypt_delayed_deinit() argument 78 if (!(*crypt)) in ieee80211_crypt_delayed_deinit() 81 tmp = *crypt; in ieee80211_crypt_delayed_deinit() 82 *crypt = NULL; in ieee80211_crypt_delayed_deinit()
|
| /linux/drivers/net/wireless/intersil/hostap/ |
| A D | hostap_80211_tx.c | 363 atomic_inc(&crypt->refcnt); in hostap_tx_encrypt() 366 res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt() 368 res = crypt->ops->encrypt_mpdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt() 369 atomic_dec(&crypt->refcnt); in hostap_tx_encrypt() 414 tx.crypt = local->crypt_info.crypt[local->crypt_info.tx_keyidx]; in hostap_master_start_xmit() 417 tx.crypt = NULL; in hostap_master_start_xmit() 483 tx.crypt = NULL; in hostap_master_start_xmit() 494 if (tx.crypt && (!tx.crypt->ops || !tx.crypt->ops->encrypt_mpdu)) in hostap_master_start_xmit() 495 tx.crypt = NULL; in hostap_master_start_xmit() 496 else if ((tx.crypt || in hostap_master_start_xmit() [all …]
|
| A D | hostap_ioctl.c | 134 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencode() 142 if (*crypt != NULL && (*crypt)->ops != NULL && in prism2_ioctl_siwencode() 237 crypt = local->crypt_info.crypt[i]; in prism2_ioctl_giwencode() 240 if (crypt == NULL || crypt->ops == NULL) { in prism2_ioctl_giwencode() 3212 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencodeext() 3225 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencodeext() 3279 if (*crypt == NULL || (*crypt)->ops != ops) { in prism2_ioctl_siwencodeext() 3384 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_giwencodeext() 3449 crypt = &local->crypt_info.crypt[param->u.crypt.idx]; in prism2_ioctl_set_encryption() 3493 if (*crypt == NULL || (*crypt)->ops != ops) { in prism2_ioctl_set_encryption() [all …]
|
| A D | hostap_80211_rx.c | 655 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in hostap_rx_frame_decrypt() 671 atomic_inc(&crypt->refcnt); in hostap_rx_frame_decrypt() 672 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in hostap_rx_frame_decrypt() 673 atomic_dec(&crypt->refcnt); in hostap_rx_frame_decrypt() 693 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in hostap_rx_frame_decrypt_msdu() 699 atomic_inc(&crypt->refcnt); in hostap_rx_frame_decrypt_msdu() 700 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu() 701 atomic_dec(&crypt->refcnt); in hostap_rx_frame_decrypt_msdu() 784 crypt = local->crypt_info.crypt[idx]; in hostap_80211_rx() 800 if (crypt && (crypt->ops == NULL || in hostap_80211_rx() [all …]
|
| A D | hostap_ap.c | 123 if (sta->crypt) { in ap_free_sta() 124 sta->crypt->ops->deinit(sta->crypt->priv); in ap_free_sta() 125 kfree(sta->crypt); in ap_free_sta() 877 if (ap->crypt) in hostap_free_data() 1042 if (sta->crypt && sta->crypt->ops && sta->crypt->ops->print_stats) in prism2_sta_proc_show() 1043 sta->crypt->ops->print_stats(m, sta->crypt->priv); in prism2_sta_proc_show() 1316 crypt = sta->crypt; in handle_authen() 1321 crypt = local->crypt_info.crypt[idx]; in handle_authen() 2803 tx->crypt = sta->crypt; in hostap_handle_sta_tx() 3079 *crypt = sta->crypt; in hostap_handle_sta_crypto() [all …]
|
| A D | hostap_proc.c | 32 if (local->crypt_info.crypt[i] && in prism2_debug_proc_show() 33 local->crypt_info.crypt[i]->ops) { in prism2_debug_proc_show() 35 local->crypt_info.crypt[i]->ops->name); in prism2_debug_proc_show() 187 if (local->crypt_info.crypt[i] && in prism2_crypt_proc_show() 188 local->crypt_info.crypt[i]->ops && in prism2_crypt_proc_show() 189 local->crypt_info.crypt[i]->ops->print_stats) { in prism2_crypt_proc_show() 190 local->crypt_info.crypt[i]->ops->print_stats( in prism2_crypt_proc_show() 191 m, local->crypt_info.crypt[i]->priv); in prism2_crypt_proc_show()
|
| A D | hostap_ap.h | 78 struct lib80211_crypt_data *crypt; member 213 struct lib80211_crypto_ops *crypt; member 233 struct lib80211_crypt_data *crypt; member 248 struct lib80211_crypt_data **crypt,
|
| /linux/drivers/staging/rtl8192e/ |
| A D | rtllib_wx.c | 309 crypt = &ieee->crypt_info.crypt[key]; in rtllib_wx_set_encode() 342 if (*crypt && (*crypt)->ops && in rtllib_wx_set_encode() 350 if (!*crypt) { in rtllib_wx_set_encode() 375 *crypt = new_crypt; in rtllib_wx_set_encode() 475 crypt = ieee->crypt_info.crypt[key]; in rtllib_wx_get_encode() 479 if (!crypt || !crypt->ops) { in rtllib_wx_get_encode() 484 len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); in rtllib_wx_get_encode() 525 crypt = &ieee->crypt_info.crypt[idx]; in rtllib_wx_set_encode_ext() 532 crypt = &ieee->crypt_info.crypt[idx]; in rtllib_wx_set_encode_ext() 540 if (*crypt) in rtllib_wx_set_encode_ext() [all …]
|
| A D | rtllib_tx.c | 163 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_encrypt_fragment() 165 if (!(crypt && crypt->ops)) { in rtllib_encrypt_fragment() 177 atomic_inc(&crypt->refcnt); in rtllib_encrypt_fragment() 179 if (crypt->ops->encrypt_msdu) in rtllib_encrypt_fragment() 180 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment() 182 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment() 184 atomic_dec(&crypt->refcnt); in rtllib_encrypt_fragment() 643 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_xmit_inter() 645 ieee->host_encrypt && crypt && crypt->ops; in rtllib_xmit_inter() 749 crypt->ops->extra_msdu_prefix_len + in rtllib_xmit_inter() [all …]
|
| A D | rtllib_rx.c | 289 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in rtllib_rx_frame_decrypt() 305 atomic_inc(&crypt->refcnt); in rtllib_rx_frame_decrypt() 306 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in rtllib_rx_frame_decrypt() 307 atomic_dec(&crypt->refcnt); in rtllib_rx_frame_decrypt() 330 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in rtllib_rx_frame_decrypt_msdu() 345 atomic_inc(&crypt->refcnt); in rtllib_rx_frame_decrypt_msdu() 346 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in rtllib_rx_frame_decrypt_msdu() 347 atomic_dec(&crypt->refcnt); in rtllib_rx_frame_decrypt_msdu() 1054 *crypt = ieee->crypt_info.crypt[idx]; in rtllib_rx_get_crypt() 1058 if (*crypt && ((*crypt)->ops == NULL || in rtllib_rx_get_crypt() [all …]
|
| /linux/net/wireless/ |
| A D | lib80211.c | 73 struct lib80211_crypt_data *crypt = info->crypt[i]; in lib80211_crypt_info_free() local 74 if (crypt) { in lib80211_crypt_info_free() 75 if (crypt->ops) { in lib80211_crypt_info_free() 76 crypt->ops->deinit(crypt->priv); in lib80211_crypt_info_free() 77 module_put(crypt->ops->owner); in lib80211_crypt_info_free() 79 kfree(crypt); in lib80211_crypt_info_free() 80 info->crypt[i] = NULL; in lib80211_crypt_info_free() 137 struct lib80211_crypt_data **crypt) in lib80211_crypt_delayed_deinit() argument 142 if (*crypt == NULL) in lib80211_crypt_delayed_deinit() 145 tmp = *crypt; in lib80211_crypt_delayed_deinit() [all …]
|
| /linux/Documentation/filesystems/ |
| A D | ecryptfs.rst | 45 files (i.e., /root/crypt). Then, create the mount point directory 46 (i.e., /mnt/crypt). Now it's time to mount eCryptfs:: 48 mount -t ecryptfs /root/crypt /mnt/crypt 55 echo "Hello, World" > /mnt/crypt/hello.txt 58 /root/crypt that is at least 12288 bytes in size (depending on your 65 Then umount /mnt/crypt and mount again per the instructions given 70 cat /mnt/crypt/hello.txt
|
| /linux/Documentation/admin-guide/device-mapper/ |
| A D | dm-crypt.rst | 2 dm-crypt 5 Device-Mapper's "crypt" target provides transparent encryption of block devices 29 Cipher format also supports direct specification with kernel crypt API 73 The kernel keyring key description crypt target should look for 102 Block discard requests (a.k.a. TRIM) are passed through the crypt device. 125 Bypass dm-crypt internal workqueue and process read requests synchronously. 128 Bypass dm-crypt internal workqueue and process write requests synchronously. 161 encryption with dm-crypt using the 'cryptsetup' utility, see 167 # Create a crypt device using dmsetup 173 # Create a crypt device using dmsetup when encryption key is stored in keyring service [all …]
|
| /linux/drivers/staging/rtl8712/ |
| A D | rtl871x_ioctl_linux.c | 82 (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); in handle_pairwise_key() 102 if (param->u.crypt.idx > 0 && in handle_group_key() 103 param->u.crypt.idx < 3) { in handle_group_key() 106 param->u.crypt.key, in handle_group_key() 108 param->u.crypt.key_len)); in handle_group_key() 115 param->u.crypt.idx); in handle_group_key() 376 param->u.crypt.err = 0; in wpa_set_encryption() 379 param->u.crypt.key_len) in wpa_set_encryption() 386 param->u.crypt.idx = 0; in wpa_set_encryption() 1787 param->u.crypt.set_tx = 0; in r871x_wx_set_enc_ext() [all …]
|