Lines Matching refs:pctx

172 	struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
175 struct ahash_request *ahreq = &pctx->ahreq;
178 u8 *odata = pctx->odata;
179 u8 *idata = pctx->idata;
201 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL);
232 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
233 u8 *odata = pctx->odata;
253 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
262 pctx->flags = aead_request_flags(req);
269 sg_init_table(pctx->src, 3);
270 sg_set_buf(pctx->src, tag, 16);
271 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen);
272 if (sg != pctx->src + 1)
273 sg_chain(pctx->src, 2, sg);
276 sg_init_table(pctx->dst, 3);
277 sg_set_buf(pctx->dst, tag, 16);
278 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen);
279 if (sg != pctx->dst + 1)
280 sg_chain(pctx->dst, 2, sg);
290 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
291 struct skcipher_request *skreq = &pctx->skreq;
294 u8 *odata = pctx->odata;
302 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen);
306 dst = pctx->src;
308 dst = pctx->dst;
311 skcipher_request_set_callback(skreq, pctx->flags,
313 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv);
327 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
333 pctx->flags = 0;
335 dst = sg_next(req->src == req->dst ? pctx->src : pctx->dst);
339 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize))
349 struct crypto_ccm_req_priv_ctx *pctx = crypto_ccm_reqctx(req);
350 struct skcipher_request *skreq = &pctx->skreq;
354 u8 *authtag = pctx->auth_tag;
355 u8 *odata = pctx->odata;
356 u8 *iv = pctx->idata;
365 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen,
368 dst = pctx->src;
370 dst = pctx->dst;
375 skcipher_request_set_callback(skreq, pctx->flags,
377 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv);