Lines Matching refs:sha_ctx
248 ctx->sha_ctx.state = key->istate;
249 ctx->sha_ctx.bytecount = SHA1_BLOCK_SIZE;
257 __hmac_sha1_preparekey(&ctx->sha_ctx.state, &ctx->ostate,
259 ctx->sha_ctx.bytecount = SHA1_BLOCK_SIZE;
265 /* Generate the padded input for the outer hash in ctx->sha_ctx.buf. */
266 __sha1_final(&ctx->sha_ctx, ctx->sha_ctx.buf);
267 memset(&ctx->sha_ctx.buf[SHA1_DIGEST_SIZE], 0,
269 ctx->sha_ctx.buf[SHA1_DIGEST_SIZE] = 0x80;
270 *(__be32 *)&ctx->sha_ctx.buf[SHA1_BLOCK_SIZE - 4] =
274 sha1_blocks(&ctx->ostate, ctx->sha_ctx.buf, 1);