Lines Matching refs:sha_ctx
381 struct sha1_hash_ctx *sha_ctx; in sha_finish_walk() local
397 sha_ctx = (struct sha1_hash_ctx *) shash_desc_ctx(&rctx->desc); in sha_finish_walk()
399 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, rctx->walk.data, nbytes, flag); in sha_finish_walk()
400 if (!sha_ctx) { in sha_finish_walk()
402 sha_ctx = sha1_ctx_mgr_flush(cstate->mgr); in sha_finish_walk()
405 if (sha_ctx) in sha_finish_walk()
406 rctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha_finish_walk()
427 struct sha1_hash_ctx *sha_ctx; in sha_complete_job() local
445 sha_ctx = sha1_ctx_mgr_get_comp_ctx(cstate->mgr); in sha_complete_job()
446 while (sha_ctx) { in sha_complete_job()
447 req_ctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha_complete_job()
463 sha_ctx = sha1_ctx_mgr_get_comp_ctx(cstate->mgr); in sha_complete_job()
497 struct sha1_hash_ctx *sha_ctx; in sha1_mb_update() local
521 sha_ctx = (struct sha1_hash_ctx *) shash_desc_ctx(desc); in sha1_mb_update()
524 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, rctx->walk.data, nbytes, HASH_UPDATE); in sha1_mb_update()
528 if (!sha_ctx) in sha1_mb_update()
531 if (sha_ctx->error) { in sha1_mb_update()
532 ret = sha_ctx->error; in sha1_mb_update()
533 rctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha1_mb_update()
537 rctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha1_mb_update()
556 struct sha1_hash_ctx *sha_ctx; in sha1_mb_finup() local
583 sha_ctx = (struct sha1_hash_ctx *) shash_desc_ctx(desc); in sha1_mb_finup()
587 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, rctx->walk.data, nbytes, flag); in sha1_mb_finup()
591 if (!sha_ctx) in sha1_mb_finup()
594 if (sha_ctx->error) { in sha1_mb_finup()
595 ret = sha_ctx->error; in sha1_mb_finup()
599 rctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha1_mb_finup()
615 struct sha1_hash_ctx *sha_ctx; in sha1_mb_final() local
631 sha_ctx = (struct sha1_hash_ctx *) shash_desc_ctx(desc); in sha1_mb_final()
635 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, &data, 0, HASH_LAST); in sha1_mb_final()
639 if (!sha_ctx) in sha1_mb_final()
642 if (sha_ctx->error) { in sha1_mb_final()
643 ret = sha_ctx->error; in sha1_mb_final()
644 rctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha1_mb_final()
648 rctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha1_mb_final()
823 struct sha1_hash_ctx *sha_ctx; in sha1_mb_flusher() local
834 sha_ctx = (struct sha1_hash_ctx *) sha1_ctx_mgr_flush(cstate->mgr); in sha1_mb_flusher()
836 if (!sha_ctx) { in sha1_mb_flusher()
840 rctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha1_mb_flusher()