Home
last modified time | relevance | path

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

123

/drivers/crypto/
Dixp4xx_crypto.c349 static void finish_scattered_hmac(struct crypt_ctl *crypt) in finish_scattered_hmac() argument
351 struct aead_request *req = crypt->data.aead_req; in finish_scattered_hmac()
361 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); in finish_scattered_hmac()
366 struct crypt_ctl *crypt; in one_packet() local
372 crypt = crypt_phys2virt(phys); in one_packet()
374 switch (crypt->ctl_flags & CTL_FLAG_MASK) { in one_packet()
376 struct aead_request *req = crypt->data.aead_req; in one_packet()
379 free_buf_chain(dev, req_ctx->buffer, crypt->src_buf); in one_packet()
381 finish_scattered_hmac(crypt); in one_packet()
387 struct ablkcipher_request *req = crypt->data.ablk_req; in one_packet()
[all …]
/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.c323 struct lib80211_crypt_data **crypt; in libipw_wx_set_encode() local
343 crypt = &ieee->crypt_info.crypt[key]; in libipw_wx_set_encode()
346 if (key_provided && *crypt) { in libipw_wx_set_encode()
349 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
356 if (ieee->crypt_info.crypt[i] != NULL) { in libipw_wx_set_encode()
360 &ieee->crypt_info.crypt[i]); in libipw_wx_set_encode()
378 if (*crypt != NULL && (*crypt)->ops != NULL && in libipw_wx_set_encode()
379 strcmp((*crypt)->ops->name, "WEP") != 0) { in libipw_wx_set_encode()
382 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
385 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 …]
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c319 struct ieee80211_crypt_data **crypt; in ieee80211_wx_set_encode() local
336 crypt = &ieee->crypt[key]; in ieee80211_wx_set_encode()
339 if (key_provided && *crypt) { in ieee80211_wx_set_encode()
342 ieee80211_crypt_delayed_deinit(ieee, crypt); in ieee80211_wx_set_encode()
349 if (ieee->crypt[i] != NULL) { in ieee80211_wx_set_encode()
353 ieee, &ieee->crypt[i]); in ieee80211_wx_set_encode()
371 if (*crypt != NULL && (*crypt)->ops != NULL && in ieee80211_wx_set_encode()
372 strcmp((*crypt)->ops->name, "WEP") != 0) { in ieee80211_wx_set_encode()
375 ieee80211_crypt_delayed_deinit(ieee, crypt); in ieee80211_wx_set_encode()
378 if (*crypt == NULL) { in ieee80211_wx_set_encode()
[all …]
Dieee80211_tx.c186 struct ieee80211_crypt_data* crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() local
189 if (!(crypt && crypt->ops)) in ieee80211_encrypt_fragment()
198 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()
610 struct ieee80211_crypt_data* crypt; in ieee80211_xmit() local
[all …]
Dieee80211_softmac.c699 struct ieee80211_crypt_data* crypt; in ieee80211_probe_resp() local
729 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp()
732 encrypt = ieee->host_encrypt && crypt && crypt->ops && in ieee80211_probe_resp()
733 ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); in ieee80211_probe_resp()
783 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp()
849 struct ieee80211_crypt_data* crypt; in ieee80211_assoc_resp() local
878 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_assoc_resp()
879 else crypt = NULL; in ieee80211_assoc_resp()
881 encrypt = ( crypt && crypt->ops); in ieee80211_assoc_resp()
1002 struct ieee80211_crypt_data* crypt; in ieee80211_association_req() local
[all …]
Dieee80211_module.c208 struct ieee80211_crypt_data *crypt = ieee->crypt[i]; in free_ieee80211() local
209 if (crypt) { in free_ieee80211()
210 if (crypt->ops) in free_ieee80211()
211 crypt->ops->deinit(crypt->priv); in free_ieee80211()
212 kfree(crypt); in free_ieee80211()
213 ieee->crypt[i] = NULL; in free_ieee80211()
Dcipher.c48 static int crypt(struct crypto_tfm *tfm, in crypt() function
146 return crypt(tfm, dst, src, nbytes, in ecb_encrypt()
156 return crypt(tfm, dst, src, nbytes, in ecb_decrypt()
166 return crypt(tfm, dst, src, nbytes, in cbc_encrypt()
176 return crypt(tfm, dst, src, nbytes, in cbc_encrypt_iv()
186 return crypt(tfm, dst, src, nbytes, in cbc_decrypt()
196 return crypt(tfm, dst, src, nbytes, in cbc_decrypt_iv()
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_wx.c260 struct ieee80211_crypt_data **crypt; in ieee80211_wx_set_encode() local
278 crypt = &ieee->crypt[key]; in ieee80211_wx_set_encode()
281 if (key_provided && *crypt) { in ieee80211_wx_set_encode()
284 ieee80211_crypt_delayed_deinit(ieee, crypt); in ieee80211_wx_set_encode()
291 if (ieee->crypt[i] != NULL) { in ieee80211_wx_set_encode()
295 ieee, &ieee->crypt[i]); in ieee80211_wx_set_encode()
313 if (*crypt != NULL && (*crypt)->ops != NULL && in ieee80211_wx_set_encode()
314 strcmp((*crypt)->ops->name, "WEP") != 0) { in ieee80211_wx_set_encode()
317 ieee80211_crypt_delayed_deinit(ieee, crypt); in ieee80211_wx_set_encode()
320 if (*crypt == NULL) { in ieee80211_wx_set_encode()
[all …]
Dieee80211_tx.c186 struct ieee80211_crypt_data* crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_encrypt_fragment() local
190 if (!crypt || !crypt->ops) in ieee80211_encrypt_fragment()
197 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()
326 struct ieee80211_crypt_data* crypt; in ieee80211_rtl_xmit() local
[all …]
Dieee80211_module.c183 struct ieee80211_crypt_data *crypt = ieee->crypt[i]; in free_ieee80211() local
184 if (crypt) { in free_ieee80211()
185 if (crypt->ops) in free_ieee80211()
186 crypt->ops->deinit(crypt->priv); in free_ieee80211()
187 kfree(crypt); in free_ieee80211()
188 ieee->crypt[i] = NULL; in free_ieee80211()
Dieee80211_softmac.c779 struct ieee80211_crypt_data* crypt; in ieee80211_probe_resp() local
827 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_probe_resp()
829 encrypt = ieee->host_encrypt && crypt && crypt->ops && in ieee80211_probe_resp()
830 ((0 == strcmp(crypt->ops->name, "WEP")) || wpa_ie_len); in ieee80211_probe_resp()
895 struct ieee80211_crypt_data* crypt; in ieee80211_assoc_resp() local
922 crypt = ieee->crypt[ieee->tx_keyidx]; in ieee80211_assoc_resp()
923 else crypt = NULL; in ieee80211_assoc_resp()
925 encrypt = ( crypt && crypt->ops); in ieee80211_assoc_resp()
2790 struct ieee80211_crypt_data **crypt; in ieee80211_wpa_set_encryption() local
2796 param->u.crypt.err = 0; in ieee80211_wpa_set_encryption()
[all …]
Dieee80211_rx.c296 struct ieee80211_crypt_data *crypt) in ieee80211_rx_frame_decrypt() argument
301 if (crypt == NULL || crypt->ops->decrypt_mpdu == NULL) in ieee80211_rx_frame_decrypt()
309 strcmp(crypt->ops->name, "TKIP") == 0) { in ieee80211_rx_frame_decrypt()
319 atomic_inc(&crypt->refcnt); in ieee80211_rx_frame_decrypt()
320 res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt()
321 atomic_dec(&crypt->refcnt); in ieee80211_rx_frame_decrypt()
341 int keyidx, struct ieee80211_crypt_data *crypt) in ieee80211_rx_frame_decrypt_msdu() argument
346 if (crypt == NULL || crypt->ops->decrypt_msdu == NULL) in ieee80211_rx_frame_decrypt_msdu()
352 atomic_inc(&crypt->refcnt); in ieee80211_rx_frame_decrypt_msdu()
353 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt_msdu()
[all …]
Dieee80211_crypt.c80 struct ieee80211_crypt_data **crypt) in ieee80211_crypt_delayed_deinit() argument
85 if (*crypt == NULL) in ieee80211_crypt_delayed_deinit()
88 tmp = *crypt; in ieee80211_crypt_delayed_deinit()
89 *crypt = NULL; in ieee80211_crypt_delayed_deinit()
/drivers/staging/rtl8192e/
Drtllib_wx.c309 struct lib80211_crypt_data **crypt; in rtllib_wx_set_encode() local
326 crypt = &ieee->crypt_info.crypt[key]; in rtllib_wx_set_encode()
328 if (key_provided && *crypt) { in rtllib_wx_set_encode()
331 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in rtllib_wx_set_encode()
338 if (ieee->crypt_info.crypt[i] != NULL) { in rtllib_wx_set_encode()
342 &ieee->crypt_info.crypt[i]); in rtllib_wx_set_encode()
360 if (*crypt != NULL && (*crypt)->ops != NULL && in rtllib_wx_set_encode()
361 strcmp((*crypt)->ops->name, "R-WEP") != 0) { in rtllib_wx_set_encode()
364 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in rtllib_wx_set_encode()
367 if (*crypt == NULL) { in rtllib_wx_set_encode()
[all …]
Drtllib_tx.c182 struct lib80211_crypt_data *crypt = NULL; in rtllib_encrypt_fragment() local
185 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_encrypt_fragment()
187 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()
570 struct lib80211_crypt_data *crypt = NULL; in rtllib_xmit_inter() local
[all …]
Drtllib_softmac.c840 struct lib80211_crypt_data *crypt; in rtllib_probe_resp() local
875 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_probe_resp()
876 encrypt = ieee->host_encrypt && crypt && crypt->ops && in rtllib_probe_resp()
877 ((0 == strcmp(crypt->ops->name, "R-WEP") || wpa_ie_len)); in rtllib_probe_resp()
927 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_probe_resp()
986 struct lib80211_crypt_data *crypt; in rtllib_assoc_resp() local
1017 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in rtllib_assoc_resp()
1019 crypt = NULL; in rtllib_assoc_resp()
1021 encrypt = (crypt && crypt->ops); in rtllib_assoc_resp()
1182 struct lib80211_crypt_data *crypt; in rtllib_association_req() local
[all …]
/drivers/staging/vt6656/
Dhostap.c420 param->u.crypt.err = 0; in hostap_set_encryption()
422 if (param->u.crypt.alg > WPA_ALG_CCMP) in hostap_set_encryption()
425 if ((param->u.crypt.idx > 3) || (param->u.crypt.key_len > MAX_KEY_LEN)) { in hostap_set_encryption()
426 param->u.crypt.err = HOSTAP_CRYPT_ERR_KEY_SET_FAILED; in hostap_set_encryption()
432 if (param->u.crypt.idx >= MAX_GROUP_KEY) in hostap_set_encryption()
438 param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; in hostap_set_encryption()
444 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " hostap_set_encryption: alg %d \n", param->u.crypt.alg); in hostap_set_encryption()
446 if (param->u.crypt.alg == WPA_ALG_NONE) { in hostap_set_encryption()
473 memcpy(abyKey, param->u.crypt.key, param->u.crypt.key_len); in hostap_set_encryption()
475 pMgmt->sNodeDBTable[iNodeIndex].byKeyIndex = param->u.crypt.idx; in hostap_set_encryption()
[all …]
/drivers/staging/vt6655/
Dhostap.c462 param->u.crypt.err = 0; in hostap_set_encryption()
470 if (param->u.crypt.alg > WPA_ALG_CCMP) in hostap_set_encryption()
473 if ((param->u.crypt.idx > 3) || (param->u.crypt.key_len > MAX_KEY_LEN)) { in hostap_set_encryption()
474 param->u.crypt.err = HOSTAP_CRYPT_ERR_KEY_SET_FAILED; in hostap_set_encryption()
480 if (param->u.crypt.idx >= MAX_GROUP_KEY) in hostap_set_encryption()
486 param->u.crypt.err = HOSTAP_CRYPT_ERR_UNKNOWN_ADDR; in hostap_set_encryption()
492 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " hostap_set_encryption: alg %d \n", param->u.crypt.alg); in hostap_set_encryption()
494 if (param->u.crypt.alg == WPA_ALG_NONE) { in hostap_set_encryption()
519 memcpy(abyKey, param->u.crypt.key, param->u.crypt.key_len); in hostap_set_encryption()
521 pMgmt->sNodeDBTable[iNodeIndex].byKeyIndex = param->u.crypt.idx; in hostap_set_encryption()
[all …]
/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.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 …]
/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c125 memcpy(psta->x_UncstKey.skey, param->u.crypt.key, in handle_pairwise_key()
126 (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); in handle_pairwise_key()
127 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ in handle_pairwise_key()
128 memcpy(psta->tkiptxmickey. skey, &(param->u.crypt. in handle_pairwise_key()
130 memcpy(psta->tkiprxmickey. skey, &(param->u.crypt. in handle_pairwise_key()
141 if (0 < param->u.crypt.idx && in handle_group_key()
142 param->u.crypt.idx < 3) { in handle_group_key()
144 memcpy(padapter->securitypriv.XGrpKey[param->u.crypt. in handle_group_key()
145 idx-1].skey, param->u.crypt.key, (param->u.crypt.key_len in handle_group_key()
146 > 16 ? 16 : param->u.crypt.key_len)); in handle_group_key()
[all …]

123