Home
last modified time | relevance | path

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

12345678910

/linux-6.1.9/drivers/crypto/
Dpadlock-aes.c66 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()
155 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) || in aes_set_key()
310 padlock_reset_key(&ctx->cword.encrypt); in padlock_aes_encrypt()
311 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in padlock_aes_encrypt()
312 padlock_store_cword(&ctx->cword.encrypt); in padlock_aes_encrypt()
[all …]
Dixp4xx_crypto.c153 bool encrypt; member
163 int encrypt; member
179 struct ix_sa_dir encrypt; member
357 if (req_ctx->encrypt) { in finish_scattered_hmac()
397 if (req_ctx->encrypt) { in one_packet()
618 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
623 free_sa_dir(&ctx->encrypt); in init_tfm()
660 free_sa_dir(&ctx->encrypt); in exit_tfm()
734 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, in setup_auth() argument
745 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
[all …]
/linux-6.1.9/drivers/crypto/caam/
Dcaamalg.c1057 bool all_contig, bool encrypt) in init_aead_job() argument
1069 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec; in init_aead_job()
1070 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma; in init_aead_job()
1106 if (encrypt) in init_aead_job()
1118 bool all_contig, bool encrypt) in init_gcm_job() argument
1127 init_aead_job(req, edesc, all_contig, encrypt); in init_gcm_job()
1132 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job()
1148 bool encrypt) in init_chachapoly_job() argument
1156 init_aead_job(req, edesc, all_contig, encrypt); in init_chachapoly_job()
1182 bool all_contig, bool encrypt) in init_authenc_job() argument
[all …]
Dcaamalg_qi.c937 bool encrypt) in aead_edesc_alloc() argument
957 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in aead_edesc_alloc()
970 (encrypt ? authsize : 0); in aead_edesc_alloc()
989 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
1035 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
1131 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1156 static inline int aead_crypt(struct aead_request *req, bool encrypt) in aead_crypt() argument
1167 edesc = aead_edesc_alloc(req, encrypt); in aead_crypt()
1245 bool encrypt) in skcipher_edesc_alloc() argument
1261 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in skcipher_edesc_alloc()
[all …]
Dcaamalg_qi2.c350 bool encrypt) in aead_edesc_alloc() argument
381 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
426 (encrypt ? authsize : 0); in aead_edesc_alloc()
445 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
547 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1678 .encrypt = skcipher_encrypt,
1694 .encrypt = skcipher_encrypt,
1710 .encrypt = skcipher_encrypt,
1726 .encrypt = skcipher_encrypt,
1744 .encrypt = skcipher_encrypt,
[all …]
/linux-6.1.9/arch/sparc/crypto/
Ddes_glue.c95 static int __ecb_crypt(struct skcipher_request *req, bool encrypt) in __ecb_crypt() argument
107 if (encrypt) in __ecb_crypt()
136 static int __cbc_crypt(struct skcipher_request *req, bool encrypt) in __cbc_crypt() argument
148 if (encrypt) in __cbc_crypt()
153 if (encrypt) in __cbc_crypt()
244 static int __ecb3_crypt(struct skcipher_request *req, bool encrypt) in __ecb3_crypt() argument
257 if (encrypt) in __ecb3_crypt()
290 static int __cbc3_crypt(struct skcipher_request *req, bool encrypt) in __cbc3_crypt() argument
303 if (encrypt) in __cbc3_crypt()
309 if (encrypt) in __cbc3_crypt()
[all …]
Daes_glue.c36 void (*encrypt)(const u64 *key, const u32 *input, u32 *output); member
130 .encrypt = aes_sparc64_encrypt_128,
142 .encrypt = aes_sparc64_encrypt_192,
154 .encrypt = aes_sparc64_encrypt_256,
209 ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in crypto_aes_encrypt()
394 .encrypt = ecb_encrypt,
408 .encrypt = cbc_encrypt,
422 .encrypt = ctr_crypt,
/linux-6.1.9/net/ceph/
Dcrypto.c219 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument
227 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
231 if (encrypt) in ceph_aes_crypt()
248 if (encrypt) in ceph_aes_crypt()
255 encrypt ? "en" : "de", ret); in ceph_aes_crypt()
263 if (encrypt) { in ceph_aes_crypt()
283 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument
291 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
/linux-6.1.9/drivers/crypto/virtio/
Dvirtio_crypto_skcipher_algs.c38 bool encrypt; member
118 int encrypt) in virtio_crypto_alg_skcipher_init_session() argument
122 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT; in virtio_crypto_alg_skcipher_init_session()
183 if (encrypt) in virtio_crypto_alg_skcipher_init_session()
197 int encrypt) in virtio_crypto_alg_skcipher_close_session() argument
222 if (encrypt) in virtio_crypto_alg_skcipher_close_session()
374 if (vc_sym_req->encrypt) { in __virtio_crypto_skcipher_do_req()
428 if (!vc_sym_req->encrypt) in __virtio_crypto_skcipher_do_req()
489 vc_sym_req->encrypt = true; in virtio_crypto_skcipher_encrypt()
514 vc_sym_req->encrypt = false; in virtio_crypto_skcipher_decrypt()
[all …]
/linux-6.1.9/arch/x86/crypto/
Dsm4_aesni_avx2_glue.c71 .encrypt = sm4_avx_ecb_encrypt,
88 .encrypt = sm4_cbc_encrypt,
106 .encrypt = sm4_cfb_encrypt,
124 .encrypt = ctr_crypt,
/linux-6.1.9/drivers/crypto/ccree/
Dcc_cipher.c1016 .encrypt = cc_cipher_encrypt,
1034 .encrypt = cc_cipher_encrypt,
1052 .encrypt = cc_cipher_encrypt,
1070 .encrypt = cc_cipher_encrypt,
1088 .encrypt = cc_cipher_encrypt,
1106 .encrypt = cc_cipher_encrypt,
1124 .encrypt = cc_cipher_encrypt,
1146 .encrypt = cc_cipher_encrypt,
1163 .encrypt = cc_cipher_encrypt,
1180 .encrypt = cc_cipher_encrypt,
[all …]
/linux-6.1.9/drivers/net/wireless/intel/ipw2x00/
Dlibipw_tx.c249 int encrypt, host_encrypt, host_encrypt_msdu; in libipw_xmit() local
285 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && in libipw_xmit()
286 ieee->sec.encrypt; in libipw_xmit()
288 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
289 host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; in libipw_xmit()
291 if (!encrypt && ieee->ieee802_1x && in libipw_xmit()
419 txb->encrypted = encrypt; in libipw_xmit()
/linux-6.1.9/drivers/crypto/cavium/nitrox/
Dnitrox_skcipher.c401 .encrypt = nitrox_aes_encrypt,
420 .encrypt = nitrox_aes_encrypt,
439 .encrypt = nitrox_aes_encrypt,
458 .encrypt = nitrox_aes_encrypt,
479 .encrypt = nitrox_aes_encrypt,
496 .encrypt = nitrox_aes_encrypt,
515 .encrypt = nitrox_3des_encrypt,
534 .encrypt = nitrox_3des_encrypt,
/linux-6.1.9/lib/crypto/
Dchacha20poly1305.c213 int encrypt) in chacha20poly1305_crypt_sg_inplace() argument
262 if (!encrypt) in chacha20poly1305_crypt_sg_inplace()
292 if (encrypt) in chacha20poly1305_crypt_sg_inplace()
305 if (encrypt) { in chacha20poly1305_crypt_sg_inplace()
321 scatterwalk_map_and_copy(b.mac[encrypt], src, src_len, in chacha20poly1305_crypt_sg_inplace()
322 sizeof(b.mac[1]), encrypt); in chacha20poly1305_crypt_sg_inplace()
323 ret = encrypt || in chacha20poly1305_crypt_sg_inplace()
/linux-6.1.9/drivers/crypto/aspeed/
Daspeed-hace-crypto.c738 .encrypt = aspeed_aes_ecb_encrypt,
762 .encrypt = aspeed_aes_cbc_encrypt,
786 .encrypt = aspeed_aes_cfb_encrypt,
810 .encrypt = aspeed_aes_ofb_encrypt,
833 .encrypt = aspeed_des_ecb_encrypt,
857 .encrypt = aspeed_des_cbc_encrypt,
881 .encrypt = aspeed_des_cfb_encrypt,
905 .encrypt = aspeed_des_ofb_encrypt,
928 .encrypt = aspeed_tdes_ecb_encrypt,
952 .encrypt = aspeed_tdes_cbc_encrypt,
[all …]
/linux-6.1.9/drivers/crypto/inside-secure/
Dsafexcel_cipher.c1294 .encrypt = safexcel_encrypt,
1331 .encrypt = safexcel_encrypt,
1369 .encrypt = safexcel_encrypt,
1407 .encrypt = safexcel_encrypt,
1481 .encrypt = safexcel_encrypt,
1543 .encrypt = safexcel_encrypt,
1582 .encrypt = safexcel_encrypt,
1642 .encrypt = safexcel_encrypt,
1681 .encrypt = safexcel_encrypt,
1754 .encrypt = safexcel_aead_encrypt,
[all …]
/linux-6.1.9/arch/arm/crypto/
Dchacha-glue.c209 .encrypt = chacha_arm,
224 .encrypt = xchacha_arm,
239 .encrypt = xchacha_arm,
259 .encrypt = chacha_neon,
275 .encrypt = xchacha_neon,
291 .encrypt = xchacha_neon,
Daes-neonbs-glue.c337 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() argument
370 int reorder_last_tweak = !encrypt && tail > 0; in __xts_crypt()
397 if (encrypt) in __xts_crypt()
432 .encrypt = ecb_encrypt,
449 .encrypt = cbc_encrypt,
468 .encrypt = ctr_encrypt,
484 .encrypt = ctr_encrypt_sync,
500 .encrypt = xts_encrypt,
/linux-6.1.9/drivers/fpga/
Dsocfpga-a10.c170 bool encrypt, bool compress) in socfpga_a10_fpga_get_cd_ratio() argument
188 if (!compress && !encrypt) in socfpga_a10_fpga_get_cd_ratio()
209 int encrypt, compress; in socfpga_a10_fpga_set_cdratio() local
211 encrypt = socfpga_a10_fpga_encrypted((u32 *)buf, count / 4); in socfpga_a10_fpga_set_cdratio()
212 if (encrypt < 0) in socfpga_a10_fpga_set_cdratio()
219 cd_ratio = socfpga_a10_fpga_get_cd_ratio(cfg_width, encrypt, compress); in socfpga_a10_fpga_set_cdratio()
/linux-6.1.9/drivers/crypto/ccp/
Dccp-crypto-aes.c65 static int ccp_aes_crypt(struct skcipher_request *req, bool encrypt) in ccp_aes_crypt() argument
97 (encrypt) ? CCP_AES_ACTION_ENCRYPT : CCP_AES_ACTION_DECRYPT; in ccp_aes_crypt()
157 static int ccp_aes_rfc3686_crypt(struct skcipher_request *req, bool encrypt) in ccp_aes_rfc3686_crypt() argument
178 return ccp_aes_crypt(req, encrypt); in ccp_aes_rfc3686_crypt()
205 .encrypt = ccp_aes_encrypt,
223 .encrypt = ccp_aes_rfc3686_encrypt,
/linux-6.1.9/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c537 int ether_type = 0, encrypt; in ieee80211_xmit() local
576 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in ieee80211_xmit()
579 if (!encrypt && ieee->ieee802_1x && in ieee80211_xmit()
585 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in ieee80211_xmit()
603 if (encrypt) in ieee80211_xmit()
666 if (encrypt) in ieee80211_xmit()
689 txb->encrypted = encrypt; in ieee80211_xmit()
712 if (encrypt) { in ieee80211_xmit()
759 if (encrypt) in ieee80211_xmit()
/linux-6.1.9/crypto/
Dchacha_generic.c83 .encrypt = crypto_chacha_crypt,
98 .encrypt = crypto_xchacha_crypt,
113 .encrypt = crypto_xchacha_crypt,
/linux-6.1.9/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c120 if (req->c_req.encrypt) in sec_alloc_queue_id()
130 if (req->c_req.encrypt) in sec_free_queue_id()
916 if (!c_req->encrypt && ctx->alg_type == SEC_AEAD) { in GEN_SEC_SETKEY_FUNC()
1011 if (!c_req->encrypt && ctx->alg_type == SEC_AEAD) { in sec_cipher_map()
1298 if (c_req->encrypt) in sec_skcipher_bd_fill()
1346 if (c_req->encrypt) in sec_skcipher_bd_fill_v3()
1398 if (req->c_req.encrypt) in sec_update_iv()
1454 ctx->c_ctx.c_mode == SEC_CMODE_CTR) && req->c_req.encrypt) in sec_skcipher_callback()
1504 if (!c_req->encrypt) in set_aead_auth_iv()
1639 sec_auth_bd_fill_xcm(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()
[all …]
/linux-6.1.9/arch/mips/crypto/
Dchacha-glue.c94 .encrypt = chacha_mips,
109 .encrypt = xchacha_mips,
124 .encrypt = xchacha_mips,
/linux-6.1.9/arch/arm64/crypto/
Daes-neonbs-glue.c265 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() argument
326 if (encrypt) in __xts_crypt()
360 if (encrypt) in __xts_crypt()
393 .encrypt = ecb_encrypt,
408 .encrypt = cbc_encrypt,
424 .encrypt = ctr_encrypt,
439 .encrypt = xts_encrypt,

12345678910