Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/crypto/
Dixp4xx_crypto.c344 static void finish_scattered_hmac(struct crypt_ctl *crypt) in finish_scattered_hmac() argument
346 struct aead_request *req = crypt->data.aead_req; in finish_scattered_hmac()
356 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); in finish_scattered_hmac()
362 struct crypt_ctl *crypt; in one_packet() local
368 crypt = crypt_phys2virt(phys); in one_packet()
370 switch (crypt->ctl_flags & CTL_FLAG_MASK) { in one_packet()
372 struct aead_request *req = crypt->data.aead_req; in one_packet()
375 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in one_packet()
376 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
378 finish_scattered_hmac(crypt); in one_packet()
[all …]
/Linux-v4.19/drivers/net/wireless/intel/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 …]
/Linux-v4.19/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.c184 struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() local
187 if (!(crypt && crypt->ops)) in ieee80211_encrypt_fragment()
194 crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) { in ieee80211_encrypt_fragment()
214 atomic_inc(&crypt->refcnt); in ieee80211_encrypt_fragment()
216 if (crypt->ops->encrypt_msdu) in ieee80211_encrypt_fragment()
217 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment()
218 if (res == 0 && crypt->ops->encrypt_mpdu) in ieee80211_encrypt_fragment()
219 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment()
221 atomic_dec(&crypt->refcnt); in ieee80211_encrypt_fragment()
615 struct ieee80211_crypt_data *crypt; in ieee80211_xmit() local
[all …]
Dieee80211_module.c204 struct ieee80211_crypt_data *crypt = ieee->crypt[i]; in free_ieee80211() local
205 if (crypt) { in free_ieee80211()
206 if (crypt->ops) in free_ieee80211()
207 crypt->ops->deinit(crypt->priv); in free_ieee80211()
208 kfree(crypt); in free_ieee80211()
209 ieee->crypt[i] = NULL; in free_ieee80211()
Dieee80211_softmac.c666 struct ieee80211_crypt_data *crypt; in ieee80211_probe_resp() local
696 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp()
698 encrypt = ieee->host_encrypt && crypt && crypt->ops && in ieee80211_probe_resp()
699 ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); in ieee80211_probe_resp()
747 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp()
810 struct ieee80211_crypt_data *crypt; in ieee80211_assoc_resp() local
837 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_assoc_resp()
839 crypt = NULL; in ieee80211_assoc_resp()
841 encrypt = crypt && crypt->ops; in ieee80211_assoc_resp()
959 struct ieee80211_crypt_data *crypt; in ieee80211_association_req() local
[all …]
/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_80211_tx.c316 struct lib80211_crypt_data *crypt) in hostap_tx_encrypt() argument
332 strcmp(crypt->ops->name, "TKIP") == 0) { in hostap_tx_encrypt()
347 prefix_len = crypt->ops->extra_mpdu_prefix_len + in hostap_tx_encrypt()
348 crypt->ops->extra_msdu_prefix_len; in hostap_tx_encrypt()
349 postfix_len = crypt->ops->extra_mpdu_postfix_len + in hostap_tx_encrypt()
350 crypt->ops->extra_msdu_postfix_len; in hostap_tx_encrypt()
363 atomic_inc(&crypt->refcnt); in hostap_tx_encrypt()
365 if (crypt->ops->encrypt_msdu) in hostap_tx_encrypt()
366 res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt()
367 if (res == 0 && crypt->ops->encrypt_mpdu) in hostap_tx_encrypt()
[all …]
Dhostap_ioctl.c132 struct lib80211_crypt_data **crypt; in prism2_ioctl_siwencode() local
145 crypt = &local->crypt_info.crypt[i]; in prism2_ioctl_siwencode()
148 if (*crypt) in prism2_ioctl_siwencode()
149 lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); in prism2_ioctl_siwencode()
153 if (*crypt != NULL && (*crypt)->ops != NULL && in prism2_ioctl_siwencode()
154 strcmp((*crypt)->ops->name, "WEP") != 0) { in prism2_ioctl_siwencode()
156 lib80211_crypt_delayed_deinit(&local->crypt_info, crypt); in prism2_ioctl_siwencode()
159 if (*crypt == NULL) { in prism2_ioctl_siwencode()
183 *crypt = new_crypt; in prism2_ioctl_siwencode()
191 (*crypt)->ops->set_key(keybuf, len, NULL, (*crypt)->priv); in prism2_ioctl_siwencode()
[all …]
Dhostap_80211_rx.c650 struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt() argument
655 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in hostap_rx_frame_decrypt()
662 strcmp(crypt->ops->name, "TKIP") == 0) { 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()
688 int keyidx, struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt_msdu() argument
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()
[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()
185 if (local->crypt_info.crypt[i] && in prism2_crypt_proc_show()
186 local->crypt_info.crypt[i]->ops && in prism2_crypt_proc_show()
187 local->crypt_info.crypt[i]->ops->print_stats) { in prism2_crypt_proc_show()
188 local->crypt_info.crypt[i]->ops->print_stats( in prism2_crypt_proc_show()
189 m, local->crypt_info.crypt[i]->priv); in prism2_crypt_proc_show()
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,
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()
126 sta->crypt = NULL; in ap_free_sta()
877 if (ap->crypt) in hostap_free_data()
878 ap->crypt->deinit(ap->crypt_priv); in hostap_free_data()
879 ap->crypt = ap->crypt_priv = NULL; 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()
1210 ap->crypt = lib80211_get_crypto_ops("WEP"); in ap_crypt_init()
[all …]
/Linux-v4.19/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()
138 struct lib80211_crypt_data **crypt) in lib80211_crypt_delayed_deinit() argument
143 if (*crypt == NULL) in lib80211_crypt_delayed_deinit()
146 tmp = *crypt; in lib80211_crypt_delayed_deinit()
[all …]
/Linux-v4.19/drivers/staging/rtl8192e/
Drtllib_wx.c310 struct lib80211_crypt_data **crypt; in rtllib_wx_set_encode() local
327 crypt = &ieee->crypt_info.crypt[key]; in rtllib_wx_set_encode()
329 if (key_provided && *crypt) { in rtllib_wx_set_encode()
332 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in rtllib_wx_set_encode()
340 if (ieee->crypt_info.crypt[i] != NULL) { in rtllib_wx_set_encode()
344 &ieee->crypt_info.crypt[i]); in rtllib_wx_set_encode()
362 if (*crypt != NULL && (*crypt)->ops != NULL && in rtllib_wx_set_encode()
363 strcmp((*crypt)->ops->name, "R-WEP") != 0) { in rtllib_wx_set_encode()
367 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in rtllib_wx_set_encode()
370 if (*crypt == NULL) { in rtllib_wx_set_encode()
[all …]
Drtllib_tx.c176 struct lib80211_crypt_data *crypt = NULL; in rtllib_encrypt_fragment() local
179 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_encrypt_fragment()
181 if (!(crypt && crypt->ops)) { in rtllib_encrypt_fragment()
193 atomic_inc(&crypt->refcnt); in rtllib_encrypt_fragment()
195 if (crypt->ops->encrypt_msdu) in rtllib_encrypt_fragment()
196 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment()
197 if (res == 0 && crypt->ops->encrypt_mpdu) in rtllib_encrypt_fragment()
198 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment()
200 atomic_dec(&crypt->refcnt); in rtllib_encrypt_fragment()
584 struct lib80211_crypt_data *crypt = NULL; in rtllib_xmit_inter() local
[all …]
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c599 param->u.crypt.err = 0; in rtw_cfg80211_ap_set_encryption()
600 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in rtw_cfg80211_ap_set_encryption()
602 if (param_len != sizeof(struct ieee_param) + param->u.crypt.key_len) in rtw_cfg80211_ap_set_encryption()
612 if (param->u.crypt.idx >= WEP_KEYS) in rtw_cfg80211_ap_set_encryption()
629 if (strcmp(param->u.crypt.alg, "none") == 0 && (psta == NULL)) in rtw_cfg80211_ap_set_encryption()
633 DBG_8192C("clear default encryption keys, keyid =%d\n", param->u.crypt.idx); in rtw_cfg80211_ap_set_encryption()
639 if (strcmp(param->u.crypt.alg, "WEP") == 0 && (psta == NULL)) in rtw_cfg80211_ap_set_encryption()
643 wep_key_idx = param->u.crypt.idx; in rtw_cfg80211_ap_set_encryption()
644 wep_key_len = param->u.crypt.key_len; in rtw_cfg80211_ap_set_encryption()
677 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); in rtw_cfg80211_ap_set_encryption()
[all …]
Dioctl_linux.c436 param->u.crypt.err = 0; in wpa_set_encryption()
437 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption()
439 if (param_len < (u32) ((u8 *) param->u.crypt.key - (u8 *) param) + param->u.crypt.key_len) { in wpa_set_encryption()
447 if (param->u.crypt.idx >= WEP_KEYS || in wpa_set_encryption()
448 param->u.crypt.idx >= BIP_MAX_KEYID) { in wpa_set_encryption()
459 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption()
467 wep_key_idx = param->u.crypt.idx; in wpa_set_encryption()
468 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption()
504 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
506 if (param->u.crypt.set_tx) { in wpa_set_encryption()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c355 param->u.crypt.err = 0; in wpa_set_encryption()
356 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption()
358 if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { in wpa_set_encryption()
364 if (param->u.crypt.idx >= WEP_KEYS) { in wpa_set_encryption()
373 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption()
381 wep_key_idx = param->u.crypt.idx; in wpa_set_encryption()
382 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption()
413 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
414 if (param->u.crypt.set_tx) { in wpa_set_encryption()
440 if (strcmp(param->u.crypt.alg, "none") != 0) in wpa_set_encryption()
[all …]
/Linux-v4.19/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-v4.19/Documentation/device-mapper/
Ddm-crypt.txt1 dm-crypt
4 Device-Mapper's "crypt" target provides transparent encryption of block devices
23 Cipher format also supports direct specification with kernel crypt API
62 The kernel keyring key description crypt target should look for
91 Block discard requests (a.k.a. TRIM) are passed through the crypt device.
142 encryption with dm-crypt using the 'cryptsetup' utility, see
147 # Create a crypt device using dmsetup
148 dmsetup create crypt1 --table "0 `blockdev --getsz $1` crypt aes-cbc-essiv:sha256 babebabebabebabeb…
153 # Create a crypt device using dmsetup when encryption key is stored in keyring service
154 dmsetup create crypt2 --table "0 `blockdev --getsize $1` crypt aes-cbc-essiv:sha256 :32:logon:my_pr…
[all …]
/Linux-v4.19/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c100 memcpy(psta->x_UncstKey.skey, param->u.crypt.key, in handle_pairwise_key()
101 (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); in handle_pairwise_key()
102 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ in handle_pairwise_key()
104 &(param->u.crypt.key[16]), 8); in handle_pairwise_key()
106 &(param->u.crypt.key[24]), 8); in handle_pairwise_key()
121 if (param->u.crypt.idx > 0 && in handle_group_key()
122 param->u.crypt.idx < 3) { in handle_group_key()
124 memcpy(gk[param->u.crypt.idx - 1].skey, in handle_group_key()
125 param->u.crypt.key, in handle_group_key()
126 (param->u.crypt.key_len > 16 ? 16 : in handle_group_key()
[all …]
/Linux-v4.19/arch/x86/crypto/
Daegis256-aesni-asm.S388 .macro crypt m s0 s1 s2 s3 s4 s5 macro
398 crypt \m STATE0 STATE1 STATE2 STATE3 STATE4 STATE5
402 crypt \m STATE5 STATE0 STATE1 STATE2 STATE3 STATE4
406 crypt \m STATE4 STATE5 STATE0 STATE1 STATE2 STATE3
410 crypt \m STATE3 STATE4 STATE5 STATE0 STATE1 STATE2
414 crypt \m STATE2 STATE3 STATE4 STATE5 STATE0 STATE1
418 crypt \m STATE1 STATE2 STATE3 STATE4 STATE5 STATE0
424 crypt\i T0
436 crypt\i MSG
Daegis128l-aesni-asm.S457 .macro crypt m0 m1 s0 s1 s2 s3 s4 s5 s6 s7 macro
472 crypt \m0 \m1 STATE0 STATE1 STATE2 STATE3 STATE4 STATE5 STATE6 STATE7
476 crypt \m0 \m1 STATE7 STATE0 STATE1 STATE2 STATE3 STATE4 STATE5 STATE6
480 crypt \m0 \m1 STATE6 STATE7 STATE0 STATE1 STATE2 STATE3 STATE4 STATE5
484 crypt \m0 \m1 STATE5 STATE6 STATE7 STATE0 STATE1 STATE2 STATE3 STATE4
488 crypt \m0 \m1 STATE4 STATE5 STATE6 STATE7 STATE0 STATE1 STATE2 STATE3
492 crypt \m0 \m1 STATE3 STATE4 STATE5 STATE6 STATE7 STATE0 STATE1 STATE2
496 crypt \m0 \m1 STATE2 STATE3 STATE4 STATE5 STATE6 STATE7 STATE0 STATE1
500 crypt \m0 \m1 STATE1 STATE2 STATE3 STATE4 STATE5 STATE6 STATE7 STATE0
508 crypt\i T0, T1
[all …]

123