Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c155 struct lib80211_crypt_data *crypt = in libipw_encrypt_fragment() local
156 ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_encrypt_fragment()
159 if (crypt == NULL) in libipw_encrypt_fragment()
164 atomic_inc(&crypt->refcnt); in libipw_encrypt_fragment()
166 if (crypt->ops && crypt->ops->encrypt_mpdu) in libipw_encrypt_fragment()
167 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in libipw_encrypt_fragment()
169 atomic_dec(&crypt->refcnt); in libipw_encrypt_fragment()
273 struct lib80211_crypt_data *crypt; in libipw_xmit() local
297 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_xmit()
302 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
[all …]
Dlibipw_wx.c320 struct lib80211_crypt_data **crypt; in libipw_wx_set_encode() local
339 crypt = &ieee->crypt_info.crypt[key]; in libipw_wx_set_encode()
342 if (key_provided && *crypt) { in libipw_wx_set_encode()
345 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
352 if (ieee->crypt_info.crypt[i] != NULL) { in libipw_wx_set_encode()
356 &ieee->crypt_info.crypt[i]); in libipw_wx_set_encode()
374 if (*crypt != NULL && (*crypt)->ops != NULL && in libipw_wx_set_encode()
375 strcmp((*crypt)->ops->name, "WEP") != 0) { in libipw_wx_set_encode()
378 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
381 if (*crypt == NULL && host_crypto) { in libipw_wx_set_encode()
[all …]
Dlibipw_rx.c273 struct lib80211_crypt_data *crypt) in libipw_rx_frame_decrypt() argument
278 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in libipw_rx_frame_decrypt()
284 atomic_inc(&crypt->refcnt); in libipw_rx_frame_decrypt()
285 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in libipw_rx_frame_decrypt()
286 atomic_dec(&crypt->refcnt); in libipw_rx_frame_decrypt()
305 struct lib80211_crypt_data *crypt) in libipw_rx_frame_decrypt_msdu() argument
310 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in libipw_rx_frame_decrypt_msdu()
316 atomic_inc(&crypt->refcnt); in libipw_rx_frame_decrypt_msdu()
317 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in libipw_rx_frame_decrypt_msdu()
318 atomic_dec(&crypt->refcnt); in libipw_rx_frame_decrypt_msdu()
[all …]
Dipw2100.c4070 DUMP_VAR(ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx], "p"); in show_internals()
7626 struct lib80211_crypt_data *crypt; in ipw2100_wx_set_auth() local
7641 crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; in ipw2100_wx_set_auth()
7642 if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) in ipw2100_wx_set_auth()
7645 flags = crypt->ops->get_flags(crypt->priv); in ipw2100_wx_set_auth()
7652 crypt->ops->set_flags(flags, crypt->priv); in ipw2100_wx_set_auth()
7718 struct lib80211_crypt_data *crypt; in ipw2100_wx_get_auth() local
7734 crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; in ipw2100_wx_get_auth()
7735 if (!crypt || !crypt->ops->get_flags) { in ipw2100_wx_get_auth()
7741 param->value = (crypt->ops->get_flags(crypt->priv) & in ipw2100_wx_get_auth()
Dipw2200.c6621 struct lib80211_crypt_data *crypt; in ipw_wx_set_auth() local
6643 crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; in ipw_wx_set_auth()
6644 if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) in ipw_wx_set_auth()
6647 flags = crypt->ops->get_flags(crypt->priv); in ipw_wx_set_auth()
6654 crypt->ops->set_flags(flags, crypt->priv); in ipw_wx_set_auth()
6720 struct lib80211_crypt_data *crypt; in ipw_wx_get_auth() local
6734 crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; in ipw_wx_get_auth()
6735 if (!crypt || !crypt->ops->get_flags) in ipw_wx_get_auth()
6738 param->value = (crypt->ops->get_flags(crypt->priv) & in ipw_wx_get_auth()
/linux-4.1.27/drivers/crypto/
Dixp4xx_crypto.c336 static void finish_scattered_hmac(struct crypt_ctl *crypt) in finish_scattered_hmac() argument
338 struct aead_request *req = crypt->data.aead_req; in finish_scattered_hmac()
348 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); in finish_scattered_hmac()
354 struct crypt_ctl *crypt; in one_packet() local
360 crypt = crypt_phys2virt(phys); in one_packet()
362 switch (crypt->ctl_flags & CTL_FLAG_MASK) { in one_packet()
364 struct aead_request *req = crypt->data.aead_req; in one_packet()
367 free_buf_chain(dev, req_ctx->buffer, crypt->src_buf); in one_packet()
369 finish_scattered_hmac(crypt); in one_packet()
375 struct ablkcipher_request *req = crypt->data.ablk_req; in one_packet()
[all …]
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c300 struct ieee80211_crypt_data **crypt; in ieee80211_wx_set_encode() local
317 crypt = &ieee->crypt[key]; in ieee80211_wx_set_encode()
320 if (key_provided && *crypt) { in ieee80211_wx_set_encode()
323 ieee80211_crypt_delayed_deinit(ieee, crypt); in ieee80211_wx_set_encode()
330 if (ieee->crypt[i] != NULL) { in ieee80211_wx_set_encode()
334 ieee, &ieee->crypt[i]); in ieee80211_wx_set_encode()
352 if (*crypt != NULL && (*crypt)->ops != NULL && in ieee80211_wx_set_encode()
353 strcmp((*crypt)->ops->name, "WEP") != 0) { in ieee80211_wx_set_encode()
356 ieee80211_crypt_delayed_deinit(ieee, crypt); in ieee80211_wx_set_encode()
359 if (*crypt == NULL) { in ieee80211_wx_set_encode()
[all …]
Dieee80211_tx.c185 struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() local
188 if (!(crypt && crypt->ops)) in ieee80211_encrypt_fragment()
195 crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) { in ieee80211_encrypt_fragment()
213 atomic_inc(&crypt->refcnt); in ieee80211_encrypt_fragment()
215 if (crypt->ops->encrypt_msdu) in ieee80211_encrypt_fragment()
216 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment()
217 if (res == 0 && crypt->ops->encrypt_mpdu) in ieee80211_encrypt_fragment()
218 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment()
220 atomic_dec(&crypt->refcnt); in ieee80211_encrypt_fragment()
616 struct ieee80211_crypt_data *crypt; in ieee80211_xmit() local
[all …]
Dieee80211_module.c207 struct ieee80211_crypt_data *crypt = ieee->crypt[i]; in free_ieee80211() local
208 if (crypt) { in free_ieee80211()
209 if (crypt->ops) in free_ieee80211()
210 crypt->ops->deinit(crypt->priv); in free_ieee80211()
211 kfree(crypt); in free_ieee80211()
212 ieee->crypt[i] = NULL; in free_ieee80211()
Dieee80211_softmac.c698 struct ieee80211_crypt_data *crypt; in ieee80211_probe_resp() local
728 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp()
731 encrypt = ieee->host_encrypt && crypt && crypt->ops && in ieee80211_probe_resp()
732 ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); in ieee80211_probe_resp()
782 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp()
848 struct ieee80211_crypt_data *crypt; in ieee80211_assoc_resp() local
877 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_assoc_resp()
878 else crypt = NULL; in ieee80211_assoc_resp()
880 encrypt = crypt && crypt->ops; in ieee80211_assoc_resp()
1004 struct ieee80211_crypt_data *crypt; in ieee80211_association_req() local
[all …]
Dieee80211_crypt.c78 struct ieee80211_crypt_data **crypt) in ieee80211_crypt_delayed_deinit() argument
83 if (*crypt == NULL) in ieee80211_crypt_delayed_deinit()
86 tmp = *crypt; in ieee80211_crypt_delayed_deinit()
87 *crypt = NULL; in ieee80211_crypt_delayed_deinit()
Dieee80211_rx.c339 struct ieee80211_crypt_data *crypt) in ieee80211_rx_frame_decrypt() argument
344 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in ieee80211_rx_frame_decrypt()
355 strcmp(crypt->ops->name, "TKIP") == 0) { in ieee80211_rx_frame_decrypt()
364 atomic_inc(&crypt->refcnt); in ieee80211_rx_frame_decrypt()
365 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt()
366 atomic_dec(&crypt->refcnt); in ieee80211_rx_frame_decrypt()
386 int keyidx, struct ieee80211_crypt_data *crypt) in ieee80211_rx_frame_decrypt_msdu() argument
391 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in ieee80211_rx_frame_decrypt_msdu()
402 atomic_inc(&crypt->refcnt); in ieee80211_rx_frame_decrypt_msdu()
403 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt_msdu()
[all …]
Dieee80211_crypt.h84 struct ieee80211_crypt_data **crypt);
Dieee80211.h388 } crypt; member
1859 struct ieee80211_crypt_data *crypt[WEP_KEYS]; member
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_wx.c312 struct lib80211_crypt_data **crypt; in rtllib_wx_set_encode() local
329 crypt = &ieee->crypt_info.crypt[key]; in rtllib_wx_set_encode()
331 if (key_provided && *crypt) { in rtllib_wx_set_encode()
334 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in rtllib_wx_set_encode()
342 if (ieee->crypt_info.crypt[i] != NULL) { in rtllib_wx_set_encode()
346 &ieee->crypt_info.crypt[i]); in rtllib_wx_set_encode()
364 if (*crypt != NULL && (*crypt)->ops != NULL && in rtllib_wx_set_encode()
365 strcmp((*crypt)->ops->name, "R-WEP") != 0) { in rtllib_wx_set_encode()
369 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in rtllib_wx_set_encode()
372 if (*crypt == NULL) { in rtllib_wx_set_encode()
[all …]
Drtllib_tx.c179 struct lib80211_crypt_data *crypt = NULL; in rtllib_encrypt_fragment() local
182 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_encrypt_fragment()
184 if (!(crypt && crypt->ops)) { in rtllib_encrypt_fragment()
196 atomic_inc(&crypt->refcnt); in rtllib_encrypt_fragment()
198 if (crypt->ops->encrypt_msdu) in rtllib_encrypt_fragment()
199 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment()
200 if (res == 0 && crypt->ops->encrypt_mpdu) in rtllib_encrypt_fragment()
201 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment()
203 atomic_dec(&crypt->refcnt); in rtllib_encrypt_fragment()
584 struct lib80211_crypt_data *crypt = NULL; in rtllib_xmit_inter() local
[all …]
Drtllib_softmac.c842 struct lib80211_crypt_data *crypt; in rtllib_probe_resp() local
877 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_probe_resp()
878 encrypt = ieee->host_encrypt && crypt && crypt->ops && in rtllib_probe_resp()
879 ((0 == strcmp(crypt->ops->name, "R-WEP") || wpa_ie_len)); in rtllib_probe_resp()
929 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_probe_resp()
988 struct lib80211_crypt_data *crypt; in rtllib_assoc_resp() local
1019 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_assoc_resp()
1021 crypt = NULL; in rtllib_assoc_resp()
1023 encrypt = (crypt && crypt->ops); in rtllib_assoc_resp()
1184 struct lib80211_crypt_data *crypt; in rtllib_association_req() local
[all …]
Drtllib_crypt.c77 struct lib80211_crypt_data **crypt) in rtllib_crypt_delayed_deinit() argument
82 if (*crypt == NULL) in rtllib_crypt_delayed_deinit()
85 tmp = *crypt; in rtllib_crypt_delayed_deinit()
86 *crypt = NULL; in rtllib_crypt_delayed_deinit()
Drtllib_rx.c284 struct lib80211_crypt_data *crypt) in rtllib_rx_frame_decrypt() argument
289 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in rtllib_rx_frame_decrypt()
304 atomic_inc(&crypt->refcnt); in rtllib_rx_frame_decrypt()
305 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in rtllib_rx_frame_decrypt()
306 atomic_dec(&crypt->refcnt); in rtllib_rx_frame_decrypt()
324 int keyidx, struct lib80211_crypt_data *crypt) in rtllib_rx_frame_decrypt_msdu() argument
329 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in rtllib_rx_frame_decrypt_msdu()
343 atomic_inc(&crypt->refcnt); in rtllib_rx_frame_decrypt_msdu()
344 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in rtllib_rx_frame_decrypt_msdu()
345 atomic_dec(&crypt->refcnt); in rtllib_rx_frame_decrypt_msdu()
[all …]
Drtllib_crypt.h33 struct lib80211_crypt_data **crypt);
Drtllib.h494 } crypt; member
/linux-4.1.27/net/wireless/
Dlib80211.c74 struct lib80211_crypt_data *crypt = info->crypt[i]; in lib80211_crypt_info_free() local
75 if (crypt) { in lib80211_crypt_info_free()
76 if (crypt->ops) { in lib80211_crypt_info_free()
77 crypt->ops->deinit(crypt->priv); in lib80211_crypt_info_free()
78 module_put(crypt->ops->owner); in lib80211_crypt_info_free()
80 kfree(crypt); in lib80211_crypt_info_free()
81 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-4.1.27/drivers/net/wireless/hostap/
Dhostap_80211_tx.c315 struct lib80211_crypt_data *crypt) in hostap_tx_encrypt() argument
331 strcmp(crypt->ops->name, "TKIP") == 0) { in hostap_tx_encrypt()
346 prefix_len = crypt->ops->extra_mpdu_prefix_len + in hostap_tx_encrypt()
347 crypt->ops->extra_msdu_prefix_len; in hostap_tx_encrypt()
348 postfix_len = crypt->ops->extra_mpdu_postfix_len + in hostap_tx_encrypt()
349 crypt->ops->extra_msdu_postfix_len; in hostap_tx_encrypt()
362 atomic_inc(&crypt->refcnt); in hostap_tx_encrypt()
364 if (crypt->ops->encrypt_msdu) in hostap_tx_encrypt()
365 res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt()
366 if (res == 0 && crypt->ops->encrypt_mpdu) in hostap_tx_encrypt()
[all …]
Dhostap_ioctl.c131 struct lib80211_crypt_data **crypt; in prism2_ioctl_siwencode() local
144 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencode()
147 if (*crypt) in prism2_ioctl_siwencode()
148 lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); in prism2_ioctl_siwencode()
152 if (*crypt != NULL && (*crypt)->ops != NULL && in prism2_ioctl_siwencode()
153 strcmp((*crypt)->ops->name, "WEP") != 0) { in prism2_ioctl_siwencode()
155 lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); in prism2_ioctl_siwencode()
158 if (*crypt == NULL) { in prism2_ioctl_siwencode()
182 *crypt = new_crypt; in prism2_ioctl_siwencode()
190 (*crypt)->ops->set_key(keybuf, len, NULL, (*crypt)->priv); in prism2_ioctl_siwencode()
[all …]
Dhostap_80211_rx.c651 struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt() argument
656 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in hostap_rx_frame_decrypt()
663 strcmp(crypt->ops->name, "TKIP") == 0) { in hostap_rx_frame_decrypt()
672 atomic_inc(&crypt->refcnt); in hostap_rx_frame_decrypt()
673 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in hostap_rx_frame_decrypt()
674 atomic_dec(&crypt->refcnt); in hostap_rx_frame_decrypt()
689 int keyidx, struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt_msdu() argument
694 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in hostap_rx_frame_decrypt_msdu()
700 atomic_inc(&crypt->refcnt); in hostap_rx_frame_decrypt_msdu()
701 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu()
[all …]
Dhostap_ap.h77 struct lib80211_crypt_data *crypt; member
212 struct lib80211_crypto_ops *crypt; member
232 struct lib80211_crypt_data *crypt; member
247 struct lib80211_crypt_data **crypt,
Dhostap_ap.c135 if (sta->crypt) { in ap_free_sta()
136 sta->crypt->ops->deinit(sta->crypt->priv); in ap_free_sta()
137 kfree(sta->crypt); in ap_free_sta()
138 sta->crypt = NULL; in ap_free_sta()
923 if (ap->crypt) in hostap_free_data()
924 ap->crypt->deinit(ap->crypt_priv); in hostap_free_data()
925 ap->crypt = ap->crypt_priv = NULL; in hostap_free_data()
1090 if (sta->crypt && sta->crypt->ops && sta->crypt->ops->print_stats) in prism2_sta_proc_show()
1091 sta->crypt->ops->print_stats(m, sta->crypt->priv); in prism2_sta_proc_show()
1271 ap->crypt = lib80211_get_crypto_ops("WEP"); in ap_crypt_init()
[all …]
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()
244 if (local->crypt_info.crypt[i] && in prism2_crypt_proc_show()
245 local->crypt_info.crypt[i]->ops && in prism2_crypt_proc_show()
246 local->crypt_info.crypt[i]->ops->print_stats) { in prism2_crypt_proc_show()
247 local->crypt_info.crypt[i]->ops->print_stats( in prism2_crypt_proc_show()
248 m, local->crypt_info.crypt[i]->priv); in prism2_crypt_proc_show()
Dhostap_main.c338 if (local->crypt_info.crypt[idx] == NULL || in hostap_set_encryption()
339 local->crypt_info.crypt[idx]->ops == NULL) in hostap_set_encryption()
341 else if (strcmp(local->crypt_info.crypt[idx]->ops->name, "WEP") == 0) in hostap_set_encryption()
389 len = local->crypt_info.crypt[idx]->ops->get_key(keybuf, sizeof(keybuf), NULL, in hostap_set_encryption()
390 local->crypt_info.crypt[idx]->priv); in hostap_set_encryption()
396 if (local->crypt_info.crypt[i]) { in hostap_set_encryption()
397 (void) local->crypt_info.crypt[i]->ops->get_key( in hostap_set_encryption()
399 NULL, local->crypt_info.crypt[i]->priv); in hostap_set_encryption()
Dhostap.h66 struct lib80211_crypt_data ***crypt);
Dhostap_common.h381 } crypt; member
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c363 param->u.crypt.err = 0; in wpa_set_encryption()
364 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption()
366 if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { in wpa_set_encryption()
374 if (param->u.crypt.idx >= WEP_KEYS) { in wpa_set_encryption()
383 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption()
391 wep_key_idx = param->u.crypt.idx; in wpa_set_encryption()
392 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption()
423 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
424 if (param->u.crypt.set_tx) { in wpa_set_encryption()
450 if (strcmp(param->u.crypt.alg, "none") != 0) in wpa_set_encryption()
[all …]
/linux-4.1.27/Documentation/filesystems/
Decryptfs.txt39 files (i.e., /root/crypt). Then, create the mount point directory
40 (i.e., /mnt/crypt). Now it's time to mount eCryptfs:
42 mount -t ecryptfs /root/crypt /mnt/crypt
49 echo "Hello, World" > /mnt/crypt/hello.txt
52 /root/crypt that is at least 12288 bytes in size (depending on your
59 Then umount /mnt/crypt and mount again per the instructions given
62 cat /mnt/crypt/hello.txt
/linux-4.1.27/Documentation/device-mapper/
Ddm-crypt.txt1 dm-crypt
4 Device-Mapper's "crypt" target provides transparent encryption of block devices
57 Block discard requests (a.k.a. TRIM) are passed through the crypt device.
82 encryption with dm-crypt using the 'cryptsetup' utility, see
87 # Create a crypt device using dmsetup
88 dmsetup create crypt1 --table "0 `blockdev --getsize $1` crypt aes-cbc-essiv:sha256 babebabebabebab…
93 # Create a crypt device using cryptsetup and LUKS header with default cipher
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c126 memcpy(psta->x_UncstKey.skey, param->u.crypt.key, in handle_pairwise_key()
127 (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); in handle_pairwise_key()
128 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ in handle_pairwise_key()
129 memcpy(psta->tkiptxmickey. skey, &(param->u.crypt. in handle_pairwise_key()
131 memcpy(psta->tkiprxmickey. skey, &(param->u.crypt. in handle_pairwise_key()
143 if (0 < param->u.crypt.idx && in handle_group_key()
144 param->u.crypt.idx < 3) { in handle_group_key()
146 memcpy(padapter->securitypriv.XGrpKey[param->u.crypt. in handle_group_key()
147 idx-1].skey, param->u.crypt.key, (param->u.crypt.key_len in handle_group_key()
148 > 16 ? 16 : param->u.crypt.key_len)); in handle_group_key()
[all …]
Dieee80211.h117 } crypt; member
/linux-4.1.27/include/net/
Dlib80211.h105 struct lib80211_crypt_data *crypt[NUM_WEP_KEYS]; member
119 struct lib80211_crypt_data **crypt);
/linux-4.1.27/Documentation/power/
Dswsusp-dmcrypt.txt4 How to use dm-crypt and swsusp together:
8 You know how dm-crypt works. If not, visit the following web page:
9 http://www.saout.de/misc/dm-crypt/
24 up dm-crypt and then asks swsusp to resume from the encrypted
27 The most important thing is that you set up dm-crypt in such
51 you create an initrd that reads the required dm-crypt setup
D00-INDEX38 - How to use dm-crypt and software suspend (to disk) together
Dswsusp.txt276 A: First of all: it is not a replacement for dm-crypt encrypted swap.
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
Drtl_core.c2596 if (ipw->u.crypt.set_tx) { in rtl8192_ioctl()
2597 if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) in rtl8192_ioctl()
2599 else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) in rtl8192_ioctl()
2601 else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { in rtl8192_ioctl()
2602 if (ipw->u.crypt.key_len == 13) in rtl8192_ioctl()
2605 else if (ipw->u.crypt.key_len == 5) in rtl8192_ioctl()
2616 memcpy((u8 *)key, ipw->u.crypt.key, 16); in rtl8192_ioctl()
2618 set_swcam(dev, 4, ipw->u.crypt.idx, in rtl8192_ioctl()
2622 setKey(dev, 4, ipw->u.crypt.idx, in rtl8192_ioctl()
2626 set_swcam(dev, ipw->u.crypt.idx, in rtl8192_ioctl()
[all …]
/linux-4.1.27/crypto/
Dxts.c93 static int crypt(struct blkcipher_desc *d, in crypt() function
154 return crypt(desc, &w, ctx, crypto_cipher_alg(ctx->tweak)->cia_encrypt, in encrypt()
165 return crypt(desc, &w, ctx, crypto_cipher_alg(ctx->tweak)->cia_encrypt, in decrypt()
Dlrw.c138 static int crypt(struct blkcipher_desc *d, in crypt() function
202 return crypt(desc, &w, ctx, in encrypt()
213 return crypt(desc, &w, ctx, in decrypt()
Dcryptd.c204 int (*crypt)(struct blkcipher_desc *desc, in cryptd_blkcipher_crypt()
221 err = crypt(&desc, req->dst, req->src, req->nbytes); in cryptd_blkcipher_crypt()
660 int (*crypt)(struct aead_request *req)) in cryptd_aead_crypt()
668 err = crypt( req ); in cryptd_aead_crypt()
DKconfig275 narrow block cipher mode for dm-crypt. Use it with cipher
925 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
944 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
966 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
989 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1005 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
/linux-4.1.27/drivers/staging/rtl8192u/
Dr8192U_core.c2020 struct ieee80211_crypt_data *crypt; in GetNmodeSupportBySecCfg8192() local
2023 crypt = ieee->crypt[ieee->tx_keyidx]; in GetNmodeSupportBySecCfg8192()
2025 …ty & WLAN_CAPABILITY_PRIVACY) || (ieee->host_encrypt && crypt && crypt->ops && (0 == strcmp(crypt-… in GetNmodeSupportBySecCfg8192()
3478 if (ipw->u.crypt.set_tx) { in rtl8192_ioctl()
3479 if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) { in rtl8192_ioctl()
3481 } else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) { in rtl8192_ioctl()
3483 } else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { in rtl8192_ioctl()
3484 if (ipw->u.crypt.key_len == 13) in rtl8192_ioctl()
3486 else if (ipw->u.crypt.key_len == 5) in rtl8192_ioctl()
3493 memcpy((u8 *)key, ipw->u.crypt.key, 16); in rtl8192_ioctl()
[all …]
/linux-4.1.27/Documentation/crypto/
Ddescore-readme.txt56 since i was interested in fast des filters rather than crypt(3)
89 it's 39%-106% slower. because he was interested in fast crypt(3) and
96 fast crypt(3) package from denmark:
98 crypt function and i didn't feel like ripping it out and measuring
115 as in crypt above, the des routine is buried in a loop. it's
116 also very modified for crypt. his iteration code uses 16k
152 a while later i ran across the great crypt(3) package mentioned above.
162 to crypt(3) in his tables - i didn't check.
/linux-4.1.27/drivers/md/
DMakefile40 obj-$(CONFIG_DM_CRYPT) += dm-crypt.o
DKconfig261 For further information on dm-crypt and userspace tools see:
265 be called dm-crypt.
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Dieee80211.h240 } crypt; member