Home
last modified time | relevance | path

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

123

/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()
307 padlock_reset_key(&ctx->cword.encrypt); in aes_encrypt()
309 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in aes_encrypt()
311 padlock_store_cword(&ctx->cword.encrypt); in aes_encrypt()
[all …]
Dixp4xx_crypto.c164 int encrypt; member
180 struct ix_sa_dir encrypt; member
354 if (req_ctx->encrypt) { in finish_scattered_hmac()
571 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
576 free_sa_dir(&ctx->encrypt); in init_tfm()
596 free_sa_dir(&ctx->encrypt); in exit_tfm()
661 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument
672 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
697 if (!encrypt) in setup_auth()
736 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, in setup_cipher() argument
[all …]
Datmel-tdes.c936 .encrypt = atmel_tdes_ecb_encrypt,
957 .encrypt = atmel_tdes_cbc_encrypt,
978 .encrypt = atmel_tdes_cfb_encrypt,
999 .encrypt = atmel_tdes_cfb8_encrypt,
1020 .encrypt = atmel_tdes_cfb16_encrypt,
1041 .encrypt = atmel_tdes_cfb32_encrypt,
1062 .encrypt = atmel_tdes_ofb_encrypt,
1082 .encrypt = atmel_tdes_ecb_encrypt,
1103 .encrypt = atmel_tdes_cbc_encrypt,
1124 .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()
827 struct spu_queue *qp, bool encrypt) in __n2_crypt_chunk() argument
845 false, true, false, encrypt, in __n2_crypt_chunk()
971 static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt) in n2_do_ecb() argument
991 err = __n2_crypt_chunk(tfm, c, qp, encrypt); in n2_do_ecb()
1023 static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt) in n2_do_chaining() argument
1045 if (encrypt) { in n2_do_chaining()
1132 .encrypt = n2_encrypt_ecb,
1147 .encrypt = n2_encrypt_ecb,
[all …]
Dpicoxcell_crypto.c1229 .encrypt = spacc_ablk_encrypt,
1256 .encrypt = spacc_ablk_encrypt,
1282 .encrypt = spacc_ablk_encrypt,
1309 .encrypt = spacc_ablk_encrypt,
1335 .encrypt = spacc_ablk_encrypt,
1362 .encrypt = spacc_ablk_encrypt,
1396 .encrypt = spacc_aead_encrypt,
1426 .encrypt = spacc_aead_encrypt,
1456 .encrypt = spacc_aead_encrypt,
1486 .encrypt = spacc_aead_encrypt,
[all …]
Datmel-aes.c976 .encrypt = atmel_aes_ecb_encrypt,
997 .encrypt = atmel_aes_cbc_encrypt,
1018 .encrypt = atmel_aes_ofb_encrypt,
1039 .encrypt = atmel_aes_cfb_encrypt,
1060 .encrypt = atmel_aes_cfb32_encrypt,
1081 .encrypt = atmel_aes_cfb16_encrypt,
1102 .encrypt = atmel_aes_cfb8_encrypt,
1123 .encrypt = atmel_aes_ctr_encrypt,
1146 .encrypt = atmel_aes_cfb64_encrypt,
/drivers/crypto/caam/
Dcaamalg.c2057 bool all_contig, bool encrypt) in init_aead_job() argument
2069 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec; in init_aead_job()
2070 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma; in init_aead_job()
2102 if (encrypt) in init_aead_job()
2117 bool all_contig, bool encrypt) in init_gcm_job() argument
2126 init_aead_job(req, edesc, all_contig, encrypt); in init_gcm_job()
2130 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job()
2146 bool all_contig, bool encrypt) in init_authenc_job() argument
2174 init_aead_job(req, edesc, all_contig, encrypt); in init_authenc_job()
2176 if (ivsize && ((is_rfc3686 && encrypt) || !alg->caam.geniv)) in init_authenc_job()
[all …]
/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()
/drivers/crypto/sunxi-ss/
Dsun4i-ss-core.c103 .encrypt = sun4i_ss_cbc_aes_encrypt,
125 .encrypt = sun4i_ss_ecb_aes_encrypt,
147 .encrypt = sun4i_ss_cbc_des_encrypt,
168 .encrypt = sun4i_ss_ecb_des_encrypt,
190 .encrypt = sun4i_ss_cbc_des3_encrypt,
212 .encrypt = sun4i_ss_ecb_des3_encrypt,
/drivers/crypto/ccp/
Dccp-crypto-aes.c70 static int ccp_aes_crypt(struct ablkcipher_request *req, bool encrypt) in ccp_aes_crypt() argument
103 (encrypt) ? CCP_AES_ACTION_ENCRYPT : CCP_AES_ACTION_DECRYPT; in ccp_aes_crypt()
169 static int ccp_aes_rfc3686_crypt(struct ablkcipher_request *req, bool encrypt) in ccp_aes_rfc3686_crypt() argument
189 return ccp_aes_crypt(req, encrypt); in ccp_aes_rfc3686_crypt()
232 .encrypt = ccp_aes_encrypt,
253 .encrypt = ccp_aes_rfc3686_encrypt,
Dccp-crypto-aes-xts.c118 unsigned int encrypt) in ccp_aes_xts_crypt() argument
153 ret = (encrypt) ? crypto_ablkcipher_encrypt(req) : in ccp_aes_xts_crypt()
166 rctx->cmd.u.xts.action = (encrypt) ? CCP_AES_ACTION_ENCRYPT in ccp_aes_xts_crypt()
251 alg->cra_ablkcipher.encrypt = ccp_aes_xts_encrypt; in ccp_register_aes_xts_alg()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c605 int ether_type = 0, encrypt; in ieee80211_xmit() local
644 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in ieee80211_xmit()
647 if (!encrypt && ieee->ieee802_1x && in ieee80211_xmit()
653 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in ieee80211_xmit()
671 if (encrypt) in ieee80211_xmit()
732 if (encrypt) in ieee80211_xmit()
754 txb->encrypted = encrypt; in ieee80211_xmit()
779 if (encrypt){ in ieee80211_xmit()
828 if (encrypt) in ieee80211_xmit()
/drivers/staging/rtl8192e/
Drtllib_tx.c573 int ether_type = 0, encrypt; in rtllib_xmit_inter() local
661 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in rtllib_xmit_inter()
663 if (!encrypt && ieee->ieee802_1x && in rtllib_xmit_inter()
668 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in rtllib_xmit_inter()
683 if (encrypt) in rtllib_xmit_inter()
761 if (encrypt) { in rtllib_xmit_inter()
787 txb->encrypted = encrypt; in rtllib_xmit_inter()
808 if (encrypt) { in rtllib_xmit_inter()
862 if (encrypt) in rtllib_xmit_inter()
/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()
548 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, in validate_recv_data_frame()
551 pattrib->encrypt); in validate_recv_data_frame()
553 pattrib->encrypt = 0; in validate_recv_data_frame()
617 if (pattrib->encrypt) in r8712_wlanhdr_to_ethhdr()
Drtl871x_xmit.c304 pattrib->encrypt = 0; in r8712_update_attrib()
309 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()
366 if (pattrib->encrypt == _TKIP_) { in xmitframe_addmic()
457 switch (pattrib->encrypt) { in xmitframe_swencrypt()
518 if (pattrib->encrypt) in make_wlanhdr()
635 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.c180 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in r8712_wep_encrypt()
235 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == in r8712_wep_decrypt()
593 if (pattrib->encrypt == _TKIP_) { in r8712_tkip_encrypt()
670 if (prxattrib->encrypt == _TKIP_) { in r8712_tkip_decrypt()
1172 if (pattrib->encrypt == _AES_) { in r8712_aes_encrypt()
1378 if (prxattrib->encrypt == _AES_) { in r8712_aes_decrypt()
/drivers/crypto/qce/
Dablkcipher.c193 static int qce_ablkcipher_crypt(struct ablkcipher_request *req, int encrypt) in qce_ablkcipher_crypt() argument
203 rctx->flags |= encrypt ? QCE_ENCRYPT : QCE_DECRYPT; in qce_ablkcipher_crypt()
208 ret = encrypt ? crypto_ablkcipher_encrypt(req) : in qce_ablkcipher_crypt()
358 alg->cra_ablkcipher.encrypt = qce_ablkcipher_encrypt; in qce_ablkcipher_register_one()
/drivers/crypto/marvell/
Dcipher.c479 .encrypt = mv_cesa_ecb_des_encrypt,
532 .encrypt = mv_cesa_cbc_des_encrypt,
602 .encrypt = mv_cesa_ecb_des3_ede_encrypt,
658 .encrypt = mv_cesa_cbc_des3_ede_encrypt,
741 .encrypt = mv_cesa_ecb_aes_encrypt,
793 .encrypt = mv_cesa_cbc_aes_encrypt,
/drivers/staging/rtl8188eu/core/
Drtw_recv.c289 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic()
420 … ("prxstat->decrypted=%x prxattrib->encrypt=0x%03x\n", prxattrib->bdecrypted, prxattrib->encrypt)); in decryptor()
422 if (prxattrib->encrypt > 0) { in decryptor()
429 switch (prxattrib->encrypt) { in decryptor()
443 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || (psecuritypriv->sw_decrypt))) { in decryptor()
446 switch (prxattrib->encrypt) { in decryptor()
460 } else if (prxattrib->bdecrypted == 1 && prxattrib->encrypt > 0 && in decryptor()
461 (psecuritypriv->busetkipkey == 1 || prxattrib->encrypt != _TKIP_)) in decryptor()
1215 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, IS_MCAST(pattrib->ra)); in validate_recv_data_frame()
1217 RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n pattrib->encrypt=%d\n", pattrib->encrypt)); in validate_recv_data_frame()
[all …]
Drtw_xmit.c548 pattrib->encrypt = 0; in update_attrib()
556 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in update_attrib()
576 switch (pattrib->encrypt) { in update_attrib()
595 …RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_, ("pattrib->encrypt=%d (_AES_)\n", pattrib->encrypt)); in update_attrib()
607 pattrib->encrypt, padapter->securitypriv.sw_encrypt)); in update_attrib()
609 if (pattrib->encrypt && in update_attrib()
614 pattrib->encrypt, padapter->securitypriv.sw_encrypt)); in update_attrib()
649 if (pattrib->encrypt == _TKIP_) {/* if (psecuritypriv->dot11PrivacyAlgrthm == _TKIP_PRIVACY_) */ in xmitframe_addmic()
754 switch (pattrib->encrypt) { in xmitframe_swencrypt()
844 if (pattrib->encrypt) in rtw_make_wlanhdr()
[all …]
/drivers/staging/rtl8723au/core/
Drtw_recv.c300 if (prxattrib->encrypt == WLAN_CIPHER_SUITE_TKIP) { in recvframe_chkmic()
470 prxattrib->bdecrypted, prxattrib->encrypt); in decryptor()
472 if (prxattrib->encrypt > 0) { in decryptor()
481 switch (prxattrib->encrypt) { in decryptor()
497 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0))) { in decryptor()
499 switch (prxattrib->encrypt) { in decryptor()
513 } else if (prxattrib->bdecrypted == 1 && prxattrib->encrypt > 0 && in decryptor()
515 prxattrib->encrypt != WLAN_CIPHER_SUITE_TKIP)) { in decryptor()
1353 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, in validate_recv_data_frame()
1357 "pattrib->encrypt =%d\n", pattrib->encrypt); in validate_recv_data_frame()
[all …]
Drtw_xmit.c547 pattrib->encrypt = 0; in update_attrib()
558 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in update_attrib()
581 switch (pattrib->encrypt) { in update_attrib()
604 pattrib->encrypt); in update_attrib()
616 "update_attrib: encrypt =%d\n", pattrib->encrypt); in update_attrib()
618 if (pattrib->encrypt && !psecuritypriv->hw_decrypted) { in update_attrib()
622 pattrib->encrypt); in update_attrib()
668 if (pattrib->encrypt == WLAN_CIPHER_SUITE_TKIP) { in xmitframe_addmic()
814 switch (pattrib->encrypt) { in xmitframe_swencrypt()
917 if (pattrib->encrypt) in rtw_make_wlanhdr()
[all …]
Drtw_security.c170 if (pattrib->encrypt != WLAN_CIPHER_SUITE_WEP40 && in rtw_wep_encrypt23a()
171 pattrib->encrypt != WLAN_CIPHER_SUITE_WEP104) in rtw_wep_encrypt23a()
228 if (prxattrib->encrypt != WLAN_CIPHER_SUITE_WEP40 && in rtw_wep_decrypt23a()
229 prxattrib->encrypt != WLAN_CIPHER_SUITE_WEP104) in rtw_wep_decrypt23a()
619 if (pattrib->encrypt != WLAN_CIPHER_SUITE_TKIP) in rtw_tkip_encrypt23a()
727 if (prxattrib->encrypt != WLAN_CIPHER_SUITE_TKIP) in rtw_tkip_decrypt23a()
1301 if (pattrib->encrypt != WLAN_CIPHER_SUITE_CCMP) in rtw_aes_encrypt23a()
1577 if (prxattrib->encrypt != WLAN_CIPHER_SUITE_CCMP) in rtw_aes_decrypt23a()
/drivers/crypto/ux500/cryp/
Dcryp_core.c1127 .encrypt = cryp_blk_encrypt,
1152 .encrypt = cryp_blk_encrypt,
1177 .encrypt = cryp_blk_encrypt,
1203 .encrypt = cryp_blk_encrypt,
1229 .encrypt = cryp_blk_encrypt,
1255 .encrypt = cryp_blk_encrypt,
1280 .encrypt = cryp_blk_encrypt,
1305 .encrypt = cryp_blk_encrypt,
1330 .encrypt = cryp_blk_encrypt,
1355 .encrypt = cryp_blk_encrypt,

123