Lines Matching refs:total
66 uint32_t total[2]; member
123 ctx->total[0] += (uint32_t)len; in sha256_process_block()
124 if (ctx->total[0] < len) { in sha256_process_block()
125 ++ctx->total[1]; in sha256_process_block()
214 ctx->total[0] = ctx->total[1] = 0; in sha256_init_ctx()
231 ctx->total[0] += bytes; in sha256_finish_ctx()
232 if (ctx->total[0] < bytes) { in sha256_finish_ctx()
233 ++ctx->total[1]; in sha256_finish_ctx()
240 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in sha256_finish_ctx()
241 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in sha256_finish_ctx()
242 (ctx->total[0] >> 29)); in sha256_finish_ctx()