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