Home
last modified time | relevance | path

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

123456789

/Linux-v5.10/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.c160 int encrypt; member
176 struct ix_sa_dir encrypt; member
350 if (req_ctx->encrypt) { in finish_scattered_hmac()
565 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
570 free_sa_dir(&ctx->encrypt); in init_tfm()
590 free_sa_dir(&ctx->encrypt); in exit_tfm()
660 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument
671 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
696 if (!encrypt) in setup_auth()
735 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, in setup_cipher() argument
[all …]
/Linux-v5.10/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.c347 bool encrypt) in aead_edesc_alloc() argument
378 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
423 (encrypt ? authsize : 0); in aead_edesc_alloc()
442 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
544 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1674 .encrypt = skcipher_encrypt,
1690 .encrypt = skcipher_encrypt,
1706 .encrypt = skcipher_encrypt,
1722 .encrypt = skcipher_encrypt,
1740 .encrypt = skcipher_encrypt,
[all …]
/Linux-v5.10/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-v5.10/net/ceph/
Dcrypto.c218 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument
226 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
230 if (encrypt) in ceph_aes_crypt()
247 if (encrypt) in ceph_aes_crypt()
254 encrypt ? "en" : "de", ret); in ceph_aes_crypt()
262 if (encrypt) { in ceph_aes_crypt()
282 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument
290 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
/Linux-v5.10/drivers/crypto/virtio/
Dvirtio_crypto_algs.c38 bool encrypt; member
118 int encrypt) in virtio_crypto_alg_skcipher_init_session() argument
123 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT; in virtio_crypto_alg_skcipher_init_session()
191 if (encrypt) in virtio_crypto_alg_skcipher_init_session()
206 int encrypt) in virtio_crypto_alg_skcipher_close_session() argument
225 if (encrypt) in virtio_crypto_alg_skcipher_close_session()
387 if (vc_sym_req->encrypt) { in __virtio_crypto_skcipher_do_req()
441 if (!vc_sym_req->encrypt) in __virtio_crypto_skcipher_do_req()
502 vc_sym_req->encrypt = true; in virtio_crypto_skcipher_encrypt()
527 vc_sym_req->encrypt = false; in virtio_crypto_skcipher_decrypt()
[all …]
/Linux-v5.10/drivers/crypto/ccree/
Dcc_cipher.c1013 .encrypt = cc_cipher_encrypt,
1031 .encrypt = cc_cipher_encrypt,
1049 .encrypt = cc_cipher_encrypt,
1067 .encrypt = cc_cipher_encrypt,
1085 .encrypt = cc_cipher_encrypt,
1103 .encrypt = cc_cipher_encrypt,
1121 .encrypt = cc_cipher_encrypt,
1143 .encrypt = cc_cipher_encrypt,
1160 .encrypt = cc_cipher_encrypt,
1177 .encrypt = cc_cipher_encrypt,
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/drivers/crypto/inside-secure/
Dsafexcel_cipher.c1276 .encrypt = safexcel_encrypt,
1313 .encrypt = safexcel_encrypt,
1351 .encrypt = safexcel_encrypt,
1389 .encrypt = safexcel_encrypt,
1463 .encrypt = safexcel_encrypt,
1525 .encrypt = safexcel_encrypt,
1564 .encrypt = safexcel_encrypt,
1624 .encrypt = safexcel_encrypt,
1663 .encrypt = safexcel_encrypt,
1736 .encrypt = safexcel_aead_encrypt,
[all …]
/Linux-v5.10/arch/arm/crypto/
Dchacha-glue.c208 .encrypt = chacha_arm,
223 .encrypt = xchacha_arm,
238 .encrypt = xchacha_arm,
258 .encrypt = chacha_neon,
274 .encrypt = xchacha_neon,
290 .encrypt = xchacha_neon,
Daes-neonbs-glue.c340 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() argument
373 int reorder_last_tweak = !encrypt && tail > 0; in __xts_crypt()
400 if (encrypt) in __xts_crypt()
435 .encrypt = ecb_encrypt,
451 .encrypt = cbc_encrypt,
470 .encrypt = ctr_encrypt,
486 .encrypt = ctr_encrypt_sync,
502 .encrypt = xts_encrypt,
/Linux-v5.10/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-v5.10/drivers/crypto/ccp/
Dccp-crypto-aes.c65 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()
160 static int ccp_aes_rfc3686_crypt(struct skcipher_request *req, bool encrypt) in ccp_aes_rfc3686_crypt() argument
181 return ccp_aes_crypt(req, encrypt); in ccp_aes_rfc3686_crypt()
208 .encrypt = ccp_aes_encrypt,
226 .encrypt = ccp_aes_rfc3686_encrypt,
/Linux-v5.10/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-v5.10/crypto/
Dchacha_generic.c83 .encrypt = crypto_chacha_crypt,
98 .encrypt = crypto_xchacha_crypt,
113 .encrypt = crypto_xchacha_crypt,
/Linux-v5.10/arch/x86/crypto/
Dserpent_avx2_glue.c192 .encrypt = ecb_encrypt,
206 .encrypt = cbc_encrypt,
221 .encrypt = ctr_crypt,
235 .encrypt = xts_encrypt,
Dcamellia_aesni_avx2_glue.c203 .encrypt = ecb_encrypt,
217 .encrypt = cbc_encrypt,
232 .encrypt = ctr_crypt,
246 .encrypt = xts_encrypt,
Dtwofish_avx_glue.c227 .encrypt = ecb_encrypt,
241 .encrypt = cbc_encrypt,
256 .encrypt = ctr_crypt,
270 .encrypt = xts_encrypt,
/Linux-v5.10/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-core.c92 .encrypt = sun4i_ss_cbc_aes_encrypt,
114 .encrypt = sun4i_ss_ecb_aes_encrypt,
135 .encrypt = sun4i_ss_cbc_des_encrypt,
157 .encrypt = sun4i_ss_ecb_des_encrypt,
178 .encrypt = sun4i_ss_cbc_des3_encrypt,
200 .encrypt = sun4i_ss_ecb_des3_encrypt,
/Linux-v5.10/arch/mips/crypto/
Dchacha-glue.c94 .encrypt = chacha_mips,
109 .encrypt = xchacha_mips,
124 .encrypt = xchacha_mips,

123456789