Lines Matching defs:rctx
225 struct dcp_aes_req_ctx *rctx = skcipher_request_ctx(req);
260 if (rctx->enc)
267 if (rctx->ecb)
298 struct dcp_aes_req_ctx *rctx = skcipher_request_ctx(req);
324 if (!rctx->ecb) {
377 if (!rctx->ecb) {
378 if (rctx->enc)
429 struct dcp_aes_req_ctx *rctx = skcipher_request_ctx(req);
433 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback);
434 skcipher_request_set_callback(&rctx->fallback_req, req->base.flags,
436 skcipher_request_set_crypt(&rctx->fallback_req, req->src, req->dst,
440 ret = crypto_skcipher_encrypt(&rctx->fallback_req);
442 ret = crypto_skcipher_decrypt(&rctx->fallback_req);
452 struct dcp_aes_req_ctx *rctx = skcipher_request_ctx(req);
458 rctx->enc = enc;
459 rctx->ecb = ecb;
551 struct dcp_sha_req_ctx *rctx = ahash_request_ctx(req);
566 if (rctx->init)
580 if (rctx->init && rctx->fini && desc->size == 0) {
591 if (rctx->fini) {
604 if (rctx->fini)
621 struct dcp_sha_req_ctx *rctx = ahash_request_ctx(req);
632 int fin = rctx->fini;
634 rctx->fini = 0;
661 rctx->init = 0;
666 rctx->fini = 1;
753 struct dcp_sha_req_ctx *rctx = ahash_request_ctx(req);
768 rctx->fini = fini;
772 rctx->init = 1;
815 struct dcp_sha_req_ctx *rctx = ahash_request_ctx(req);
820 memset(rctx, 0, sizeof(struct dcp_sha_req_ctx));
822 memcpy(rctx, &export->req_ctx, sizeof(struct dcp_sha_req_ctx));