Lines Matching refs:sha_ctx
380 __sha256_init(&ctx->sha_ctx, &key->istate, SHA256_BLOCK_SIZE);
388 __hmac_sha256_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate,
390 ctx->ctx.sha_ctx.bytecount = SHA256_BLOCK_SIZE;
397 __hmac_sha256_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate,
399 ctx->ctx.sha_ctx.bytecount = SHA256_BLOCK_SIZE;
406 /* Generate the padded input for the outer hash in ctx->sha_ctx.buf. */
407 __sha256_final(&ctx->sha_ctx, ctx->sha_ctx.buf, digest_size);
408 memset(&ctx->sha_ctx.buf[digest_size], 0,
410 ctx->sha_ctx.buf[digest_size] = 0x80;
411 *(__be32 *)&ctx->sha_ctx.buf[SHA256_BLOCK_SIZE - 4] =
415 sha256_blocks(&ctx->ostate, ctx->sha_ctx.buf, 1);