Lines Matching refs:sha_ctx
305 __sha512_init(&ctx->sha_ctx, &key->istate, SHA512_BLOCK_SIZE); in __hmac_sha512_init()
313 __hmac_sha512_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate, in hmac_sha384_init_usingrawkey()
315 ctx->ctx.sha_ctx.bytecount_lo = SHA512_BLOCK_SIZE; in hmac_sha384_init_usingrawkey()
316 ctx->ctx.sha_ctx.bytecount_hi = 0; in hmac_sha384_init_usingrawkey()
323 __hmac_sha512_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate, in hmac_sha512_init_usingrawkey()
325 ctx->ctx.sha_ctx.bytecount_lo = SHA512_BLOCK_SIZE; in hmac_sha512_init_usingrawkey()
326 ctx->ctx.sha_ctx.bytecount_hi = 0; in hmac_sha512_init_usingrawkey()
334 __sha512_final(&ctx->sha_ctx, ctx->sha_ctx.buf, digest_size); in __hmac_sha512_final()
335 memset(&ctx->sha_ctx.buf[digest_size], 0, in __hmac_sha512_final()
337 ctx->sha_ctx.buf[digest_size] = 0x80; in __hmac_sha512_final()
338 *(__be32 *)&ctx->sha_ctx.buf[SHA512_BLOCK_SIZE - 4] = in __hmac_sha512_final()
342 sha512_blocks(&ctx->ostate, ctx->sha_ctx.buf, 1); in __hmac_sha512_final()