| /crypto/ |
| A D | authenc.c | 23 struct crypto_skcipher_spawn enc; member 29 struct crypto_skcipher *enc; member 87 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey() local 178 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_encrypt() local 285 struct crypto_skcipher *enc; in crypto_authenc_init_tfm() local 292 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_init_tfm() 293 err = PTR_ERR(enc); in crypto_authenc_init_tfm() 294 if (IS_ERR(enc)) in crypto_authenc_init_tfm() 298 ctx->enc = enc; in crypto_authenc_init_tfm() 365 enc = crypto_spawn_skcipher_alg_common(&ctx->enc); in crypto_authenc_create() [all …]
|
| A D | authencesn.c | 26 struct crypto_skcipher_spawn enc; member 32 struct crypto_skcipher *enc; member 61 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_setkey() local 166 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt() local 297 struct crypto_skcipher *enc; in crypto_authenc_esn_init_tfm() local 304 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_esn_init_tfm() 305 err = PTR_ERR(enc); in crypto_authenc_esn_init_tfm() 306 if (IS_ERR(enc)) in crypto_authenc_esn_init_tfm() 310 ctx->enc = enc; in crypto_authenc_esn_init_tfm() 336 crypto_free_skcipher(ctx->enc); in crypto_authenc_esn_exit_tfm() [all …]
|
| A D | krb5enc.c | 27 struct crypto_skcipher_spawn enc; member 33 struct crypto_skcipher *enc; member 104 struct crypto_skcipher *enc = ctx->enc; in krb5enc_setkey() local 145 struct crypto_skcipher *enc = ctx->enc; in krb5enc_dispatch_encrypt() local 350 struct crypto_skcipher *enc; in krb5enc_init_tfm() local 357 enc = crypto_spawn_skcipher(&ictx->enc); in krb5enc_init_tfm() 358 err = PTR_ERR(enc); in krb5enc_init_tfm() 359 if (IS_ERR(enc)) in krb5enc_init_tfm() 363 ctx->enc = enc; in krb5enc_init_tfm() 435 enc = crypto_spawn_skcipher_alg_common(&ictx->enc); in krb5enc_create() [all …]
|
| A D | tcrypt.c | 156 if (enc == ENCRYPT) in do_mult_aead_op() 268 if (enc == ENCRYPT) in test_mb_aead_speed() 391 if (!enc) { in test_mb_aead_speed() 462 if (enc) in test_aead_jiffies() 484 if (enc) in test_aead_cycles() 498 if (enc) in test_aead_cycles() 549 if (enc == ENCRYPT) in test_aead_speed() 644 if (!enc) { in test_aead_speed() 1230 if (enc) in test_acipher_jiffies() 1255 if (enc) in test_acipher_cycles() [all …]
|
| A D | xts.c | 83 bool enc) in xts_xor_tweak() argument 111 if (!enc) { in xts_xor_tweak() 117 if (enc && second_pass) in xts_xor_tweak() 133 static int xts_xor_tweak_pre(struct skcipher_request *req, bool enc) in xts_xor_tweak_pre() argument 135 return xts_xor_tweak(req, false, enc); in xts_xor_tweak_pre() 138 static int xts_xor_tweak_post(struct skcipher_request *req, bool enc) in xts_xor_tweak_post() argument 140 return xts_xor_tweak(req, true, enc); in xts_xor_tweak_post()
|
| A D | algif_aead.c | 51 return ctx->used >= ctx->aead_assoclen + (ctx->enc ? 0 : as); in aead_sufficient_data() 117 if (ctx->enc) in _aead_recvmsg() 191 if (ctx->enc) { in _aead_recvmsg() 267 err = ctx->enc ? crypto_aead_encrypt(&areq->cra_u.aead_req) : in _aead_recvmsg() 281 err = crypto_wait_req(ctx->enc ? in _aead_recvmsg()
|
| A D | cipher.c | 59 u8 *dst, const u8 *src, bool enc) in cipher_crypt_one() argument 64 enc ? cia->cia_encrypt : cia->cia_decrypt; in cipher_crypt_one()
|
| A D | adiantum.c | 93 bool enc; /* true if encrypting, false if decrypting */ member 290 if (!rctx->enc) in adiantum_finish() 338 static int adiantum_crypt(struct skcipher_request *req, bool enc) in adiantum_crypt() argument 353 rctx->enc = enc; in adiantum_crypt() 382 if (enc) in adiantum_crypt()
|
| A D | testmgr.c | 2107 input[1].iov_len = enc ? vec->plen : vec->clen; in test_aead_vec_cfg() 2109 vec->alen + (enc ? vec->plen : in test_aead_vec_cfg() 2111 vec->alen + (enc ? vec->clen : in test_aead_vec_cfg() 2124 enc ? vec->plen : vec->clen, iv); in test_aead_vec_cfg() 2205 enc ? vec->clen : vec->plen, in test_aead_vec_cfg() 2230 if (enc && vec->novrfy) in test_aead_vec() 2236 err = test_aead_vec_cfg(enc, vec, vec_name, in test_aead_vec() 2253 err = test_aead_vec_cfg(enc, vec, vec_name, in test_aead_vec() 2735 if (enc == ENCRYPT) in test_cipher() 2780 if (enc) in test_cipher() [all …]
|
| A D | essiv.c | 141 static int essiv_skcipher_crypt(struct skcipher_request *req, bool enc) in essiv_skcipher_crypt() argument 155 return enc ? crypto_skcipher_encrypt(subreq) : in essiv_skcipher_crypt() 183 static int essiv_aead_crypt(struct aead_request *req, bool enc) in essiv_aead_crypt() argument 200 if (req->src == req->dst || !enc) { in essiv_aead_crypt() 252 err = enc ? crypto_aead_encrypt(subreq) : in essiv_aead_crypt()
|
| A D | af_alg.c | 947 bool enc = false; in af_alg_sendmsg() local 959 enc = true; in af_alg_sendmsg() 962 enc = false; in af_alg_sendmsg() 986 ctx->enc = enc; in af_alg_sendmsg()
|
| A D | algif_skcipher.c | 181 err = ctx->enc ? in _skcipher_recvmsg() 197 err = crypto_wait_req(ctx->enc ? in _skcipher_recvmsg()
|
| A D | hctr2.c | 265 static int hctr2_crypt(struct skcipher_request *req, bool enc) in hctr2_crypt() argument 300 if (enc) in hctr2_crypt()
|
| A D | gcm.c | 920 static int crypto_rfc4543_crypt(struct aead_request *req, bool enc) in crypto_rfc4543_crypt() argument 932 (enc ? 0 : authsize); in crypto_rfc4543_crypt() 944 enc ? 0 : authsize, iv); in crypto_rfc4543_crypt() 948 return enc ? crypto_aead_encrypt(subreq) : crypto_aead_decrypt(subreq); in crypto_rfc4543_crypt()
|