Lines Matching refs:sctx
29 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_update() local
33 partial = sctx->count & 0x3f; in powerpc_sha1_update()
34 sctx->count += len; in powerpc_sha1_update()
42 memcpy(sctx->buffer + partial, data, done + 64); in powerpc_sha1_update()
43 src = sctx->buffer; in powerpc_sha1_update()
47 powerpc_sha_transform(sctx->state, src); in powerpc_sha1_update()
54 memcpy(sctx->buffer + partial, src, len - done); in powerpc_sha1_update()
63 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_final() local
69 bits = cpu_to_be64(sctx->count << 3); in powerpc_sha1_final()
72 index = sctx->count & 0x3f; in powerpc_sha1_final()
81 dst[i] = cpu_to_be32(sctx->state[i]); in powerpc_sha1_final()
84 memset(sctx, 0, sizeof *sctx); in powerpc_sha1_final()
91 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_export() local
93 memcpy(out, sctx, sizeof(*sctx)); in powerpc_sha1_export()
99 struct sha1_state *sctx = shash_desc_ctx(desc); in powerpc_sha1_import() local
101 memcpy(sctx, in, sizeof(*sctx)); in powerpc_sha1_import()