Lines Matching refs:total
61 uint32_t total[2]; member
118 ctx->total[0] += (uint32_t)len; in sha256_process_block()
119 if (ctx->total[0] < len) { in sha256_process_block()
120 ++ctx->total[1]; in sha256_process_block()
209 ctx->total[0] = ctx->total[1] = 0; in sha256_init_ctx()
226 ctx->total[0] += bytes; in sha256_finish_ctx()
227 if (ctx->total[0] < bytes) { in sha256_finish_ctx()
228 ++ctx->total[1]; in sha256_finish_ctx()
235 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in sha256_finish_ctx()
236 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in sha256_finish_ctx()
237 (ctx->total[0] >> 29)); in sha256_finish_ctx()