Lines Matching refs:sctx
33 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_init() local
35 *sctx = (struct sha1_state){ in sha1_init()
45 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_update() local
49 partial = sctx->count & 0x3f; in sha1_update()
50 sctx->count += len; in sha1_update()
59 memcpy(sctx->buffer + partial, data, done + 64); in sha1_update()
60 src = sctx->buffer; in sha1_update()
64 powerpc_sha_transform(sctx->state, src, temp); in sha1_update()
72 memcpy(sctx->buffer + partial, src, len - done); in sha1_update()
81 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_final() local
87 bits = cpu_to_be64(sctx->count << 3); in sha1_final()
90 index = sctx->count & 0x3f; in sha1_final()
99 dst[i] = cpu_to_be32(sctx->state[i]); in sha1_final()
102 memset(sctx, 0, sizeof *sctx); in sha1_final()
109 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_export() local
111 memcpy(out, sctx, sizeof(*sctx)); in sha1_export()
117 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_import() local
119 memcpy(sctx, in, sizeof(*sctx)); in sha1_import()