Lines Matching refs:encrypt

107 	if (req->c_req.encrypt)  in sec_alloc_queue_id()
117 if (req->c_req.encrypt) in sec_free_queue_id()
867 if (!c_req->encrypt && ctx->alg_type == SEC_AEAD) { in GEN_SEC_SETKEY_FUNC()
962 if (!c_req->encrypt && ctx->alg_type == SEC_AEAD) { in sec_cipher_map()
1249 if (c_req->encrypt) in sec_skcipher_bd_fill()
1297 if (c_req->encrypt) in sec_skcipher_bd_fill_v3()
1345 if (req->c_req.encrypt) in sec_update_iv()
1401 ctx->c_ctx.c_mode == SEC_CMODE_CTR) && req->c_req.encrypt) in sec_skcipher_callback()
1451 if (!c_req->encrypt) in set_aead_auth_iv()
1586 sec_auth_bd_fill_xcm(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()
1588 sec_auth_bd_fill_ex(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()
1641 sec_auth_bd_fill_xcm_v3(auth_ctx, req->c_req.encrypt, in sec_aead_bd_fill_v3()
1644 sec_auth_bd_fill_ex_v3(auth_ctx, req->c_req.encrypt, in sec_aead_bd_fill_v3()
1662 if (!err && c->c_ctx.c_mode == SEC_CMODE_CBC && c_req->encrypt) in sec_aead_callback()
1666 if (!err && c_req->encrypt) { in sec_aead_callback()
1734 if (!req->c_req.encrypt && (ctx->c_ctx.c_mode == SEC_CMODE_CBC || in sec_process()
1749 if (ctx->c_ctx.c_mode == SEC_CMODE_CBC && !req->c_req.encrypt) { in sec_process()
2032 struct skcipher_request *sreq, bool encrypt) in sec_skcipher_soft_crypto() argument
2052 if (encrypt) in sec_skcipher_soft_crypto()
2062 static int sec_skcipher_crypto(struct skcipher_request *sk_req, bool encrypt) in sec_skcipher_crypto() argument
2077 req->c_req.encrypt = encrypt; in sec_skcipher_crypto()
2085 return sec_skcipher_soft_crypto(ctx, sk_req, encrypt); in sec_skcipher_crypto()
2118 .encrypt = sec_skcipher_encrypt,\
2229 if (sreq->c_req.encrypt) in sec_aead_spec_check()
2257 if (unlikely(!req->cryptlen || (!sreq->c_req.encrypt && in sec_aead_param_check()
2285 bool encrypt) in sec_aead_soft_crypto() argument
2304 return encrypt ? crypto_aead_encrypt(subreq) : in sec_aead_soft_crypto()
2308 static int sec_aead_crypto(struct aead_request *a_req, bool encrypt) in sec_aead_crypto() argument
2317 req->c_req.encrypt = encrypt; in sec_aead_crypto()
2323 return sec_aead_soft_crypto(ctx, a_req, encrypt); in sec_aead_crypto()
2359 .encrypt = sec_aead_encrypt,\