• Home
  • Raw
  • Download

Lines Matching refs:rctx

107 	struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq);  in sl3516_ce_cipher_fallback()  local
115 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sl3516_ce_cipher_fallback()
116 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sl3516_ce_cipher_fallback()
118 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sl3516_ce_cipher_fallback()
120 if (rctx->op_dir == CE_DECRYPTION) in sl3516_ce_cipher_fallback()
121 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback()
123 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback()
132 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sl3516_ce_cipher() local
148 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm), in sl3516_ce_cipher()
185 rctx->t_src[i].addr = sg_dma_address(sg); in sl3516_ce_cipher()
187 rctx->t_src[i].len = todo; in sl3516_ce_cipher()
189 areq->cryptlen, i, rctx->t_src[i].len, sg->offset, todo); in sl3516_ce_cipher()
207 rctx->t_dst[i].addr = sg_dma_address(sg); in sl3516_ce_cipher()
209 rctx->t_dst[i].len = todo; in sl3516_ce_cipher()
211 areq->cryptlen, i, rctx->t_dst[i].len, sg->offset, todo); in sl3516_ce_cipher()
226 rctx->pctrllen = sizeof(struct pkt_control_ecb); in sl3516_ce_cipher()
229 rctx->tqflag = TQ0_TYPE_CTRL; in sl3516_ce_cipher()
230 rctx->tqflag |= TQ1_CIPHER; in sl3516_ce_cipher()
231 ecb->control.op_mode = rctx->op_dir; in sl3516_ce_cipher()
236 rctx->h = &ecb->cipher; in sl3516_ce_cipher()
238 rctx->tqflag |= TQ4_KEY0; in sl3516_ce_cipher()
239 rctx->tqflag |= TQ5_KEY4; in sl3516_ce_cipher()
240 rctx->tqflag |= TQ6_KEY6; in sl3516_ce_cipher()
245 rctx->nr_sgs = nr_sgs; in sl3516_ce_cipher()
246 rctx->nr_sgd = nr_sgd; in sl3516_ce_cipher()
247 err = sl3516_ce_run_task(ce, rctx, crypto_tfm_alg_name(areq->base.tfm)); in sl3516_ce_cipher()
282 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sl3516_ce_skdecrypt() local
285 memset(rctx, 0, sizeof(struct sl3516_ce_cipher_req_ctx)); in sl3516_ce_skdecrypt()
286 rctx->op_dir = CE_DECRYPTION; in sl3516_ce_skdecrypt()
300 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sl3516_ce_skencrypt() local
303 memset(rctx, 0, sizeof(struct sl3516_ce_cipher_req_ctx)); in sl3516_ce_skencrypt()
304 rctx->op_dir = CE_ENCRYPTION; in sl3516_ce_skencrypt()