Lines Matching refs:rctx
26 struct ccp_des3_req_ctx *rctx = skcipher_request_ctx_dma(req); in ccp_des3_complete() local
32 memcpy(req->iv, rctx->iv, DES3_EDE_BLOCK_SIZE); in ccp_des3_complete()
65 struct ccp_des3_req_ctx *rctx = skcipher_request_ctx_dma(req); in ccp_des3_crypt() local
81 memcpy(rctx->iv, req->iv, DES3_EDE_BLOCK_SIZE); in ccp_des3_crypt()
82 iv_sg = &rctx->iv_sg; in ccp_des3_crypt()
84 sg_init_one(iv_sg, rctx->iv, iv_len); in ccp_des3_crypt()
87 memset(&rctx->cmd, 0, sizeof(rctx->cmd)); in ccp_des3_crypt()
88 INIT_LIST_HEAD(&rctx->cmd.entry); in ccp_des3_crypt()
89 rctx->cmd.engine = CCP_ENGINE_DES3; in ccp_des3_crypt()
90 rctx->cmd.u.des3.type = ctx->u.des3.type; in ccp_des3_crypt()
91 rctx->cmd.u.des3.mode = ctx->u.des3.mode; in ccp_des3_crypt()
92 rctx->cmd.u.des3.action = (encrypt) in ccp_des3_crypt()
95 rctx->cmd.u.des3.key = &ctx->u.des3.key_sg; in ccp_des3_crypt()
96 rctx->cmd.u.des3.key_len = ctx->u.des3.key_len; in ccp_des3_crypt()
97 rctx->cmd.u.des3.iv = iv_sg; in ccp_des3_crypt()
98 rctx->cmd.u.des3.iv_len = iv_len; in ccp_des3_crypt()
99 rctx->cmd.u.des3.src = req->src; in ccp_des3_crypt()
100 rctx->cmd.u.des3.src_len = req->cryptlen; in ccp_des3_crypt()
101 rctx->cmd.u.des3.dst = req->dst; in ccp_des3_crypt()
103 return ccp_crypto_enqueue_request(&req->base, &rctx->cmd); in ccp_des3_crypt()