Lines Matching refs:pctx

170 	struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
173 struct ahash_request *ahreq = &pctx->ahreq;
176 u8 *odata = pctx->odata;
177 u8 *idata = pctx->idata;
199 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL);
220 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen);
230 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
231 u8 *odata = pctx->odata;
251 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
260 pctx->flags = aead_request_flags(req);
267 sg_init_table(pctx->src, 3);
268 sg_set_buf(pctx->src, tag, 16);
269 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen);
270 if (sg != pctx->src + 1)
271 sg_chain(pctx->src, 2, sg);
274 sg_init_table(pctx->dst, 3);
275 sg_set_buf(pctx->dst, tag, 16);
276 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen);
277 if (sg != pctx->dst + 1)
278 sg_chain(pctx->dst, 2, sg);
288 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
289 struct skcipher_request *skreq = &pctx->skreq;
292 u8 *odata = pctx->odata;
300 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen);
304 dst = pctx->src;
306 dst = pctx->dst;
309 skcipher_request_set_callback(skreq, pctx->flags,
311 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv);
326 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
332 pctx->flags = 0;
334 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst);
338 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize))
348 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
349 struct skcipher_request *skreq = &pctx->skreq;
353 u8 *authtag = pctx->auth_tag;
354 u8 *odata = pctx->odata;
355 u8 *iv = pctx->idata;
364 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen,
367 dst = pctx->src;
369 dst = pctx->dst;
374 skcipher_request_set_callback(skreq, pctx->flags,
376 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv);