Lines Matching refs:rctx
28 struct ccp_aes_req_ctx *rctx = skcipher_request_ctx_dma(req);
34 memcpy(req->iv, rctx->iv, AES_BLOCK_SIZE);
71 struct ccp_aes_req_ctx *rctx = skcipher_request_ctx_dma(req);
87 memcpy(rctx->iv, req->iv, AES_BLOCK_SIZE);
88 iv_sg = &rctx->iv_sg;
90 sg_init_one(iv_sg, rctx->iv, iv_len);
93 memset(&rctx->cmd, 0, sizeof(rctx->cmd));
94 INIT_LIST_HEAD(&rctx->cmd.entry);
95 rctx->cmd.engine = CCP_ENGINE_AES;
96 rctx->cmd.u.aes.type = ctx->u.aes.type;
97 rctx->cmd.u.aes.mode = ctx->u.aes.mode;
98 rctx->cmd.u.aes.action =
100 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg;
101 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len;
102 rctx->cmd.u.aes.iv = iv_sg;
103 rctx->cmd.u.aes.iv_len = iv_len;
104 rctx->cmd.u.aes.src = req->src;
105 rctx->cmd.u.aes.src_len = req->cryptlen;
106 rctx->cmd.u.aes.dst = req->dst;
108 return ccp_crypto_enqueue_request(&req->base, &rctx->cmd);
137 struct ccp_aes_req_ctx *rctx = skcipher_request_ctx_dma(req);
140 req->iv = rctx->rfc3686_info;
163 struct ccp_aes_req_ctx *rctx = skcipher_request_ctx_dma(req);
167 iv = rctx->rfc3686_iv;
177 rctx->rfc3686_info = req->iv;
178 req->iv = rctx->rfc3686_iv;