Home
last modified time | relevance | path

Searched refs:crypt (Results 1 – 25 of 61) sorted by relevance

123

/linux-6.3-rc2/drivers/staging/rtl8723bs/os_dep/
A Dioctl_linux.c56 param->u.crypt.err = 0; in wpa_set_encryption()
157 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in wpa_set_encryption()
171 …typriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in wpa_set_encryption()
185 …curitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in wpa_set_encryption()
639 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption()
648 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption()
661 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption()
688 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_set_encryption()
717 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption()
725 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption()
[all …]
A Dioctl_cfg80211.c512 param->u.crypt.err = 0; in rtw_cfg80211_ap_set_encryption()
580 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption()
589 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption()
601 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption()
629 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_cfg80211_ap_set_encryption()
660 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption()
668 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption()
680 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption()
800 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_cfg80211_set_encryption()
814 …typriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in rtw_cfg80211_set_encryption()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/ipw2x00/
A Dlibipw_tx.c141 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()
353 res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv); in libipw_xmit()
[all …]
A Dlibipw_wx.c325 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 Dlibipw_rx.c274 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-6.3-rc2/drivers/crypto/
A Dixp4xx_crypto.c417 dma_pool_free(buffer_pool, crypt->regist_buf, crypt->src_buf); in one_packet()
699 if (!crypt) { in register_chain_var()
710 crypt->data.tfm = tfm; in register_chain_var()
714 crypt->auth_offs = 0; in register_chain_var()
788 if (!crypt) in gen_rev_aes_key()
793 crypt->data.tfm = tfm; in gen_rev_aes_key()
794 crypt->crypt_offs = 0; in gen_rev_aes_key()
796 crypt->src_buf = 0; in gen_rev_aes_key()
999 if (!crypt) in ablk_perform()
1119 if (!crypt) in aead_perform()
[all …]
/linux-6.3-rc2/drivers/staging/rtl8192u/ieee80211/
A Dieee80211_wx.c298 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()
515 crypt = &ieee->crypt[idx]; in ieee80211_wx_set_encode_ext()
524 crypt = &ieee->crypt[idx]; in ieee80211_wx_set_encode_ext()
533 if (*crypt) in ieee80211_wx_set_encode_ext()
583 if (!*crypt || (*crypt)->ops != ops) { in ieee80211_wx_set_encode_ext()
680 crypt = ieee->crypt[idx]; in ieee80211_wx_get_encode_ext()
[all …]
A Dieee80211_tx.c169 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 Dieee80211_module.c185 struct ieee80211_crypt_data *crypt = ieee->crypt[i]; in free_ieee80211() local
187 if (crypt) { in free_ieee80211()
188 if (crypt->ops) in free_ieee80211()
189 crypt->ops->deinit(crypt->priv); in free_ieee80211()
190 kfree(crypt); in free_ieee80211()
191 ieee->crypt[i] = NULL; in free_ieee80211()
A Dieee80211_softmac.c695 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()
2827 crypt = &ieee->crypt[param->u.crypt.idx]; in ieee80211_wpa_set_encryption()
2833 if (crypt) { in ieee80211_wpa_set_encryption()
2870 if (!*crypt || (*crypt)->ops != ops) { in ieee80211_wpa_set_encryption()
2896 (*crypt)->ops->set_key(param->u.crypt.key, in ieee80211_wpa_set_encryption()
[all …]
A Dieee80211_crypt.c73 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()
A Dieee80211_rx.c339 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()
966 crypt = ieee->crypt[idx]; in ieee80211_rx()
984 if (crypt && (!crypt->ops || !crypt->ops->decrypt_mpdu)) in ieee80211_rx()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intersil/hostap/
A Dhostap_80211_tx.c363 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 Dhostap_ioctl.c135 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencode()
143 if (*crypt != NULL && (*crypt)->ops != NULL && in prism2_ioctl_siwencode()
239 crypt = local->crypt_info.crypt[i]; in prism2_ioctl_giwencode()
242 if (crypt == NULL || crypt->ops == NULL) { in prism2_ioctl_giwencode()
3245 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencodeext()
3258 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencodeext()
3312 if (*crypt == NULL || (*crypt)->ops != ops) { in prism2_ioctl_siwencodeext()
3418 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_giwencodeext()
3483 crypt = &local->crypt_info.crypt[param->u.crypt.idx]; in prism2_ioctl_set_encryption()
3527 if (*crypt == NULL || (*crypt)->ops != ops) { in prism2_ioctl_set_encryption()
[all …]
A Dhostap_80211_rx.c655 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 Dhostap_proc.c32 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 Dhostap_ap.c123 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 Dhostap_ap.h78 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-6.3-rc2/drivers/staging/rtl8192e/
A Drtllib_wx.c301 crypt = &ieee->crypt_info.crypt[key]; in rtllib_wx_set_encode()
335 if (*crypt && (*crypt)->ops && in rtllib_wx_set_encode()
343 if (!*crypt) { in rtllib_wx_set_encode()
368 *crypt = new_crypt; in rtllib_wx_set_encode()
468 crypt = ieee->crypt_info.crypt[key]; in rtllib_wx_get_encode()
472 if (!crypt || !crypt->ops) { in rtllib_wx_get_encode()
477 len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); in rtllib_wx_get_encode()
518 crypt = &ieee->crypt_info.crypt[idx]; in rtllib_wx_set_encode_ext()
525 crypt = &ieee->crypt_info.crypt[idx]; in rtllib_wx_set_encode_ext()
533 if (*crypt) in rtllib_wx_set_encode_ext()
[all …]
A Drtllib_tx.c163 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()
638 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_xmit_inter()
640 ieee->host_encrypt && crypt && crypt->ops; in rtllib_xmit_inter()
744 crypt->ops->extra_msdu_prefix_len + in rtllib_xmit_inter()
[all …]
A Drtllib_rx.c289 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-6.3-rc2/net/wireless/
A Dlib80211.c73 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-6.3-rc2/Documentation/filesystems/
A Decryptfs.rst45 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-6.3-rc2/Documentation/admin-guide/device-mapper/
A Ddm-crypt.rst2 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-6.3-rc2/drivers/staging/rtl8712/
A Drtl871x_ioctl_linux.c82 (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 …]

Completed in 71 milliseconds

123