Lines Matching refs:rctx
189 struct essiv_aead_request_ctx *rctx = aead_request_ctx(req); in essiv_aead_done() local
191 if (rctx->assoc) in essiv_aead_done()
192 kfree(rctx->assoc); in essiv_aead_done()
200 struct essiv_aead_request_ctx *rctx = aead_request_ctx(req); in essiv_aead_crypt() local
201 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt()
212 rctx->assoc = NULL; in essiv_aead_crypt()
232 sg_init_table(rctx->sg, 4); in essiv_aead_crypt()
239 rctx->assoc = kmalloc(ssize, GFP_ATOMIC); in essiv_aead_crypt()
240 if (!rctx->assoc) in essiv_aead_crypt()
243 scatterwalk_map_and_copy(rctx->assoc, req->src, 0, in essiv_aead_crypt()
245 sg_set_buf(rctx->sg, rctx->assoc, ssize); in essiv_aead_crypt()
247 sg_set_page(rctx->sg, sg_page(req->src), ssize, in essiv_aead_crypt()
251 sg_set_buf(rctx->sg + 1, iv, ivsize); in essiv_aead_crypt()
252 sg = scatterwalk_ffwd(rctx->sg + 2, req->src, req->assoclen); in essiv_aead_crypt()
253 if (sg != rctx->sg + 2) in essiv_aead_crypt()
254 sg_chain(rctx->sg, 3, sg); in essiv_aead_crypt()
256 src = rctx->sg; in essiv_aead_crypt()
268 if (rctx->assoc && err != -EINPROGRESS) in essiv_aead_crypt()
269 kfree(rctx->assoc); in essiv_aead_crypt()