Lines Matching defs:sctx
39 struct sha1_ctx *sctx = crypto_tfm_ctx(tfm);
46 *sctx = initstate;
52 struct sha1_ctx *sctx = crypto_tfm_ctx(tfm);
56 partial = sctx->count & 0x3f;
57 sctx->count += len;
66 memcpy(sctx->buffer + partial, data, done + 64);
67 src = sctx->buffer;
71 sha_transform(sctx->state, src, temp);
79 memcpy(sctx->buffer + partial, src, len - done);
86 struct sha1_ctx *sctx = crypto_tfm_ctx(tfm);
92 bits = cpu_to_be64(sctx->count << 3);
95 index = sctx->count & 0x3f;
104 dst[i] = cpu_to_be32(sctx->state[i]);
107 memset(sctx, 0, sizeof *sctx);