Lines Matching refs:total
72 uint32_t total[2]; member
129 ctx->total[0] += len; in sha256_process_block()
130 if (ctx->total[0] < len) { in sha256_process_block()
131 ++ctx->total[1]; in sha256_process_block()
220 ctx->total[0] = ctx->total[1] = 0; in sha256_init_ctx()
237 ctx->total[0] += bytes; in sha256_finish_ctx()
238 if (ctx->total[0] < bytes) { in sha256_finish_ctx()
239 ++ctx->total[1]; in sha256_finish_ctx()
246 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in sha256_finish_ctx()
247 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in sha256_finish_ctx()
248 (ctx->total[0] >> 29)); in sha256_finish_ctx()