Lines Matching refs:sctx
27 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_init() local
29 *sctx = (struct sha1_state){ in powerpc_sha1_init()
39 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_update() local
43 partial = sctx->count & 0x3f; in powerpc_sha1_update()
44 sctx->count += len; in powerpc_sha1_update()
52 memcpy(sctx->buffer + partial, data, done + 64); in powerpc_sha1_update()
53 src = sctx->buffer; in powerpc_sha1_update()
57 powerpc_sha_transform(sctx->state, src); in powerpc_sha1_update()
64 memcpy(sctx->buffer + partial, src, len - done); in powerpc_sha1_update()
73 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_final() local
79 bits = cpu_to_be64(sctx->count << 3); in powerpc_sha1_final()
82 index = sctx->count & 0x3f; in powerpc_sha1_final()
91 dst[i] = cpu_to_be32(sctx->state[i]); in powerpc_sha1_final()
94 memset(sctx, 0, sizeof *sctx); in powerpc_sha1_final()
101 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_export() local
103 memcpy(out, sctx, sizeof(*sctx)); in powerpc_sha1_export()
109 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_import() local
111 memcpy(sctx, in, sizeof(*sctx)); in powerpc_sha1_import()