Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 25 of 49) sorted by relevance

12

/drivers/crypto/
Dpadlock-aes.c63 struct cword encrypt; member
134 ctx->cword.encrypt.rounds = 10 + (key_len - 16) / 4; in aes_set_key()
135 ctx->cword.decrypt.rounds = ctx->cword.encrypt.rounds; in aes_set_key()
136 ctx->cword.encrypt.ksize = (key_len - 16) / 8; in aes_set_key()
137 ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize; in aes_set_key()
144 ctx->cword.encrypt.keygen = 1; in aes_set_key()
157 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) || in aes_set_key()
303 padlock_reset_key(&ctx->cword.encrypt); in aes_encrypt()
305 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in aes_encrypt()
307 padlock_store_cword(&ctx->cword.encrypt); in aes_encrypt()
[all …]
Dixp4xx_crypto.c163 int encrypt; member
179 struct ix_sa_dir encrypt; member
357 if (req_ctx->encrypt) { in finish_scattered_hmac()
572 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
577 free_sa_dir(&ctx->encrypt); in init_tfm()
597 free_sa_dir(&ctx->encrypt); in exit_tfm()
657 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument
668 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
693 if (!encrypt) in setup_auth()
732 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, in setup_cipher() argument
[all …]
Datmel-tdes.c940 .encrypt = atmel_tdes_ecb_encrypt,
961 .encrypt = atmel_tdes_cbc_encrypt,
982 .encrypt = atmel_tdes_cfb_encrypt,
1003 .encrypt = atmel_tdes_cfb8_encrypt,
1024 .encrypt = atmel_tdes_cfb16_encrypt,
1045 .encrypt = atmel_tdes_cfb32_encrypt,
1066 .encrypt = atmel_tdes_ofb_encrypt,
1086 .encrypt = atmel_tdes_ecb_encrypt,
1107 .encrypt = atmel_tdes_cbc_encrypt,
1128 .encrypt = atmel_tdes_cfb_encrypt,
[all …]
Dn2_core.c208 bool sfas, bool sob, bool eob, bool encrypt, in control_word_base() argument
222 if (encrypt) in control_word_base()
830 struct spu_queue *qp, bool encrypt) in __n2_crypt_chunk() argument
848 false, true, false, encrypt, in __n2_crypt_chunk()
974 static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt) in n2_do_ecb() argument
994 err = __n2_crypt_chunk(tfm, c, qp, encrypt); in n2_do_ecb()
1026 static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt) in n2_do_chaining() argument
1048 if (encrypt) { in n2_do_chaining()
1135 .encrypt = n2_encrypt_ecb,
1150 .encrypt = n2_encrypt_ecb,
[all …]
Dpicoxcell_crypto.c1334 .encrypt = spacc_ablk_encrypt,
1361 .encrypt = spacc_ablk_encrypt,
1387 .encrypt = spacc_ablk_encrypt,
1414 .encrypt = spacc_ablk_encrypt,
1440 .encrypt = spacc_ablk_encrypt,
1467 .encrypt = spacc_ablk_encrypt,
1495 .encrypt = spacc_aead_encrypt,
1525 .encrypt = spacc_aead_encrypt,
1554 .encrypt = spacc_aead_encrypt,
1583 .encrypt = spacc_aead_encrypt,
[all …]
Datmel-aes.c965 .encrypt = atmel_aes_ecb_encrypt,
986 .encrypt = atmel_aes_cbc_encrypt,
1007 .encrypt = atmel_aes_ofb_encrypt,
1028 .encrypt = atmel_aes_cfb_encrypt,
1049 .encrypt = atmel_aes_cfb32_encrypt,
1070 .encrypt = atmel_aes_cfb16_encrypt,
1091 .encrypt = atmel_aes_cfb8_encrypt,
1112 .encrypt = atmel_aes_ctr_encrypt,
1135 .encrypt = atmel_aes_cfb64_encrypt,
Dhifn_795x.c2345 .encrypt = hifn_encrypt_3des_cfb,
2355 .encrypt = hifn_encrypt_3des_ofb,
2366 .encrypt = hifn_encrypt_3des_cbc,
2376 .encrypt = hifn_encrypt_3des_ecb,
2390 .encrypt = hifn_encrypt_des_cfb,
2400 .encrypt = hifn_encrypt_des_ofb,
2411 .encrypt = hifn_encrypt_des_cbc,
2421 .encrypt = hifn_encrypt_des_ecb,
2435 .encrypt = hifn_encrypt_aes_ecb,
2446 .encrypt = hifn_encrypt_aes_cbc,
[all …]
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_tx.c316 int ether_type, encrypt; in ieee80211_rtl_xmit() local
353 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in ieee80211_rtl_xmit()
356 if (!encrypt && ieee->ieee802_1x && in ieee80211_rtl_xmit()
363 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in ieee80211_rtl_xmit()
382 if (encrypt) in ieee80211_rtl_xmit()
389 if (encrypt) in ieee80211_rtl_xmit()
446 if (encrypt) in ieee80211_rtl_xmit()
468 txb->encrypted = encrypt; in ieee80211_rtl_xmit()
474 if (encrypt) in ieee80211_rtl_xmit()
517 if (encrypt) in ieee80211_rtl_xmit()
/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c263 int encrypt, host_encrypt, host_encrypt_msdu; in libipw_xmit() local
299 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && in libipw_xmit()
300 ieee->sec.encrypt; in libipw_xmit()
302 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
303 host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; in libipw_xmit()
305 if (!encrypt && ieee->ieee802_1x && in libipw_xmit()
433 txb->encrypted = encrypt; in libipw_xmit()
Dlibipw_wx.c366 sec.encrypt = 0; in libipw_wx_set_encode()
375 sec.encrypt = 1; in libipw_wx_set_encode()
572 sec.encrypt = 0; in libipw_wx_set_encodeext()
580 sec.encrypt = 1; in libipw_wx_set_encodeext()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c599 int ether_type = 0, encrypt; in ieee80211_xmit() local
638 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in ieee80211_xmit()
641 if (!encrypt && ieee->ieee802_1x && in ieee80211_xmit()
647 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in ieee80211_xmit()
665 if (encrypt) in ieee80211_xmit()
726 if (encrypt) in ieee80211_xmit()
748 txb->encrypted = encrypt; in ieee80211_xmit()
773 if (encrypt){ in ieee80211_xmit()
822 if (encrypt) in ieee80211_xmit()
Dieee80211_softmac.c697 int encrypt; in ieee80211_probe_resp() local
732 encrypt = ieee->host_encrypt && crypt && crypt->ops && in ieee80211_probe_resp()
739 HTConstructCapabilityElement(ieee, tmp_ht_cap_buf, &tmp_ht_cap_len,encrypt); in ieee80211_probe_resp()
740 HTConstructInfoElement(ieee,tmp_ht_info_buf,&tmp_ht_info_len, encrypt); in ieee80211_probe_resp()
784 if (encrypt) in ieee80211_probe_resp()
851 short encrypt; in ieee80211_assoc_resp() local
881 encrypt = ( crypt && crypt->ops); in ieee80211_assoc_resp()
883 if (encrypt) in ieee80211_assoc_resp()
1003 int encrypt; in ieee80211_association_req() local
1014encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name,"WEP") || wp… in ieee80211_association_req()
[all …]
/drivers/crypto/caam/
Dcaamalg.c936 bool all_contig, bool encrypt) in init_aead_job() argument
976 if (encrypt) in init_aead_job()
1001 if (encrypt) in init_aead_job()
1662 .encrypt = aead_encrypt,
1681 .encrypt = aead_encrypt,
1700 .encrypt = aead_encrypt,
1720 .encrypt = aead_encrypt,
1740 .encrypt = aead_encrypt,
1761 .encrypt = aead_encrypt,
1781 .encrypt = aead_encrypt,
[all …]
/drivers/staging/rtl8192e/
Drtllib_tx.c560 int ether_type = 0, encrypt; in rtllib_xmit_inter() local
648 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in rtllib_xmit_inter()
650 if (!encrypt && ieee->ieee802_1x && in rtllib_xmit_inter()
655 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in rtllib_xmit_inter()
669 if (encrypt) in rtllib_xmit_inter()
741 if (encrypt) { in rtllib_xmit_inter()
766 txb->encrypted = encrypt; in rtllib_xmit_inter()
787 if (encrypt) { in rtllib_xmit_inter()
839 if (encrypt) in rtllib_xmit_inter()
Drtllib_softmac.c838 int encrypt; in rtllib_probe_resp() local
876 encrypt = ieee->host_encrypt && crypt && crypt->ops && in rtllib_probe_resp()
884 &tmp_ht_cap_len, encrypt, false); in rtllib_probe_resp()
886 encrypt); in rtllib_probe_resp()
928 if (encrypt) in rtllib_probe_resp()
988 short encrypt; in rtllib_assoc_resp() local
1021 encrypt = (crypt && crypt->ops); in rtllib_assoc_resp()
1023 if (encrypt) in rtllib_assoc_resp()
1183 int encrypt; in rtllib_association_req() local
1197 encrypt = ieee->host_encrypt && crypt && crypt->ops && in rtllib_association_req()
[all …]
/drivers/staging/rtl8712/
Drtl871x_recv.c172 if (prxattrib->encrypt == _TKIP_) { in r8712_recvframe_chkmic()
226 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || in r8712_decryptor()
229 switch (prxattrib->encrypt) { in r8712_decryptor()
546 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, in validate_recv_data_frame()
549 pattrib->encrypt); in validate_recv_data_frame()
551 pattrib->encrypt = 0; in validate_recv_data_frame()
617 if (pattrib->encrypt) in r8712_wlanhdr_to_ethhdr()
Drtl871x_xmit.c305 pattrib->encrypt = 0; in r8712_update_attrib()
310 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib()
311 switch (pattrib->encrypt) { in r8712_update_attrib()
333 if (pattrib->encrypt && in r8712_update_attrib()
365 if (pattrib->encrypt == _TKIP_) { in xmitframe_addmic()
457 switch (pattrib->encrypt) { in xmitframe_swencrypt()
516 if (pattrib->encrypt) in make_wlanhdr()
633 switch (pattrib->encrypt) { in r8712_xmitframe_coalesce()
Drtl871x_security.h160 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument
162 switch (encrypt) { \
Drtl871x_security.c184 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in r8712_wep_encrypt()
238 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == in r8712_wep_decrypt()
596 if (pattrib->encrypt == _TKIP_) { in r8712_tkip_encrypt()
670 if (prxattrib->encrypt == _TKIP_) { in r8712_tkip_decrypt()
1168 if ((pattrib->encrypt == _AES_)) { in r8712_aes_encrypt()
1374 if ((prxattrib->encrypt == _AES_)) { in r8712_aes_decrypt()
/drivers/crypto/nx/
Dnx-aes-ctr.c151 .encrypt = ctr_aes_nx_crypt,
173 .encrypt = ctr3686_aes_nx_crypt,
Dnx-aes-gcm.c326 .encrypt = gcm_aes_nx_encrypt,
348 .encrypt = gcm4106_aes_nx_encrypt,
Dnx-aes-cbc.c138 .encrypt = cbc_aes_nx_encrypt,
Dnx-aes-ecb.c136 .encrypt = ecb_aes_nx_encrypt,
/drivers/crypto/ux500/cryp/
Dcryp_core.c1112 .encrypt = cryp_blk_encrypt,
1137 .encrypt = cryp_blk_encrypt,
1162 .encrypt = cryp_blk_encrypt,
1188 .encrypt = cryp_blk_encrypt,
1214 .encrypt = cryp_blk_encrypt,
1240 .encrypt = cryp_blk_encrypt,
1265 .encrypt = cryp_blk_encrypt,
1290 .encrypt = cryp_blk_encrypt,
1315 .encrypt = cryp_blk_encrypt,
1340 .encrypt = cryp_blk_encrypt,
/drivers/scsi/pm8001/
Dpm8001_sas.h177 u32 encrypt; member
261 struct encrypt { struct
419 struct encrypt encrypt_info; /* support encryption */

12