/Linux-v4.19/drivers/crypto/ |
D | padlock-aes.c | 63 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() 306 padlock_reset_key(&ctx->cword.encrypt); in aes_encrypt() 307 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in aes_encrypt() 308 padlock_store_cword(&ctx->cword.encrypt); in aes_encrypt() [all …]
|
D | ixp4xx_crypto.c | 163 int encrypt; member 179 struct ix_sa_dir encrypt; member 352 if (req_ctx->encrypt) { in finish_scattered_hmac() 567 ret = init_sa_dir(&ctx->encrypt); in init_tfm() 572 free_sa_dir(&ctx->encrypt); in init_tfm() 592 free_sa_dir(&ctx->encrypt); in exit_tfm() 657 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument 668 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth() 693 if (!encrypt) in setup_auth() 732 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, in setup_cipher() argument [all …]
|
/Linux-v4.19/drivers/crypto/caam/ |
D | caamalg.c | 972 bool all_contig, bool encrypt) in init_aead_job() argument 984 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec; in init_aead_job() 985 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma; in init_aead_job() 1016 if (encrypt) in init_aead_job() 1028 bool all_contig, bool encrypt) in init_gcm_job() argument 1037 init_aead_job(req, edesc, all_contig, encrypt); in init_gcm_job() 1042 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job() 1058 bool all_contig, bool encrypt) in init_authenc_job() argument 1087 init_aead_job(req, edesc, all_contig, encrypt); in init_authenc_job() 1098 if (ivsize && ((is_rfc3686 && encrypt) || !alg->caam.geniv)) in init_authenc_job() [all …]
|
D | caamalg_qi.c | 887 bool encrypt) in aead_edesc_alloc() argument 905 enum optype op_type = encrypt ? ENCRYPT : DECRYPT; in aead_edesc_alloc() 921 (encrypt ? authsize : 0)); in aead_edesc_alloc() 925 (encrypt ? authsize : 0)); in aead_edesc_alloc() 949 (encrypt ? authsize : in aead_edesc_alloc() 954 (encrypt ? authsize : (-authsize))); in aead_edesc_alloc() 981 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc() 1063 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc() 1088 static inline int aead_crypt(struct aead_request *req, bool encrypt) in aead_crypt() argument 1099 edesc = aead_edesc_alloc(req, encrypt); in aead_crypt() [all …]
|
/Linux-v4.19/drivers/crypto/ccree/ |
D | cc_cipher.c | 809 .encrypt = cc_cipher_encrypt, 825 .encrypt = cc_cipher_encrypt, 842 .encrypt = cc_cipher_encrypt, 859 .encrypt = cc_cipher_encrypt, 875 .encrypt = cc_cipher_encrypt, 892 .encrypt = cc_cipher_encrypt, 909 .encrypt = cc_cipher_encrypt, 925 .encrypt = cc_cipher_encrypt, 942 .encrypt = cc_cipher_encrypt, 959 .encrypt = cc_cipher_encrypt, [all …]
|
/Linux-v4.19/net/ceph/ |
D | crypto.c | 216 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument 224 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt() 228 if (encrypt) in ceph_aes_crypt() 245 if (encrypt) in ceph_aes_crypt() 252 encrypt ? "en" : "de", ret); in ceph_aes_crypt() 260 if (encrypt) { in ceph_aes_crypt() 280 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument 288 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
|
/Linux-v4.19/include/crypto/ |
D | skcipher.h | 58 int (*encrypt)(struct skcipher_request *req); member 128 int (*encrypt)(struct skcipher_request *req); member 263 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_ivsize() 290 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_chunksize() 303 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_walksize() 443 return tfm->encrypt(req); in crypto_skcipher_encrypt()
|
/Linux-v4.19/drivers/crypto/cavium/nitrox/ |
D | nitrox_algs.c | 306 .encrypt = nitrox_aes_encrypt, 325 .encrypt = nitrox_aes_encrypt, 344 .encrypt = nitrox_aes_encrypt, 363 .encrypt = nitrox_aes_encrypt, 384 .encrypt = nitrox_aes_encrypt, 402 .encrypt = nitrox_aes_encrypt, 421 .encrypt = nitrox_3des_encrypt, 440 .encrypt = nitrox_3des_encrypt,
|
/Linux-v4.19/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_tx.c | 263 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()
|
/Linux-v4.19/drivers/crypto/virtio/ |
D | virtio_crypto_algs.c | 49 bool encrypt; member 131 int encrypt) in virtio_crypto_alg_ablkcipher_init_session() argument 136 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT; in virtio_crypto_alg_ablkcipher_init_session() 206 if (encrypt) in virtio_crypto_alg_ablkcipher_init_session() 221 int encrypt) in virtio_crypto_alg_ablkcipher_close_session() argument 240 if (encrypt) in virtio_crypto_alg_ablkcipher_close_session() 401 if (vc_sym_req->encrypt) { in __virtio_crypto_ablkcipher_do_req() 505 vc_sym_req->encrypt = true; in virtio_crypto_ablkcipher_encrypt() 525 vc_sym_req->encrypt = false; in virtio_crypto_ablkcipher_decrypt() 605 .encrypt = virtio_crypto_ablkcipher_encrypt,
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-crypto-aes.c | 70 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,
|
D | ccp-crypto-aes-xts.c | 109 unsigned int encrypt) in ccp_aes_xts_crypt() argument 164 ret = encrypt ? crypto_skcipher_encrypt(subreq) : in ccp_aes_xts_crypt() 177 rctx->cmd.u.xts.action = (encrypt) ? CCP_AES_ACTION_ENCRYPT in ccp_aes_xts_crypt() 258 alg->cra_ablkcipher.encrypt = ccp_aes_xts_encrypt; in ccp_register_aes_xts_alg()
|
/Linux-v4.19/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-v4.19/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-core.c | 85 .encrypt = sun4i_ss_cbc_aes_encrypt, 106 .encrypt = sun4i_ss_ecb_aes_encrypt, 127 .encrypt = sun4i_ss_cbc_des_encrypt, 148 .encrypt = sun4i_ss_ecb_des_encrypt, 168 .encrypt = sun4i_ss_cbc_des3_encrypt, 189 .encrypt = sun4i_ss_ecb_des3_encrypt,
|
/Linux-v4.19/arch/sparc/crypto/ |
D | aes_glue.c | 34 void (*encrypt)(const u64 *key, const u32 *input, u32 *output); member 128 .encrypt = aes_sparc64_encrypt_128, 140 .encrypt = aes_sparc64_encrypt_192, 152 .encrypt = aes_sparc64_encrypt_256, 203 ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in aes_encrypt() 417 .encrypt = ecb_encrypt, 437 .encrypt = cbc_encrypt, 457 .encrypt = ctr_crypt,
|
D | des_glue.c | 95 unsigned int nbytes, bool encrypt) in __ecb_crypt() argument 105 if (encrypt) in __ecb_crypt() 263 unsigned int nbytes, bool encrypt) in __ecb3_crypt() argument 274 if (encrypt) in __ecb3_crypt() 414 .encrypt = ecb_encrypt, 434 .encrypt = cbc_encrypt, 471 .encrypt = ecb3_encrypt, 491 .encrypt = cbc3_encrypt,
|
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_tx.c | 604 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() 736 if (encrypt) in ieee80211_xmit() 760 txb->encrypted = encrypt; in ieee80211_xmit() 785 if (encrypt){ in ieee80211_xmit() 835 if (encrypt) in ieee80211_xmit()
|
/Linux-v4.19/arch/x86/crypto/ |
D | serpent_avx2_glue.c | 200 .encrypt = ecb_encrypt, 214 .encrypt = cbc_encrypt, 229 .encrypt = ctr_crypt, 243 .encrypt = xts_encrypt,
|
D | camellia_aesni_avx2_glue.c | 215 .encrypt = ecb_encrypt, 229 .encrypt = cbc_encrypt, 244 .encrypt = ctr_crypt, 258 .encrypt = xts_encrypt,
|
D | serpent_avx_glue.c | 250 .encrypt = ecb_encrypt, 264 .encrypt = cbc_encrypt, 279 .encrypt = ctr_crypt, 293 .encrypt = xts_encrypt,
|
D | twofish_avx_glue.c | 253 .encrypt = ecb_encrypt, 267 .encrypt = cbc_encrypt, 282 .encrypt = ctr_crypt, 296 .encrypt = xts_encrypt,
|
D | cast6_avx_glue.c | 244 .encrypt = ecb_encrypt, 258 .encrypt = cbc_encrypt, 273 .encrypt = ctr_crypt, 287 .encrypt = xts_encrypt,
|
D | serpent_sse2_glue.c | 181 .encrypt = ecb_encrypt, 195 .encrypt = cbc_encrypt, 210 .encrypt = ctr_crypt,
|
/Linux-v4.19/drivers/crypto/hisilicon/sec/ |
D | sec_algs.c | 642 *sec_alg_alloc_and_fill_el(struct sec_bd_info *template, int encrypt, in sec_alg_alloc_and_fill_el() argument 660 if (encrypt) in sec_alg_alloc_and_fill_el() 720 bool encrypt) in sec_alg_skcipher_crypto() argument 784 encrypt ? 1 : 0, in sec_alg_skcipher_crypto() 955 .encrypt = sec_alg_skcipher_encrypt, 974 .encrypt = sec_alg_skcipher_encrypt, 993 .encrypt = sec_alg_skcipher_encrypt, 1012 .encrypt = sec_alg_skcipher_encrypt, 1032 .encrypt = sec_alg_skcipher_encrypt, 1051 .encrypt = sec_alg_skcipher_encrypt, [all …]
|
/Linux-v4.19/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 573 int ether_type = 0, encrypt; in rtllib_xmit_inter() local 660 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in rtllib_xmit_inter() 662 if (!encrypt && ieee->ieee802_1x && in rtllib_xmit_inter() 667 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in rtllib_xmit_inter() 682 if (encrypt) in rtllib_xmit_inter() 762 if (encrypt) { in rtllib_xmit_inter() 788 txb->encrypted = encrypt; in rtllib_xmit_inter() 809 if (encrypt) { in rtllib_xmit_inter() 861 if (encrypt) in rtllib_xmit_inter()
|