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