| /linux/drivers/staging/rtl8723bs/os_dep/ |
| A D | ioctl_linux.c | 54 param->u.crypt.err = 0; in wpa_set_encryption() 154 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in wpa_set_encryption() 168 …typriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in wpa_set_encryption() 182 …curitypriv.dot11wBIPKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16… in wpa_set_encryption() 621 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 630 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 642 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 668 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_set_encryption() 696 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_set_encryption() 704 … 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 | 506 param->u.crypt.err = 0; in rtw_cfg80211_ap_set_encryption() 573 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 582 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 594 memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 620 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_cfg80211_ap_set_encryption() 650 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 658 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 670 … memcpy(grpkey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len)); in rtw_cfg80211_ap_set_encryption() 785 …mcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param… in rtw_cfg80211_set_encryption() 799 …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/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() 258 struct lib80211_crypt_data *crypt; in libipw_xmit() local 282 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_xmit() 337 crypt && crypt->ops && crypt->ops->encrypt_msdu) { in libipw_xmit() 352 res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv); 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/crypto/intel/ixp4xx/ |
| A D | ixp4xx_crypto.c | 419 dma_pool_free(buffer_pool, crypt->regist_buf, crypt->src_buf); in one_packet() 701 if (!crypt) { in register_chain_var() 712 crypt->data.tfm = tfm; in register_chain_var() 716 crypt->auth_offs = 0; in register_chain_var() 790 if (!crypt) in gen_rev_aes_key() 795 crypt->data.tfm = tfm; in gen_rev_aes_key() 796 crypt->crypt_offs = 0; in gen_rev_aes_key() 798 crypt->src_buf = 0; in gen_rev_aes_key() 1001 if (!crypt) in ablk_perform() 1121 if (!crypt) in aead_perform() [all …]
|
| /linux/drivers/staging/rtl8192e/ |
| A D | rtllib_wx.c | 291 crypt = &ieee->crypt_info.crypt[key]; in rtllib_wx_set_encode() 325 if (*crypt && (*crypt)->ops && in rtllib_wx_set_encode() 333 if (!*crypt) { in rtllib_wx_set_encode() 358 *crypt = new_crypt; in rtllib_wx_set_encode() 442 crypt = ieee->crypt_info.crypt[key]; in rtllib_wx_get_encode() 446 if (!crypt || !crypt->ops) { in rtllib_wx_get_encode() 451 len = crypt->ops->get_key(keybuf, SCM_KEY_LEN, NULL, crypt->priv); in rtllib_wx_get_encode() 492 crypt = &ieee->crypt_info.crypt[idx]; in rtllib_wx_set_encode_ext() 499 crypt = &ieee->crypt_info.crypt[idx]; in rtllib_wx_set_encode_ext() 507 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() 610 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_xmit_inter() 611 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && crypt && crypt->ops; in rtllib_xmit_inter() 703 crypt->ops->extra_msdu_prefix_len + in rtllib_xmit_inter() [all …]
|
| A D | rtllib_rx.c | 277 if (!crypt || !crypt->ops->decrypt_mpdu) in rtllib_rx_frame_decrypt() 293 atomic_inc(&crypt->refcnt); in rtllib_rx_frame_decrypt() 294 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in rtllib_rx_frame_decrypt() 295 atomic_dec(&crypt->refcnt); in rtllib_rx_frame_decrypt() 317 if (!crypt || !crypt->ops->decrypt_msdu) in rtllib_rx_frame_decrypt_msdu() 332 atomic_inc(&crypt->refcnt); in rtllib_rx_frame_decrypt_msdu() 333 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in rtllib_rx_frame_decrypt_msdu() 334 atomic_dec(&crypt->refcnt); in rtllib_rx_frame_decrypt_msdu() 988 *crypt = ieee->crypt_info.crypt[idx]; in rtllib_rx_get_crypt() 992 if (*crypt && (!(*crypt)->ops || !(*crypt)->ops->decrypt_mpdu)) in rtllib_rx_get_crypt() [all …]
|
| A D | rtllib_softmac.c | 700 struct lib80211_crypt_data *crypt; in rtllib_association_req() local 714 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_association_req() 715 if (crypt) in rtllib_association_req() 716 encrypt = crypt && crypt->ops && in rtllib_association_req() 717 ((strcmp(crypt->ops->name, "R-WEP") == 0 || in rtllib_association_req() 2217 struct lib80211_crypt_data *crypt; in rtllib_ap_sec_type() local 2220 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_ap_sec_type() 2222 || (crypt && crypt->ops && (strcmp(crypt->ops->name, "R-WEP") == 0)); in rtllib_ap_sec_type()
|
| /linux/fs/bcachefs/ |
| A D | checksum.c | 491 struct bch_sb_field_crypt *crypt = field_to_type(f, crypt); in bch2_sb_crypt_validate() local 493 if (vstruct_bytes(&crypt->field) < sizeof(*crypt)) { in bch2_sb_crypt_validate() 495 vstruct_bytes(&crypt->field), sizeof(*crypt)); in bch2_sb_crypt_validate() 510 struct bch_sb_field_crypt *crypt = field_to_type(f, crypt); in bch2_sb_crypt_to_text() local 698 crypt = bch2_sb_field_get(c->disk_sb.sb, crypt); in bch2_disable_encryption() 699 if (!crypt) in bch2_disable_encryption() 760 crypt = bch2_sb_field_resize(&c->disk_sb, crypt, in bch2_enable_encryption() 762 if (!crypt) { in bch2_enable_encryption() 767 crypt->key = key; in bch2_enable_encryption() 803 crypt = bch2_sb_field_get(c->disk_sb.sb, crypt); in bch2_fs_encryption_init() [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/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. 117 Set dm-crypt workqueues and the writer thread to high priority. This 118 improves throughput and latency of dm-crypt while degrading general 171 is received, dm-crypt will split the request. The splitting improves 178 is received, dm-crypt will split the request. The splitting improves 187 encryption with dm-crypt using the 'cryptsetup' utility, see [all …]
|
| A D | dm-init.rst | 46 `crypt` allowed 92 "crypt":: 94 dm-crypt,,8,ro, 95 0 1048576 crypt aes-xts-plain64
|
| A D | index.rst | 12 dm-crypt
|
| A D | dm-integrity.rst | 16 The dm-integrity target can be used with the dm-crypt target - in this 17 situation the dm-crypt target creates the integrity data and passes them 19 In this mode, the dm-crypt and dm-integrity targets provide authenticated 59 6. if you want to use dm-integrity with dm-crypt, load the dm-crypt target 141 from an upper layer target, such as dm-crypt. The upper layer
|
| A D | dm-ima.rst | 15 target types like crypt, verity, integrity etc. Each of these target 143 target_name := Name of the target. 'linear', 'crypt', 'integrity' etc. 330 #. crypt 375 2. crypt 378 section above) has the following data format for 'crypt' target. 388 target_name := "target_name=crypt" 407 When a 'crypt' target is loaded, then IMA ASCII measurement log will have an entry 408 similar to the following, depicting what 'crypt' attributes are measured in EVENT_DATA 414 target_index=0,target_begin=0,target_len=1953125,target_name=crypt,target_version=1.23.0,
|
| /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/drivers/staging/rtl8712/ |
| A D | rtl871x_ioctl_linux.c | 81 (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); in handle_pairwise_key() 101 if (param->u.crypt.idx > 0 && in handle_group_key() 102 param->u.crypt.idx < 3) { in handle_group_key() 105 param->u.crypt.key, in handle_group_key() 107 param->u.crypt.key_len)); in handle_group_key() 357 param->u.crypt.err = 0; in wpa_set_encryption() 360 param->u.crypt.key_len) in wpa_set_encryption() 367 param->u.crypt.idx = 0; in wpa_set_encryption() 396 if (param->u.crypt.set_tx) { in wpa_set_encryption() 1732 param->u.crypt.set_tx = 0; in r871x_wx_set_enc_ext() [all …]
|
| /linux/include/net/ |
| A D | lib80211.h | 106 struct lib80211_crypt_data *crypt[NUM_WEP_KEYS]; member 120 struct lib80211_crypt_data **crypt);
|
| /linux/Documentation/power/ |
| A D | swsusp-dmcrypt.rst | 2 How to use dm-crypt and swsusp together 10 You know how dm-crypt works. If not, visit the following web page: 11 http://www.saout.de/misc/dm-crypt/ 26 up dm-crypt and then asks swsusp to resume from the encrypted 29 The most important thing is that you set up dm-crypt in such 53 you create an initrd that reads the required dm-crypt setup
|
| /linux/crypto/ |
| A D | lskcipher.c | 71 u8 *iv, int (*crypt)(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_crypt_unaligned() 104 err = crypt(tfm, p, p, chunk, tiv, CRYPTO_LSKCIPHER_FLAG_FINAL); in crypto_lskcipher_crypt_unaligned() 125 int (*crypt)(struct crypto_lskcipher *tfm, in crypto_lskcipher_crypt() 135 crypt); in crypto_lskcipher_crypt() 137 return crypt(tfm, src, dst, len, iv, CRYPTO_LSKCIPHER_FLAG_FINAL); in crypto_lskcipher_crypt() 159 int (*crypt)(struct crypto_lskcipher *tfm, in crypto_lskcipher_crypt_sg() 188 err = crypt(tfm, walk.src.virt.addr, walk.dst.virt.addr, in crypto_lskcipher_crypt_sg()
|
| A D | chacha20poly1305.c | 233 struct scatterlist *crypt = req->src; in poly_cipher() local 237 crypt = req->dst; in poly_cipher() 239 crypt = scatterwalk_ffwd(rctx->src, crypt, req->assoclen); in poly_cipher() 244 ahash_request_set_crypt(&preq->req, crypt, NULL, rctx->cryptlen); in poly_cipher()
|
| /linux/drivers/net/netdevsim/ |
| A D | ipsec.c | 49 sap->xs->id.proto, sap->salt, sap->crypt); in nsim_dbg_netdev_ops_read() 170 sa.crypt = xs->ealg || xs->aead; in nsim_ipsec_add_sa()
|
| /linux/drivers/ufs/host/ |
| A D | ufs-mediatek.h | 172 struct ufs_mtk_crypt_cfg *crypt; member
|