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