Home
last modified time | relevance | path

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

12345678910

/linux-6.12.1/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 …]
/linux-6.12.1/drivers/crypto/caam/
Dcaamalg.c1073 bool all_contig, bool encrypt) in init_aead_job() argument
1085 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec; in init_aead_job()
1086 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma; in init_aead_job()
1122 if (encrypt) in init_aead_job()
1134 bool all_contig, bool encrypt) in init_gcm_job() argument
1143 init_aead_job(req, edesc, all_contig, encrypt); in init_gcm_job()
1148 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job()
1164 bool encrypt) in init_chachapoly_job() argument
1172 init_aead_job(req, edesc, all_contig, encrypt); in init_chachapoly_job()
1198 bool all_contig, bool encrypt) in init_authenc_job() argument
[all …]
Dcaamalg_qi.c942 bool encrypt) in aead_edesc_alloc() argument
962 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in aead_edesc_alloc()
975 (encrypt ? authsize : 0); in aead_edesc_alloc()
994 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
1040 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
1136 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1161 static inline int aead_crypt(struct aead_request *req, bool encrypt) in aead_crypt() argument
1172 edesc = aead_edesc_alloc(req, encrypt); in aead_crypt()
1255 bool encrypt) in skcipher_edesc_alloc() argument
1272 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in skcipher_edesc_alloc()
[all …]
Dcaamalg_qi2.c352 bool encrypt) in aead_edesc_alloc() argument
383 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
428 (encrypt ? authsize : 0); in aead_edesc_alloc()
447 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
549 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1683 .encrypt = skcipher_encrypt,
1699 .encrypt = skcipher_encrypt,
1715 .encrypt = skcipher_encrypt,
1731 .encrypt = skcipher_encrypt,
1749 .encrypt = skcipher_encrypt,
[all …]
/linux-6.12.1/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.12.1/drivers/crypto/intel/ixp4xx/
Dixp4xx_crypto.c153 bool encrypt; member
163 int encrypt; member
179 struct ix_sa_dir encrypt; member
359 if (req_ctx->encrypt) { in finish_scattered_hmac()
399 if (req_ctx->encrypt) { in one_packet()
620 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
625 free_sa_dir(&ctx->encrypt); in init_tfm()
662 free_sa_dir(&ctx->encrypt); in exit_tfm()
736 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, in setup_auth() argument
747 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
[all …]
/linux-6.12.1/drivers/crypto/tegra/
Dtegra-se-aes.c35 bool encrypt; member
58 bool encrypt; member
105 if (rctx->encrypt) in tegra_cbc_iv_copyback()
126 static int tegra234_aes_crypto_cfg(u32 alg, bool encrypt) in tegra234_aes_crypto_cfg() argument
135 if (encrypt) in tegra234_aes_crypto_cfg()
140 if (encrypt) in tegra234_aes_crypto_cfg()
145 if (encrypt) in tegra234_aes_crypto_cfg()
162 static int tegra234_aes_cfg(u32 alg, bool encrypt) in tegra234_aes_cfg() argument
169 if (encrypt) in tegra234_aes_cfg()
175 if (encrypt) in tegra234_aes_cfg()
[all …]
/linux-6.12.1/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.12.1/drivers/crypto/virtio/
Dvirtio_crypto_skcipher_algs.c35 bool encrypt; member
115 int encrypt) in virtio_crypto_alg_skcipher_init_session() argument
119 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT; in virtio_crypto_alg_skcipher_init_session()
180 if (encrypt) in virtio_crypto_alg_skcipher_init_session()
194 int encrypt) in virtio_crypto_alg_skcipher_close_session() argument
219 if (encrypt) in virtio_crypto_alg_skcipher_close_session()
371 if (vc_sym_req->encrypt) { in __virtio_crypto_skcipher_do_req()
425 if (!vc_sym_req->encrypt) in __virtio_crypto_skcipher_do_req()
486 vc_sym_req->encrypt = true; in virtio_crypto_skcipher_encrypt()
511 vc_sym_req->encrypt = false; in virtio_crypto_skcipher_decrypt()
[all …]
/linux-6.12.1/arch/arm64/crypto/
Dsm4-ce-glue.c155 struct sm4_ctx *ctx, bool encrypt) in sm4_cbc_crypt() argument
174 if (encrypt) in sm4_cbc_crypt()
206 static int sm4_cbc_cts_crypt(struct skcipher_request *req, bool encrypt) in sm4_cbc_cts_crypt() argument
222 return sm4_cbc_crypt(req, ctx, encrypt); in sm4_cbc_cts_crypt()
235 err = sm4_cbc_crypt(&subreq, ctx, encrypt); in sm4_cbc_cts_crypt()
256 if (encrypt) in sm4_cbc_cts_crypt()
321 static int sm4_xts_crypt(struct skcipher_request *req, bool encrypt) in sm4_xts_crypt() argument
366 if (encrypt) in sm4_xts_crypt()
402 if (encrypt) in sm4_xts_crypt()
439 .encrypt = sm4_ecb_encrypt,
[all …]
/linux-6.12.1/drivers/crypto/ccree/
Dcc_cipher.c1010 .encrypt = cc_cipher_encrypt,
1028 .encrypt = cc_cipher_encrypt,
1046 .encrypt = cc_cipher_encrypt,
1064 .encrypt = cc_cipher_encrypt,
1082 .encrypt = cc_cipher_encrypt,
1100 .encrypt = cc_cipher_encrypt,
1122 .encrypt = cc_cipher_encrypt,
1139 .encrypt = cc_cipher_encrypt,
1156 .encrypt = cc_cipher_encrypt,
1173 .encrypt = cc_cipher_encrypt,
[all …]
/linux-6.12.1/drivers/net/wireless/intel/ipw2x00/
Dlibipw_tx.c248 int encrypt, host_encrypt, host_encrypt_msdu; in libipw_xmit() local
284 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && in libipw_xmit()
285 ieee->sec.encrypt; in libipw_xmit()
287 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
288 host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; in libipw_xmit()
290 if (!encrypt && ieee->ieee802_1x && in libipw_xmit()
418 txb->encrypted = encrypt; in libipw_xmit()
/linux-6.12.1/arch/x86/crypto/
Dsm4_aesni_avx2_glue.c63 .encrypt = sm4_avx_ecb_encrypt,
80 .encrypt = sm4_cbc_encrypt,
98 .encrypt = ctr_crypt,
/linux-6.12.1/drivers/crypto/inside-secure/
Dsafexcel_cipher.c1296 .encrypt = safexcel_encrypt,
1333 .encrypt = safexcel_encrypt,
1407 .encrypt = safexcel_encrypt,
1469 .encrypt = safexcel_encrypt,
1508 .encrypt = safexcel_encrypt,
1568 .encrypt = safexcel_encrypt,
1607 .encrypt = safexcel_encrypt,
1680 .encrypt = safexcel_aead_encrypt,
1716 .encrypt = safexcel_aead_encrypt,
1752 .encrypt = safexcel_aead_encrypt,
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.c293 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() argument
327 int reorder_last_tweak = !encrypt && tail > 0; in __xts_crypt()
354 if (encrypt) in __xts_crypt()
389 .encrypt = ecb_encrypt,
405 .encrypt = cbc_encrypt,
422 .encrypt = ctr_encrypt,
438 .encrypt = ctr_encrypt_sync,
454 .encrypt = xts_encrypt,
/linux-6.12.1/drivers/crypto/ccp/
Dccp-crypto-aes.c66 static int ccp_aes_crypt(struct skcipher_request *req, bool encrypt) in ccp_aes_crypt() argument
98 (encrypt) ? CCP_AES_ACTION_ENCRYPT : CCP_AES_ACTION_DECRYPT; in ccp_aes_crypt()
158 static int ccp_aes_rfc3686_crypt(struct skcipher_request *req, bool encrypt) in ccp_aes_rfc3686_crypt() argument
179 return ccp_aes_crypt(req, encrypt); in ccp_aes_rfc3686_crypt()
206 .encrypt = ccp_aes_encrypt,
224 .encrypt = ccp_aes_rfc3686_encrypt,
/linux-6.12.1/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c123 if (req->c_req.encrypt) in sec_alloc_queue_id()
133 if (req->c_req.encrypt) in sec_free_queue_id()
913 if (!c_req->encrypt && ctx->alg_type == SEC_AEAD) { in GEN_SEC_SETKEY_FUNC()
1008 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()
1503 if (!c_req->encrypt) in set_aead_auth_iv()
1638 sec_auth_bd_fill_xcm(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()
[all …]
/linux-6.12.1/crypto/
Dchacha_generic.c83 .encrypt = crypto_chacha_crypt,
98 .encrypt = crypto_xchacha_crypt,
113 .encrypt = crypto_xchacha_crypt,
/linux-6.12.1/drivers/crypto/cavium/nitrox/
Dnitrox_skcipher.c399 .encrypt = nitrox_aes_encrypt,
418 .encrypt = nitrox_aes_encrypt,
437 .encrypt = nitrox_aes_encrypt,
458 .encrypt = nitrox_aes_encrypt,
475 .encrypt = nitrox_aes_encrypt,
494 .encrypt = nitrox_3des_encrypt,
513 .encrypt = nitrox_3des_encrypt,
/linux-6.12.1/drivers/staging/rtl8192e/
Drtllib_tx.c528 int ether_type = 0, encrypt; in rtllib_xmit_inter() local
611 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && crypt && crypt->ops; in rtllib_xmit_inter()
612 if (!encrypt && ieee->ieee802_1x && in rtllib_xmit_inter()
617 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in rtllib_xmit_inter()
632 if (encrypt) in rtllib_xmit_inter()
700 if (encrypt) { in rtllib_xmit_inter()
726 txb->encrypted = encrypt; in rtllib_xmit_inter()
747 if (encrypt) { in rtllib_xmit_inter()
799 if (encrypt) in rtllib_xmit_inter()
/linux-6.12.1/arch/mips/crypto/
Dchacha-glue.c94 .encrypt = chacha_mips,
109 .encrypt = xchacha_mips,
124 .encrypt = xchacha_mips,

12345678910