Lines Matching refs:total
56 uint32_t total[2]; member
113 ctx->total[0] += (uint32_t)len; in sha256_process_block()
114 if (ctx->total[0] < len) { in sha256_process_block()
115 ++ctx->total[1]; in sha256_process_block()
204 ctx->total[0] = ctx->total[1] = 0; in sha256_init_ctx()
221 ctx->total[0] += bytes; in sha256_finish_ctx()
222 if (ctx->total[0] < bytes) { in sha256_finish_ctx()
223 ++ctx->total[1]; in sha256_finish_ctx()
230 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in sha256_finish_ctx()
231 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in sha256_finish_ctx()
232 (ctx->total[0] >> 29)); in sha256_finish_ctx()