Lines Matching refs:sctx
348 struct sha1_hash_ctx *sctx = shash_desc_ctx(desc); in sha1_mb_init() local
350 hash_ctx_init(sctx); in sha1_mb_init()
351 sctx->job.result_digest[0] = SHA1_H0; in sha1_mb_init()
352 sctx->job.result_digest[1] = SHA1_H1; in sha1_mb_init()
353 sctx->job.result_digest[2] = SHA1_H2; in sha1_mb_init()
354 sctx->job.result_digest[3] = SHA1_H3; in sha1_mb_init()
355 sctx->job.result_digest[4] = SHA1_H4; in sha1_mb_init()
356 sctx->total_length = 0; in sha1_mb_init()
357 sctx->partial_block_buffer_length = 0; in sha1_mb_init()
358 sctx->status = HASH_CTX_STS_IDLE; in sha1_mb_init()
366 struct sha1_hash_ctx *sctx = shash_desc_ctx(&rctx->desc); in sha1_mb_set_results() local
370 dst[i] = cpu_to_be32(sctx->job.result_digest[i]); in sha1_mb_set_results()
659 struct sha1_hash_ctx *sctx = shash_desc_ctx(desc); in sha1_mb_export() local
661 memcpy(out, sctx, sizeof(*sctx)); in sha1_mb_export()
668 struct sha1_hash_ctx *sctx = shash_desc_ctx(desc); in sha1_mb_import() local
670 memcpy(sctx, in, sizeof(*sctx)); in sha1_mb_import()