/Linux-v5.4/drivers/crypto/ |
D | padlock-aes.c | 64 struct cword encrypt; member 135 ctx->cword.encrypt.rounds = 10 + (key_len - 16) / 4; in aes_set_key() 136 ctx->cword.decrypt.rounds = ctx->cword.encrypt.rounds; in aes_set_key() 137 ctx->cword.encrypt.ksize = (key_len - 16) / 8; in aes_set_key() 138 ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize; in aes_set_key() 145 ctx->cword.encrypt.keygen = 1; in aes_set_key() 158 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) || in aes_set_key() 307 padlock_reset_key(&ctx->cword.encrypt); in padlock_aes_encrypt() 308 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in padlock_aes_encrypt() 309 padlock_store_cword(&ctx->cword.encrypt); in padlock_aes_encrypt() [all …]
|
D | ixp4xx_crypto.c | 159 int encrypt; member 175 struct ix_sa_dir encrypt; member 349 if (req_ctx->encrypt) { in finish_scattered_hmac() 564 ret = init_sa_dir(&ctx->encrypt); in init_tfm() 569 free_sa_dir(&ctx->encrypt); in init_tfm() 589 free_sa_dir(&ctx->encrypt); in exit_tfm() 654 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument 665 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth() 690 if (!encrypt) in setup_auth() 729 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, in setup_cipher() argument [all …]
|
/Linux-v5.4/drivers/crypto/caam/ |
D | caamalg.c | 1090 bool all_contig, bool encrypt) in init_aead_job() argument 1102 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec; in init_aead_job() 1103 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma; in init_aead_job() 1139 if (encrypt) in init_aead_job() 1151 bool all_contig, bool encrypt) in init_gcm_job() argument 1160 init_aead_job(req, edesc, all_contig, encrypt); in init_gcm_job() 1165 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job() 1181 bool encrypt) in init_chachapoly_job() argument 1189 init_aead_job(req, edesc, all_contig, encrypt); in init_chachapoly_job() 1215 bool all_contig, bool encrypt) in init_authenc_job() argument [all …]
|
D | caamalg_qi.c | 939 bool encrypt) in aead_edesc_alloc() argument 959 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in aead_edesc_alloc() 972 (encrypt ? authsize : 0); in aead_edesc_alloc() 991 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc() 1037 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc() 1133 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc() 1158 static inline int aead_crypt(struct aead_request *req, bool encrypt) in aead_crypt() argument 1169 edesc = aead_edesc_alloc(req, encrypt); in aead_crypt() 1247 bool encrypt) in skcipher_edesc_alloc() argument 1263 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in skcipher_edesc_alloc() [all …]
|
D | caamalg_qi2.c | 348 bool encrypt) in aead_edesc_alloc() argument 379 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc() 424 (encrypt ? authsize : 0); in aead_edesc_alloc() 443 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc() 545 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc() 1608 .encrypt = skcipher_encrypt, 1624 .encrypt = skcipher_encrypt, 1640 .encrypt = skcipher_encrypt, 1656 .encrypt = skcipher_encrypt, 1674 .encrypt = skcipher_encrypt, [all …]
|
/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_cipher.c | 940 .encrypt = cc_cipher_encrypt, 958 .encrypt = cc_cipher_encrypt, 977 .encrypt = cc_cipher_encrypt, 996 .encrypt = cc_cipher_encrypt, 1014 .encrypt = cc_cipher_encrypt, 1033 .encrypt = cc_cipher_encrypt, 1052 .encrypt = cc_cipher_encrypt, 1070 .encrypt = cc_cipher_encrypt, 1089 .encrypt = cc_cipher_encrypt, 1108 .encrypt = cc_cipher_encrypt, [all …]
|
/Linux-v5.4/net/ceph/ |
D | crypto.c | 218 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.4/drivers/crypto/cavium/nitrox/ |
D | nitrox_skcipher.c | 342 .encrypt = nitrox_aes_encrypt, 361 .encrypt = nitrox_aes_encrypt, 380 .encrypt = nitrox_aes_encrypt, 399 .encrypt = nitrox_aes_encrypt, 420 .encrypt = nitrox_aes_encrypt, 438 .encrypt = nitrox_aes_encrypt, 457 .encrypt = nitrox_3des_encrypt, 476 .encrypt = nitrox_3des_encrypt,
|
/Linux-v5.4/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_tx.c | 249 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.4/drivers/crypto/virtio/ |
D | virtio_crypto_algs.c | 37 bool encrypt; member 119 int encrypt) in virtio_crypto_alg_ablkcipher_init_session() argument 124 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT; in virtio_crypto_alg_ablkcipher_init_session() 192 if (encrypt) in virtio_crypto_alg_ablkcipher_init_session() 207 int encrypt) in virtio_crypto_alg_ablkcipher_close_session() argument 226 if (encrypt) in virtio_crypto_alg_ablkcipher_close_session() 387 if (vc_sym_req->encrypt) { in __virtio_crypto_ablkcipher_do_req() 491 vc_sym_req->encrypt = true; in virtio_crypto_ablkcipher_encrypt() 511 vc_sym_req->encrypt = false; in virtio_crypto_ablkcipher_decrypt() 591 .encrypt = virtio_crypto_ablkcipher_encrypt,
|
/Linux-v5.4/drivers/crypto/ccp/ |
D | ccp-crypto-aes.c | 67 static int ccp_aes_crypt(struct ablkcipher_request *req, bool encrypt) in ccp_aes_crypt() argument 99 (encrypt) ? CCP_AES_ACTION_ENCRYPT : CCP_AES_ACTION_DECRYPT; in ccp_aes_crypt() 165 static int ccp_aes_rfc3686_crypt(struct ablkcipher_request *req, bool encrypt) in ccp_aes_rfc3686_crypt() argument 185 return ccp_aes_crypt(req, encrypt); in ccp_aes_rfc3686_crypt() 228 .encrypt = ccp_aes_encrypt, 249 .encrypt = ccp_aes_rfc3686_encrypt,
|
/Linux-v5.4/drivers/fpga/ |
D | socfpga-a10.c | 170 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.4/include/crypto/internal/ |
D | skcipher.h | 189 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_min_keysize() 202 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_max_keysize() 215 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_chunksize() 228 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_walksize()
|
/Linux-v5.4/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_tx.c | 538 int ether_type = 0, encrypt; in ieee80211_xmit() local 578 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in ieee80211_xmit() 581 if (!encrypt && ieee->ieee802_1x && in ieee80211_xmit() 587 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in ieee80211_xmit() 605 if (encrypt) in ieee80211_xmit() 668 if (encrypt) in ieee80211_xmit() 692 txb->encrypted = encrypt; in ieee80211_xmit() 715 if (encrypt) { in ieee80211_xmit() 762 if (encrypt) in ieee80211_xmit()
|
/Linux-v5.4/arch/sparc/crypto/ |
D | des_glue.c | 92 unsigned int nbytes, bool encrypt) in __ecb_crypt() argument 102 if (encrypt) in __ecb_crypt() 256 unsigned int nbytes, bool encrypt) in __ecb3_crypt() argument 267 if (encrypt) in __ecb3_crypt() 407 .encrypt = ecb_encrypt, 427 .encrypt = cbc_encrypt, 464 .encrypt = ecb3_encrypt, 484 .encrypt = cbc3_encrypt,
|
D | aes_glue.c | 35 void (*encrypt)(const u64 *key, const u32 *input, u32 *output); member 129 .encrypt = aes_sparc64_encrypt_128, 141 .encrypt = aes_sparc64_encrypt_192, 153 .encrypt = aes_sparc64_encrypt_256, 204 ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in crypto_aes_encrypt() 418 .encrypt = ecb_encrypt, 438 .encrypt = cbc_encrypt, 458 .encrypt = ctr_crypt,
|
/Linux-v5.4/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-core.c | 81 .encrypt = sun4i_ss_cbc_aes_encrypt, 103 .encrypt = sun4i_ss_ecb_aes_encrypt, 124 .encrypt = sun4i_ss_cbc_des_encrypt, 146 .encrypt = sun4i_ss_ecb_des_encrypt, 167 .encrypt = sun4i_ss_cbc_des3_encrypt, 189 .encrypt = sun4i_ss_ecb_des3_encrypt,
|
/Linux-v5.4/arch/x86/crypto/ |
D | serpent_avx2_glue.c | 195 .encrypt = ecb_encrypt, 209 .encrypt = cbc_encrypt, 224 .encrypt = ctr_crypt, 238 .encrypt = xts_encrypt,
|
D | camellia_aesni_avx2_glue.c | 210 .encrypt = ecb_encrypt, 224 .encrypt = cbc_encrypt, 239 .encrypt = ctr_crypt, 253 .encrypt = xts_encrypt,
|
D | cast6_avx_glue.c | 229 .encrypt = ecb_encrypt, 243 .encrypt = cbc_encrypt, 258 .encrypt = ctr_crypt, 272 .encrypt = xts_encrypt,
|
D | serpent_avx_glue.c | 235 .encrypt = ecb_encrypt, 249 .encrypt = cbc_encrypt, 264 .encrypt = ctr_crypt, 278 .encrypt = xts_encrypt,
|
D | twofish_avx_glue.c | 238 .encrypt = ecb_encrypt, 252 .encrypt = cbc_encrypt, 267 .encrypt = ctr_crypt, 281 .encrypt = xts_encrypt,
|
/Linux-v5.4/arch/arm/crypto/ |
D | aes-neonbs-glue.c | 329 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() argument 362 int reorder_last_tweak = !encrypt && tail > 0; in __xts_crypt() 389 if (encrypt) in __xts_crypt() 424 .encrypt = ecb_encrypt, 442 .encrypt = cbc_encrypt, 459 .encrypt = ctr_encrypt, 475 .encrypt = ctr_encrypt_sync, 493 .encrypt = xts_encrypt,
|
/Linux-v5.4/drivers/crypto/hisilicon/sec/ |
D | sec_algs.c | 629 *sec_alg_alloc_and_fill_el(struct sec_bd_info *template, int encrypt, in sec_alg_alloc_and_fill_el() argument 647 if (encrypt) in sec_alg_alloc_and_fill_el() 707 bool encrypt) in sec_alg_skcipher_crypto() argument 772 encrypt ? 1 : 0, in sec_alg_skcipher_crypto() 945 .encrypt = sec_alg_skcipher_encrypt, 964 .encrypt = sec_alg_skcipher_encrypt, 983 .encrypt = sec_alg_skcipher_encrypt, 1002 .encrypt = sec_alg_skcipher_encrypt, 1022 .encrypt = sec_alg_skcipher_encrypt, 1041 .encrypt = sec_alg_skcipher_encrypt, [all …]
|
/Linux-v5.4/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 557 int ether_type = 0, encrypt; in rtllib_xmit_inter() local 644 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in rtllib_xmit_inter() 646 if (!encrypt && ieee->ieee802_1x && in rtllib_xmit_inter() 651 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in rtllib_xmit_inter() 666 if (encrypt) in rtllib_xmit_inter() 746 if (encrypt) { in rtllib_xmit_inter() 772 txb->encrypted = encrypt; in rtllib_xmit_inter() 793 if (encrypt) { in rtllib_xmit_inter() 845 if (encrypt) in rtllib_xmit_inter()
|