Lines Matching refs:total
51 uint32_t total[2]; member
108 ctx->total[0] += (uint32_t)len; in sha256_process_block()
109 if (ctx->total[0] < len) { in sha256_process_block()
110 ++ctx->total[1]; in sha256_process_block()
199 ctx->total[0] = ctx->total[1] = 0; in sha256_init_ctx()
216 ctx->total[0] += bytes; in sha256_finish_ctx()
217 if (ctx->total[0] < bytes) { in sha256_finish_ctx()
218 ++ctx->total[1]; in sha256_finish_ctx()
225 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in sha256_finish_ctx()
226 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in sha256_finish_ctx()
227 (ctx->total[0] >> 29)); in sha256_finish_ctx()