Lines Matching defs:req
23 struct skcipher_request *req = skcipher_request_cast(async_req);
25 crypto_skcipher_reqtfm(req));
26 struct ccp_des3_req_ctx *rctx = skcipher_request_ctx_dma(req);
32 memcpy(req->iv, rctx->iv, DES3_EDE_BLOCK_SIZE);
61 static int ccp_des3_crypt(struct skcipher_request *req, bool encrypt)
63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
65 struct ccp_des3_req_ctx *rctx = skcipher_request_ctx_dma(req);
74 (req->cryptlen & (DES3_EDE_BLOCK_SIZE - 1)))
78 if (!req->iv)
81 memcpy(rctx->iv, req->iv, DES3_EDE_BLOCK_SIZE);
99 rctx->cmd.u.des3.src = req->src;
100 rctx->cmd.u.des3.src_len = req->cryptlen;
101 rctx->cmd.u.des3.dst = req->dst;
103 return ccp_crypto_enqueue_request(&req->base, &rctx->cmd);
106 static int ccp_des3_encrypt(struct skcipher_request *req)
108 return ccp_des3_crypt(req, true);
111 static int ccp_des3_decrypt(struct skcipher_request *req)
113 return ccp_des3_crypt(req, false);