Lines Matching refs:is_encrypt
351 rctx->is_encrypt && chunk_start) in handle_skcipher_req()
367 !rctx->is_encrypt) { in handle_skcipher_req()
402 ctx->spu_req_hdr_len, !(rctx->is_encrypt), in handle_skcipher_req()
1066 rctx->is_encrypt); in spu_aead_rx_sg_create()
1295 req_opts.is_inbound = !(rctx->is_encrypt); in handle_aead_req()
1328 if (rctx->is_encrypt) { in handle_aead_req()
1356 rctx->is_encrypt)) in handle_aead_req()
1386 if (!rctx->is_encrypt) in handle_aead_req()
1393 chunksize, rctx->is_encrypt, in handle_aead_req()
1403 if (!rctx->is_encrypt) in handle_aead_req()
1416 if (spu_req_incl_icv(ctx->cipher.mode, rctx->is_encrypt)) { in handle_aead_req()
1483 (ctx->cipher.mode == CIPHER_MODE_CCM)) && !rctx->is_encrypt) { in handle_aead_req()
1556 if (rctx->is_encrypt) { in handle_aead_resp()
1724 rctx->is_encrypt = encrypt; in skcipher_enqueue()
2519 if ((rctx->is_encrypt && (req->cryptlen == 0)) || in aead_need_fallback()
2520 (!rctx->is_encrypt && (req->cryptlen == ctx->digestsize))) { in aead_need_fallback()
2573 static int aead_do_fallback(struct aead_request *req, bool is_encrypt) in aead_do_fallback() argument
2581 flow_log("%s() enc:%u\n", __func__, is_encrypt); in aead_do_fallback()
2594 return is_encrypt ? crypto_aead_encrypt(req) : in aead_do_fallback()
2598 static int aead_enqueue(struct aead_request *req, bool is_encrypt) in aead_enqueue() argument
2605 flow_log("%s() enc:%u\n", __func__, is_encrypt); in aead_enqueue()
2617 rctx->is_encrypt = is_encrypt; in aead_enqueue()
2695 return aead_do_fallback(req, is_encrypt); in aead_enqueue()